Mercurial > MadButterfly
annotate src/testcase.c @ 235:65cabbdd5284
termporary revision
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 25 Dec 2008 18:40:27 +0800 |
parents | 9ab15ebc9061 |
children | 1a923ea699c1 |
rev | line source |
---|---|
1 | 1 #include <CUnit/Basic.h> |
2 | |
12 | 3 extern CU_pSuite get_tools_suite(void); |
1 | 4 extern CU_pSuite get_coord_suite(void); |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
1
diff
changeset
|
5 extern CU_pSuite get_geo_suite(void); |
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
1
diff
changeset
|
6 extern CU_pSuite get_shape_path_suite(void); |
12 | 7 extern CU_pSuite get_redraw_man_suite(void); |
50 | 8 extern CU_pSuite get_animate_suite(void); |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
9 extern CU_pSuite get_observer_suite(void); |
235 | 10 extern CU_pSuite get_event_suite(void); |
1 | 11 |
12 int | |
13 main(int argc, char * const argv[]) { | |
14 CU_pSuite suite; | |
15 | |
16 if(CU_initialize_registry() != CUE_SUCCESS) | |
17 return CU_get_error(); | |
18 | |
12 | 19 suite = get_tools_suite(); |
20 if(suite == NULL) | |
21 return CU_get_error(); | |
22 suite = get_coord_suite(); | |
23 if(suite == NULL) | |
24 return CU_get_error(); | |
25 suite = get_geo_suite(); | |
26 if(suite == NULL) | |
27 return CU_get_error(); | |
28 suite = get_shape_path_suite(); | |
29 if(suite == NULL) | |
30 return CU_get_error(); | |
31 suite = get_redraw_man_suite(); | |
32 if(suite == NULL) | |
33 return CU_get_error(); | |
50 | 34 suite = get_animate_suite(); |
35 if(suite == NULL) | |
36 return CU_get_error(); | |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
37 suite = get_observer_suite(); |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
38 if(suite == NULL) |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
39 return CU_get_error(); |
235 | 40 suite = get_event_suite(); |
41 if(suite == NULL) | |
42 return CU_get_error(); | |
1 | 43 |
44 CU_basic_set_mode(CU_BRM_VERBOSE); | |
45 CU_basic_run_tests(); | |
46 CU_cleanup_registry(); | |
47 | |
48 return CU_get_error(); | |
49 } |