#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 "testfilters.h"
#include "executor.h"
#include "remote_executor.h"
#include "manual_executor.h"
#include "utils.h"
#include "log.h"
Go to the source code of this file.
Functions | |
LOCAL void | process_td (td_td *) |
LOCAL void | end_td () |
LOCAL void | process_hwiddetect () |
LOCAL void | process_suite (td_suite *) |
LOCAL void | process_set (td_set *) |
LOCAL int | process_case (const void *, const void *) |
LOCAL int | case_result_na (const void *, const void *) |
LOCAL int | process_get (const void *, const void *) |
LOCAL int | step_execute (const void *, const void *) |
LOCAL int | prepost_steps_execute (const void *, const void *) |
LOCAL int | step_result_na (const void *, const void *) |
LOCAL int | step_post_process (const void *, const void *) |
LOCAL void | end_suite () |
void | td_process () |
const char * | current_set_name () |
const char * | current_case_name () |
int | current_step_num () |
Variables | |
char * | optarg |
struct timeval | created |
testrunner_lite_options | opts |
char * | global_failure = NULL |
int | bail_out = 0 |
LOCAL td_td * | current_td = NULL |
LOCAL td_suite * | current_suite = NULL |
LOCAL td_set * | current_set = NULL |
LOCAL xmlChar * | cur_case_name = "" |
LOCAL int | cur_step_num |
LOCAL int | passcount = 0 |
LOCAL int | casecount = 0 |
LOCAL int case_result_na | ( | const void * | data, | |
const void * | user | |||
) |
Set case result to N/A
data | case data | |
user | failure info |
Definition at line 375 of file testdefinitionprocessor.c.
const char* current_case_name | ( | ) |
Name of the currently executed case (can be also "pre/post_steps"
Definition at line 684 of file testdefinitionprocessor.c.
const char* current_set_name | ( | ) |
Name of the currently executed set
Definition at line 674 of file testdefinitionprocessor.c.
int current_step_num | ( | ) |
Number of the step currently executed return 0 if no step is executed, > 0 otherwise
Definition at line 692 of file testdefinitionprocessor.c.
LOCAL void end_suite | ( | ) |
Suite end function, write suite and delete the current_suite
Definition at line 545 of file testdefinitionprocessor.c.
LOCAL void end_td | ( | ) |
Do test definition cleaning
Definition at line 488 of file testdefinitionprocessor.c.
LOCAL int prepost_steps_execute | ( | const void * | data, | |
const void * | user | |||
) |
Process pre/post steps.
data | steps data | |
user | dummy case data |
Definition at line 241 of file testdefinitionprocessor.c.
LOCAL int process_case | ( | const void * | data, | |
const void * | user | |||
) |
Process case data. execute steps in case.
data | case data | |
user | set data |
Definition at line 319 of file testdefinitionprocessor.c.
LOCAL int process_get | ( | const void * | data, | |
const void * | user | |||
) |
Process get data. execute steps in case.
data | case data | |
user | set data |
Definition at line 397 of file testdefinitionprocessor.c.
LOCAL void process_hwiddetect | ( | ) |
Process hwiddetect: Run detector command and store result in current td
Definition at line 496 of file testdefinitionprocessor.c.
LOCAL void process_set | ( | td_set * | s | ) |
Process set data. Walk through cases and free set when done.
s | set data |
Definition at line 555 of file testdefinitionprocessor.c.
LOCAL void process_suite | ( | td_suite * | s | ) |
Do processing on suite, currently just writes the pre suite tag to results
s | suite data |
Definition at line 534 of file testdefinitionprocessor.c.
LOCAL void process_td | ( | td_td * | td | ) |
Process test definition
*td | Test definition data |
Definition at line 481 of file testdefinitionprocessor.c.
LOCAL int step_execute | ( | const void * | data, | |
const void * | user | |||
) |
Process step data. execute one step from case.
data | step data | |
user | case data |
Definition at line 132 of file testdefinitionprocessor.c.
LOCAL int step_post_process | ( | const void * | data, | |
const void * | user | |||
) |
Do step post processing. Mainly to ascertain that no dangling processes are left behind.
data | step data | |
user | case data |
Definition at line 284 of file testdefinitionprocessor.c.
LOCAL int step_result_na | ( | const void * | data, | |
const void * | user | |||
) |
Set N/A result for test step
data | step data | |
user | failure info string |
Definition at line 265 of file testdefinitionprocessor.c.
void td_process | ( | ) |
Walks through the whole test definition and executes all suites, sets, cases and steps.
Definition at line 641 of file testdefinitionprocessor.c.
int bail_out = 0 |
Definition at line 67 of file testdefinitionprocessor.c.
LOCAL int casecount = 0 |
Definition at line 85 of file testdefinitionprocessor.c.
struct timeval created |
Definition at line 64 of file testdefinitionprocessor.c.
LOCAL xmlChar* cur_case_name = "" |
Definition at line 81 of file testdefinitionprocessor.c.
LOCAL int cur_step_num |
Definition at line 82 of file testdefinitionprocessor.c.
LOCAL td_set* current_set = NULL |
Definition at line 80 of file testdefinitionprocessor.c.
LOCAL td_suite* current_suite = NULL |
Definition at line 79 of file testdefinitionprocessor.c.
LOCAL td_td* current_td = NULL |
Definition at line 78 of file testdefinitionprocessor.c.
char* global_failure = NULL |
Definition at line 66 of file testdefinitionprocessor.c.
char* optarg |
Definition at line 65 of file testdefinitionprocessor.c.
LOCAL int passcount = 0 |
Definition at line 84 of file testdefinitionprocessor.c.