format_test.c

00001 #include <stdio.h>
00002 #include <stdlib.h>
00003 #include <string.h>
00004 #include "format_suite.h"
00005 #include "CUnit.h"
00006 #include "TestDB.h"
00007 #include "Basic.h"
00008 
00009 
00010 
00011 
00012 int main(int argc, char* argv[])
00013 {
00014     CU_BasicRunMode mode = CU_BRM_VERBOSE;
00015     unsigned int ret;
00016 
00017     if (CU_initialize_registry()) 
00018         printf("\nInitialization of Test Registry failed.");
00019     
00020     add_suite_format();
00021     
00022     CU_basic_set_mode(mode);
00023     printf("\nTests completed with return value %d.\n", CU_basic_run_tests());
00024     printf("\nTests failed %d.\n", ret = CU_get_number_of_tests_failed() );
00025     CU_cleanup_registry();
00026 
00027     if ( ret == 0 ) 
00028         return EXIT_SUCCESS;
00029     else
00030         return EXIT_FAILURE;
00031 
00032 }
Generato il Fri Jan 28 22:16:31 2011 per SFAT: Simplified File Allocation Table Project da  doxygen 1.6.3