#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include <limits.h>
#include <time.h>
#include "CUnit.h"
#include "TestDB.h"
#include "Util.h"
#include "TestRun.h"
#include "Automated.h"
Functions | |
CU_ErrorCode | automated_list_all_tests (CU_pTestRegistry pRegistry, const char *szFilename) |
Generate an xml listing of all tests in all suites for the specified test registry. | |
CU_ErrorCode | initialize_result_file (const char *szFilename) |
Initialize the test results file generated by the automated interface. | |
CU_ErrorCode | uninitialize_result_file (void) |
Finalize and close the results output file generated by the automated interface. | |
void | automated_run_all_tests (CU_pTestRegistry pRegistry) |
Run the registered tests using the automated interface. | |
void | automated_test_start_message_handler (const CU_pTest pTest, const CU_pSuite pSuite) |
Handler function called at start of each test. | |
void | automated_test_complete_message_handler (const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) |
Handler function called at completion of each test. | |
void | automated_all_tests_complete_message_handler (const CU_pFailureRecord pFailure) |
Handler function called at completion of all tests in a suite. | |
void | automated_suite_init_failure_message_handler (const CU_pSuite pSuite) |
Handler function called when suite initialization fails. | |
Variables | |
CU_pSuite | f_pRunningSuite = NULL |
The running test suite. | |
char | f_szDefaultFileRoot [] = "CUnitAutomated" |
Default filename root for automated output files. | |
char | f_szTestListFileName [FILENAME_MAX] = "" |
Current output file name for the test listing file. | |
char | f_szTestResultFileName [FILENAME_MAX] = "" |
Current output file name for the test results file. | |
FILE * | f_pTestResultFile = NULL |
FILE pointer the test results file. | |
BOOL | f_bWriting_CUNIT_RUN_SUITE = FALSE |
Flag for keeping track of when a closing xml tag is required. |