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 "testdefinitiondatatypes.h"
#include <libxml/xmlstring.h>
#include "hwinfo.h"
#include <libxml/list.h>
#include "executor.h"
#include "remote_executor.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 hw_info hwinfo

Function Documentation

LOCAL void copyright (  ) 

Display license information.

Definition at line 180 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 190 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 274 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 237 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 254 of file main.c.

LOCAL void usage (  ) 

Print short help.

Definition at line 106 of file main.c.

LOCAL void version (  ) 

Print version

Definition at line 167 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 hw_info hwinfo

Definition at line 78 of file main.c.

char* optarg

Definition at line 67 of file main.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Thu Jan 27 07:39:35 2011 for testrunner-lite by  doxygen 1.6.3