main.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <signal.h>
#include <ctype.h>
#include "testrunnerlite.h"
#include "testdefinitionparser.h"
#include "testresultlogger.h"
#include "testdefinitionprocessor.h"
#include "testfilters.h"
#include "executor.h"
#include "remote_executor.h"
#include "manual_executor.h"
#include "utils.h"
#include "hwinfo.h"
#include "log.h"

Go to the source code of this file.

Functions

LOCAL void usage ()
LOCAL void version ()
LOCAL void copyright ()
LOCAL int create_output_folder ()
LOCAL int parse_remote_logger (char *url, testrunner_lite_options *opts)
LOCAL int parse_target_address (char *address, testrunner_lite_options *opts)
int main (int argc, char *argv[], char *envp[])

Variables

char * optarg
int bail_out
struct timeval created
testrunner_lite_options opts
LOCAL td_suitecurrent_suite = NULL
LOCAL hw_info hwinfo


Function Documentation

LOCAL void copyright (  ) 

Display license information.

Definition at line 178 of file main.c.

LOCAL int create_output_folder (  ) 

Create output folder based on the argument for -o

Returns:
0 on success 1 on failure

Definition at line 188 of file main.c.

int main ( int  argc,
char *  argv[],
char *  envp[] 
)

main() for testrunnerlite - handle command line switches and call parser

Parameters:
argc argument count
argv arguments
envp environment
Returns:
EXIT_SUCCESS if all is well

Definition at line 272 of file main.c.

LOCAL int parse_remote_logger ( char *  url,
testrunner_lite_options opts 
)

Parse remote logger option argument. Currently nothing to parse.

Parameters:
url Remote logger URL option argument
opts Options struct containing field(s) to store url
Returns:
0 in success, 1 on failure

Definition at line 235 of file main.c.

LOCAL int parse_target_address ( char *  address,
testrunner_lite_options opts 
)

Parse target address option argument.

Parameters:
address SUT address.
opts Options struct containing field(s) to store url
Returns:
0 in success, 1 on failure

Definition at line 252 of file main.c.

LOCAL void usage (  ) 

Print short help.

Definition at line 107 of file main.c.

LOCAL void version (  ) 

Print version

Definition at line 165 of file main.c.


Variable Documentation

int bail_out

Definition at line 67 of file testdefinitionprocessor.c.

struct timeval created

Definition at line 66 of file main.c.

LOCAL td_suite* current_suite = NULL

Definition at line 78 of file main.c.

LOCAL hw_info hwinfo

Definition at line 79 of file main.c.

char* optarg

Definition at line 67 of file main.c.


Generated on Tue Jul 27 01:28:56 2010 for testrunner-lite by  doxygen 1.5.6