testresultlogger.c File Reference

#include <time.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <libxml/xmlwriter.h>
#include "testresultlogger.h"
#include "log.h"

Go to the source code of this file.

Functions

LOCAL int xml_write_pre_suite_tag (td_suite *)
LOCAL int xml_write_pre_set_tag (td_set *)
LOCAL int xml_write_step (const void *, const void *)
LOCAL int xml_write_case (const void *, const void *)
LOCAL int xml_write_post_set_tag (td_set *)
LOCAL int txt_write_pre_suite_tag (td_suite *)
LOCAL int txt_write_post_suite_tag ()
LOCAL int txt_write_pre_set_tag (td_set *)
LOCAL int txt_write_post_set_tag (td_set *)
LOCAL int txt_write_case (const void *, const void *)
LOCAL int txt_write_step (const void *data, const void *user)
int init_result_logger (testrunner_lite_options *opts, hw_info *hwinfo)
int write_pre_suite_tag (td_suite *suite)
int write_post_suite_tag (td_suite *suite)
int write_pre_set_tag (td_set *set)
int write_post_set_tag (td_set *set)
int xml_end_element ()
void close_result_logger (void)

Variables

LOCAL xmlTextWriterPtr writer
LOCAL FILE * ofile
struct {
   int(*   write_pre_suite_tag )(td_suite *)
   int(*   write_post_suite_tag )(void)
   int(*   write_pre_set_tag )(td_set *)
   int(*   write_post_set_tag )(td_set *)
out_cbs


Function Documentation

void close_result_logger ( void   ) 

Close the result logger

Definition at line 710 of file testresultlogger.c.

int init_result_logger ( testrunner_lite_options opts,
hw_info hwinfo 
)

Initialize result logger according to user options.

Parameters:
opts commandline options
hwinfo hardware information
Returns:
0 on success

Definition at line 544 of file testresultlogger.c.

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

Write case result to text file

Parameters:
data case data
user not used
Returns:
1 on success, 0 on error

Definition at line 426 of file testresultlogger.c.

LOCAL int txt_write_post_set_tag ( td_set set  ) 

Write post set information to text file - loop through test cases

Parameters:
set set data
Returns:
0 on always

Definition at line 528 of file testresultlogger.c.

LOCAL int txt_write_post_suite_tag (  ) 

Write post suite to text file - does not do anything at the moment

Returns:
0 on always

Definition at line 495 of file testresultlogger.c.

LOCAL int txt_write_pre_set_tag ( td_set set  ) 

Write pre set information to text file

Parameters:
set set data
Returns:
0 on always

Definition at line 505 of file testresultlogger.c.

LOCAL int txt_write_pre_suite_tag ( td_suite suite  ) 

Write suite start txt tag

Parameters:
suite suite data
Returns:
0 on success, 1 on error

Definition at line 476 of file testresultlogger.c.

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

Write step result to text file

Parameters:
data step data
user not used
Returns:
1 on success, 0 on error

Definition at line 381 of file testresultlogger.c.

int write_post_set_tag ( td_set set  ) 

Call post_set_tag callback

Parameters:
set set data
Returns:
0 on success

Definition at line 689 of file testresultlogger.c.

int write_post_suite_tag ( td_suite suite  ) 

Call post_suite_tag callback

Parameters:
suite suite data
Returns:
0 on success

Definition at line 670 of file testresultlogger.c.

int write_pre_set_tag ( td_set set  ) 

Call pre_set_tag callback

Parameters:
set set data
Returns:
0 on success

Definition at line 680 of file testresultlogger.c.

int write_pre_suite_tag ( td_suite suite  ) 

Call pre_suite_tag callback

Parameters:
suite suite data
Returns:
0 on success

Definition at line 661 of file testresultlogger.c.

int xml_end_element ( void   ) 

Write end element tag

Returns:
0 on success, 1 on error.

Definition at line 698 of file testresultlogger.c.

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

Write case result xml

Parameters:
data case data
user not used
Returns:
1 on success, 0 on error

Definition at line 273 of file testresultlogger.c.

LOCAL int xml_write_post_set_tag ( td_set set  ) 

Write set start tag and cases result xml

Parameters:
set set data
Returns:
0 on success, 1 on error

Definition at line 365 of file testresultlogger.c.

LOCAL int xml_write_pre_set_tag ( td_set set  ) 

Write pre-set xml tag

Parameters:
set set data
Returns:
0 on success, 1 on error

Definition at line 136 of file testresultlogger.c.

LOCAL int xml_write_pre_suite_tag ( td_suite suite  ) 

Write suite start xml tag

Parameters:
suite suite data
Returns:
0 on success, 1 on error

Definition at line 111 of file testresultlogger.c.

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

Write step result xml

Parameters:
data step data
user not used
Returns:
1 on success, 0 on error if the step is failed

Definition at line 173 of file testresultlogger.c.


Variable Documentation

LOCAL FILE* ofile

Definition at line 61 of file testresultlogger.c.

struct { ... } out_cbs

int(* write_post_set_tag)(td_set *)

int(* write_post_suite_tag)(void)

int(* write_pre_set_tag)(td_set *)

int(* write_pre_suite_tag)(td_suite *)

LOCAL xmlTextWriterPtr writer

Definition at line 60 of file testresultlogger.c.


Generated on Wed Nov 10 14:13:01 2010 for testrunner-lite by  doxygen 1.5.6