2007-11-29 21:06:56 +00:00
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
static void create_test_suite()
|
|
|
|
{
|
|
|
|
add_node_suite();
|
2007-12-02 18:49:11 +00:00
|
|
|
add_image_suite();
|
2007-12-06 21:45:16 +00:00
|
|
|
add_tree_suite();
|
2007-12-13 20:02:36 +00:00
|
|
|
add_util_suite();
|
2007-12-25 16:53:17 +00:00
|
|
|
add_rockridge_suite();
|
2007-11-29 21:06:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
/* 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();
|
|
|
|
}
|