testdefinitionprocessor.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 "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_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_suitecurrent_suite = NULL
LOCAL td_setcurrent_set = NULL
LOCAL xmlChar * cur_case_name = ""
LOCAL int cur_step_num
LOCAL int passcount = 0
LOCAL int casecount = 0


Function Documentation

LOCAL int case_result_na ( const void *  data,
const void *  user 
)

Set case result to N/A

Parameters:
data case data
user failure info
Returns:
1 always

Definition at line 353 of file testdefinitionprocessor.c.

const char* current_case_name (  ) 

Name of the currently executed case (can be also "pre/post_steps"

Returns:
case name

Definition at line 596 of file testdefinitionprocessor.c.

const char* current_set_name (  ) 

Name of the currently executed set

Returns:
name of the set or NULL

Definition at line 586 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 604 of file testdefinitionprocessor.c.

LOCAL void end_suite (  ) 

Suite end function, write suite and delete the current_suite

Definition at line 470 of file testdefinitionprocessor.c.

LOCAL int prepost_steps_execute ( const void *  data,
const void *  user 
)

Process pre/post steps.

Parameters:
data steps data
user dummy case data
Returns:
1 always

Definition at line 224 of file testdefinitionprocessor.c.

LOCAL int process_case ( const void *  data,
const void *  user 
)

Process case data. execute steps in case.

Parameters:
data case data
user set data
Returns:
1 always

Definition at line 302 of file testdefinitionprocessor.c.

LOCAL int process_get ( const void *  data,
const void *  user 
)

Process get data. execute steps in case.

Parameters:
data case data
user set data
Returns:
1 always

Definition at line 375 of file testdefinitionprocessor.c.

LOCAL void process_set ( td_set s  ) 

Process set data. Walk through cases and free set when done.

Parameters:
s set data

Definition at line 480 of file testdefinitionprocessor.c.

LOCAL void process_suite ( td_suite s  ) 

Do processing on suite, currently just writes the pre suite tag to results

Parameters:
s suite data

Definition at line 459 of file testdefinitionprocessor.c.

LOCAL int step_execute ( const void *  data,
const void *  user 
)

Process step data. execute one step from case.

Parameters:
data step data
user case data
Returns:
1 if step is passed 0 if not

Definition at line 125 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.

Parameters:
data step data
user case data
Returns:
1 always

Definition at line 267 of file testdefinitionprocessor.c.

LOCAL int step_result_na ( const void *  data,
const void *  user 
)

Set N/A result for test step

Parameters:
data step data
user failure info string
Returns:
1 always

Definition at line 248 of file testdefinitionprocessor.c.

void td_process (  ) 

Walks through the whole test definition and executes all suites, sets, cases and steps.

Definition at line 556 of file testdefinitionprocessor.c.


Variable Documentation

int bail_out = 0

Definition at line 67 of file testdefinitionprocessor.c.

LOCAL int casecount = 0

Definition at line 84 of file testdefinitionprocessor.c.

struct timeval created

Definition at line 64 of file testdefinitionprocessor.c.

LOCAL xmlChar* cur_case_name = ""

Definition at line 80 of file testdefinitionprocessor.c.

LOCAL int cur_step_num

Definition at line 81 of file testdefinitionprocessor.c.

LOCAL td_set* current_set = NULL

Definition at line 79 of file testdefinitionprocessor.c.

LOCAL td_suite* current_suite = 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 83 of file testdefinitionprocessor.c.


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