Mercurial > MadButterfly
annotate src/testcase.c @ 176:04c81b8a5d23
Change documentation for installation
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 31 Oct 2008 15:24:31 +0800 |
parents | 9ab15ebc9061 |
children | 65cabbdd5284 |
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); |
1 | 10 |
11 int | |
12 main(int argc, char * const argv[]) { | |
13 CU_pSuite suite; | |
14 | |
15 if(CU_initialize_registry() != CUE_SUCCESS) | |
16 return CU_get_error(); | |
17 | |
12 | 18 suite = get_tools_suite(); |
19 if(suite == NULL) | |
20 return CU_get_error(); | |
21 suite = get_coord_suite(); | |
22 if(suite == NULL) | |
23 return CU_get_error(); | |
24 suite = get_geo_suite(); | |
25 if(suite == NULL) | |
26 return CU_get_error(); | |
27 suite = get_shape_path_suite(); | |
28 if(suite == NULL) | |
29 return CU_get_error(); | |
30 suite = get_redraw_man_suite(); | |
31 if(suite == NULL) | |
32 return CU_get_error(); | |
50 | 33 suite = get_animate_suite(); |
34 if(suite == NULL) | |
35 return CU_get_error(); | |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
36 suite = get_observer_suite(); |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
37 if(suite == NULL) |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
38 return CU_get_error(); |
1 | 39 |
40 CU_basic_set_mode(CU_BRM_VERBOSE); | |
41 CU_basic_run_tests(); | |
42 CU_cleanup_registry(); | |
43 | |
44 return CU_get_error(); | |
45 } |