-
Notifications
You must be signed in to change notification settings - Fork 35
/
test_all.c
108 lines (94 loc) · 3 KB
/
test_all.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// gcc -Wall -Wextra test_all.c -Xlinker -rpath=../lib
// -L ../lib -ljigsaw -o test_all
// Call all unit tests and bail-out on any failed runs
# define __SKIP_MAIN__
# include "test2d_a.c"
# include "test2d_b.c"
# include "test2d_c.c"
# include "test2d_d.c"
# include "test2d_e.c"
# include "test2d_f.c"
# include "test2d_g.c"
# include "test2d_h.c"
# include "test2d_i.c"
# include "test2s_a.c"
# include "test2s_b.c"
# include "test2s_c.c"
// include "test2s_d.c"
# include "test2s_e.c"
# include "test2s_f.c"
# include "test2s_g.c"
# include "test2s_h.c"
# include "test2s_i.c"
# include "test3d_a.c"
# include "test3d_b.c"
# include "test3d_c.c"
# include "test3d_d.c"
# include "test3d_e.c"
# include "test3d_f.c"
# include "test3d_g.c"
// include "test3d_h.c"
// include "test3d_i.c"
int main ()
{
int _retv = 0;
int _verb =-1; // verbosity
/*---------------------------------- run all 2d tests */
if ((_retv = test2d_a(_verb)) != 0)
return _retv ;
if ((_retv = test2d_b(_verb)) != 0)
return _retv ;
if ((_retv = test2d_c(_verb)) != 0)
return _retv ;
if ((_retv = test2d_d(_verb)) != 0)
return _retv ;
if ((_retv = test2d_e(_verb)) != 0)
return _retv ;
if ((_retv = test2d_f(_verb)) != 0)
return _retv ;
if ((_retv = test2d_g(_verb)) != 0)
return _retv ;
if ((_retv = test2d_h(_verb)) != 0)
return _retv ;
if ((_retv = test2d_i(_verb)) != 0)
return _retv ;
/*---------------------------------- run all 2s tests */
if ((_retv = test2s_a(_verb)) != 0)
return _retv ;
if ((_retv = test2s_b(_verb)) != 0)
return _retv ;
if ((_retv = test2s_c(_verb)) != 0)
return _retv ;
// if ((_retv = test2s_d(_verb)) != 0)
// return _retv ;
if ((_retv = test2s_e(_verb)) != 0)
return _retv ;
if ((_retv = test2s_f(_verb)) != 0)
return _retv ;
if ((_retv = test2s_g(_verb)) != 0)
return _retv ;
if ((_retv = test2s_h(_verb)) != 0)
return _retv ;
if ((_retv = test2s_i(_verb)) != 0)
return _retv ;
/*---------------------------------- run all 3d tests */
if ((_retv = test3d_a(_verb)) != 0)
return _retv ;
if ((_retv = test3d_b(_verb)) != 0)
return _retv ;
if ((_retv = test3d_c(_verb)) != 0)
return _retv ;
if ((_retv = test3d_d(_verb)) != 0)
return _retv ;
if ((_retv = test3d_e(_verb)) != 0)
return _retv ;
if ((_retv = test3d_f(_verb)) != 0)
return _retv ;
if ((_retv = test3d_g(_verb)) != 0)
return _retv ;
// if ((_retv = test3d_h(_verb)) != 0)
// return _retv ;
// if ((_retv = test3d_i(_verb)) != 0)
// return _retv ;
return _retv ;
}