#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_fail (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 = BAD_CAST"" |
| LOCAL int | cur_step_num |
| LOCAL int | passcount = 0 |
| LOCAL int | failcount = 0 |
| LOCAL int | casecount = 0 |
| LOCAL int case_result_fail | ( | const void * | data, | |
| const void * | user | |||
| ) |
Set case result to fail
| data | case data | |
| user | failure info |
Definition at line 374 of file testdefinitionprocessor.c.
| const char* current_case_name | ( | ) |
Name of the currently executed case (can be also "pre/post_steps"
Definition at line 686 of file testdefinitionprocessor.c.
| const char* current_set_name | ( | ) |
Name of the currently executed set
Definition at line 676 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 694 of file testdefinitionprocessor.c.
| LOCAL void end_suite | ( | ) |
Suite end function, write suite and delete the current_suite
Definition at line 546 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 237 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 311 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 396 of file testdefinitionprocessor.c.
| LOCAL void process_hwiddetect | ( | ) |
Process hwiddetect: Run detector command and store result in current td
Definition at line 497 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 556 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 535 of file testdefinitionprocessor.c.
| LOCAL void process_td | ( | td_td * | td | ) |
Process test definition
| *td | Test definition data |
Definition at line 480 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 133 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 276 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 257 of file testdefinitionprocessor.c.
| void td_process | ( | ) |
Walks through the whole test definition and executes all suites, sets, cases and steps.
Definition at line 643 of file testdefinitionprocessor.c.
| int bail_out = 0 |
Definition at line 67 of file testdefinitionprocessor.c.
| LOCAL int casecount = 0 |
Definition at line 86 of file testdefinitionprocessor.c.
| struct timeval created |
Definition at line 64 of file testdefinitionprocessor.c.
| LOCAL xmlChar* cur_case_name = BAD_CAST"" |
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.
| LOCAL int failcount = 0 |
Definition at line 85 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.
1.6.3