2007-06-01 12:57:09 +00:00
|
|
|
#include "test.h"
|
|
|
|
|
2007-06-21 11:19:11 +00:00
|
|
|
static void create_test_suite()
|
2007-06-01 12:57:09 +00:00
|
|
|
{
|
2007-06-21 11:19:11 +00:00
|
|
|
add_util_suite();
|
|
|
|
add_tree_suite();
|
|
|
|
add_exclude_suite();
|
|
|
|
add_file_hashtable_suite();
|
|
|
|
}
|
2007-06-01 12:57:09 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2007-06-21 11:19:11 +00:00
|
|
|
CU_pSuite pSuite = NULL;
|
|
|
|
|
|
|
|
/* initialize the CUnit test registry */
|
|
|
|
if (CUE_SUCCESS != CU_initialize_registry())
|
|
|
|
return CU_get_error();
|
|
|
|
|
|
|
|
create_test_suite();
|
|
|
|
|
|
|
|
/* Run all tests using the console interface */
|
|
|
|
CU_basic_set_mode(CU_BRM_VERBOSE);
|
|
|
|
CU_basic_run_tests();
|
|
|
|
CU_cleanup_registry();
|
|
|
|
return CU_get_error();
|
2007-06-01 12:57:09 +00:00
|
|
|
}
|