#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include "CUnit.h"
#include "TestDB.h"
#include "Util.h"
#include "TestRun.h"
#include "Console.h"
Enumerations | |
enum | STATUS { CONTINUE = 1, MOVE_UP, STOP } |
Console interface status flag. More... | |
Functions | |
void | console_registry_level_run (CU_pTestRegistry pRegistry) |
Main loop for console interface. | |
STATUS | console_suite_level_run (CU_pSuite pSuite) |
Run a selected suite within the console interface. | |
CU_ErrorCode | console_run_all_tests (CU_pTestRegistry pRegistry) |
Run all tests within the console interface. | |
CU_ErrorCode | console_run_suite (CU_pSuite pSuite) |
Run a specified suite within the console interface. | |
CU_ErrorCode | console_run_single_test (CU_pSuite pSuite, CU_pTest pTest) |
Run a specific test for the specified suite within the console interface. | |
void | console_test_start_message_handler (const CU_pTest pTest, const CU_pSuite pSuite) |
Handler function called at start of each test. | |
void | console_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 | console_all_tests_complete_message_handler (const CU_pFailureRecord pFailure) |
Handler function called at completion of all tests in a suite. | |
void | console_suite_init_failure_message_handler (const CU_pSuite pSuite) |
Handler function called when suite initialization fails. | |
CU_ErrorCode | select_test (CU_pSuite pSuite, CU_pTest *pTest) |
Read the name of a test from standard input and locate the test having the specified name. | |
CU_ErrorCode | select_suite (CU_pTestRegistry pRegistry, CU_pSuite *pSuite) |
Read the name of a suite from standard input and locate the suite having the specified name. | |
void | list_suites (CU_pTestRegistry pRegistry) |
List the suites in a registry to standard output. | |
void | list_tests (CU_pSuite pSuite) |
List the tests in a suite to standard output. | |
void | show_failures (void) |
Display the record of test failures on standard output. | |
Variables | |
CU_pSuite | f_pRunningSuite = NULL |
currently running suite. |