Implemented relaxed iso constraints & Cunit based unit-tests

This commit is contained in:
Mario Danic
2007-06-21 11:19:11 +00:00
parent beb88c79cd
commit f57c1f4652
15 changed files with 624 additions and 407 deletions

View File

@@ -1,18 +1,26 @@
#include "test.h"
static void create_test_suite()
{
add_util_suite();
add_tree_suite();
add_exclude_suite();
add_file_hashtable_suite();
}
int main(int argc, char **argv)
{
test_tree();
test_exclude();
test_file_hashtable();
return 0;
}
#include "test.h"
CU_pSuite pSuite = NULL;
int main(int argc, char **argv)
{
test_tree();
test_exclude();
test_file_hashtable();
return 0;
/* 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();
}