update dev300-m58
[ooovba.git] / solenv / inc / _cppunit.mk
blob7aab2b0cdb136e8114c388a0e833dda7fbb19a13
1 # unroll begin
2 # ---- create the test libraries ------------------------------------
4 TEST1LIB=$(SHL1TARGETN)
5 .IF "$(TESTOPT)"==""
6 TEST1OPT="-jobexclude"
7 TEST1OPT+=$(SHL1TARGET).xsce
8 TEST1OPT+="-sf"
9 TEST1OPT+=$(mktmp "foo")
10 TEST1OPT+="-onlyerrors"
11 TEST1OPT+=" "
12 TEST1OPT+=$(TESTOPTADD)
13 .ELSE
14 TEST1OPT=$(TESTOPT)
15 .ENDIF
17 .IF "$(SHL1TARGET)"!=""
18 test : test1
19 test1: ALLTAR
20 @echo ----------------------------------------------------------
21 @echo - start unit test \#1 on library $(TEST1LIB)
22 @echo ----------------------------------------------------------
23 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
24 `which testshl2` $(TEST1LIB) $(TEST1OPT)
25 .ELSE
26 testshl2 $(TEST1LIB) $(TEST1OPT)
27 .ENDIF
28 .ENDIF
30 # unroll begin
31 # ---- create the test libraries ------------------------------------
33 TEST2LIB=$(SHL2TARGETN)
34 .IF "$(TESTOPT)"==""
35 TEST2OPT="-jobexclude"
36 TEST2OPT+=$(SHL2TARGET).xsce
37 TEST2OPT+="-sf"
38 TEST2OPT+=$(mktmp "foo")
39 TEST2OPT+="-onlyerrors"
40 TEST2OPT+=" "
41 TEST2OPT+=$(TESTOPTADD)
42 .ELSE
43 TEST2OPT=$(TESTOPT)
44 .ENDIF
46 .IF "$(SHL2TARGET)"!=""
47 test : test2
48 test2: ALLTAR
49 @echo ----------------------------------------------------------
50 @echo - start unit test \#2 on library $(TEST2LIB)
51 @echo ----------------------------------------------------------
52 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
53 `which testshl2` $(TEST2LIB) $(TEST2OPT)
54 .ELSE
55 testshl2 $(TEST2LIB) $(TEST2OPT)
56 .ENDIF
57 .ENDIF
59 # unroll begin
60 # ---- create the test libraries ------------------------------------
62 TEST3LIB=$(SHL3TARGETN)
63 .IF "$(TESTOPT)"==""
64 TEST3OPT="-jobexclude"
65 TEST3OPT+=$(SHL3TARGET).xsce
66 TEST3OPT+="-sf"
67 TEST3OPT+=$(mktmp "foo")
68 TEST3OPT+="-onlyerrors"
69 TEST3OPT+=" "
70 TEST3OPT+=$(TESTOPTADD)
71 .ELSE
72 TEST3OPT=$(TESTOPT)
73 .ENDIF
75 .IF "$(SHL3TARGET)"!=""
76 test : test3
77 test3: ALLTAR
78 @echo ----------------------------------------------------------
79 @echo - start unit test \#3 on library $(TEST3LIB)
80 @echo ----------------------------------------------------------
81 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
82 `which testshl2` $(TEST3LIB) $(TEST3OPT)
83 .ELSE
84 testshl2 $(TEST3LIB) $(TEST3OPT)
85 .ENDIF
86 .ENDIF
88 # unroll begin
89 # ---- create the test libraries ------------------------------------
91 TEST4LIB=$(SHL4TARGETN)
92 .IF "$(TESTOPT)"==""
93 TEST4OPT="-jobexclude"
94 TEST4OPT+=$(SHL4TARGET).xsce
95 TEST4OPT+="-sf"
96 TEST4OPT+=$(mktmp "foo")
97 TEST4OPT+="-onlyerrors"
98 TEST4OPT+=" "
99 TEST4OPT+=$(TESTOPTADD)
100 .ELSE
101 TEST4OPT=$(TESTOPT)
102 .ENDIF
104 .IF "$(SHL4TARGET)"!=""
105 test : test4
106 test4: ALLTAR
107 @echo ----------------------------------------------------------
108 @echo - start unit test \#4 on library $(TEST4LIB)
109 @echo ----------------------------------------------------------
110 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
111 `which testshl2` $(TEST4LIB) $(TEST4OPT)
112 .ELSE
113 testshl2 $(TEST4LIB) $(TEST4OPT)
114 .ENDIF
115 .ENDIF
117 # unroll begin
118 # ---- create the test libraries ------------------------------------
120 TEST5LIB=$(SHL5TARGETN)
121 .IF "$(TESTOPT)"==""
122 TEST5OPT="-jobexclude"
123 TEST5OPT+=$(SHL5TARGET).xsce
124 TEST5OPT+="-sf"
125 TEST5OPT+=$(mktmp "foo")
126 TEST5OPT+="-onlyerrors"
127 TEST5OPT+=" "
128 TEST5OPT+=$(TESTOPTADD)
129 .ELSE
130 TEST5OPT=$(TESTOPT)
131 .ENDIF
133 .IF "$(SHL5TARGET)"!=""
134 test : test5
135 test5: ALLTAR
136 @echo ----------------------------------------------------------
137 @echo - start unit test \#5 on library $(TEST5LIB)
138 @echo ----------------------------------------------------------
139 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
140 `which testshl2` $(TEST5LIB) $(TEST5OPT)
141 .ELSE
142 testshl2 $(TEST5LIB) $(TEST5OPT)
143 .ENDIF
144 .ENDIF
146 # unroll begin
147 # ---- create the test libraries ------------------------------------
149 TEST6LIB=$(SHL6TARGETN)
150 .IF "$(TESTOPT)"==""
151 TEST6OPT="-jobexclude"
152 TEST6OPT+=$(SHL6TARGET).xsce
153 TEST6OPT+="-sf"
154 TEST6OPT+=$(mktmp "foo")
155 TEST6OPT+="-onlyerrors"
156 TEST6OPT+=" "
157 TEST6OPT+=$(TESTOPTADD)
158 .ELSE
159 TEST6OPT=$(TESTOPT)
160 .ENDIF
162 .IF "$(SHL6TARGET)"!=""
163 test : test6
164 test6: ALLTAR
165 @echo ----------------------------------------------------------
166 @echo - start unit test \#6 on library $(TEST6LIB)
167 @echo ----------------------------------------------------------
168 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
169 `which testshl2` $(TEST6LIB) $(TEST6OPT)
170 .ELSE
171 testshl2 $(TEST6LIB) $(TEST6OPT)
172 .ENDIF
173 .ENDIF
175 # unroll begin
176 # ---- create the test libraries ------------------------------------
178 TEST7LIB=$(SHL7TARGETN)
179 .IF "$(TESTOPT)"==""
180 TEST7OPT="-jobexclude"
181 TEST7OPT+=$(SHL7TARGET).xsce
182 TEST7OPT+="-sf"
183 TEST7OPT+=$(mktmp "foo")
184 TEST7OPT+="-onlyerrors"
185 TEST7OPT+=" "
186 TEST7OPT+=$(TESTOPTADD)
187 .ELSE
188 TEST7OPT=$(TESTOPT)
189 .ENDIF
191 .IF "$(SHL7TARGET)"!=""
192 test : test7
193 test7: ALLTAR
194 @echo ----------------------------------------------------------
195 @echo - start unit test \#7 on library $(TEST7LIB)
196 @echo ----------------------------------------------------------
197 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
198 `which testshl2` $(TEST7LIB) $(TEST7OPT)
199 .ELSE
200 testshl2 $(TEST7LIB) $(TEST7OPT)
201 .ENDIF
202 .ENDIF
204 # unroll begin
205 # ---- create the test libraries ------------------------------------
207 TEST8LIB=$(SHL8TARGETN)
208 .IF "$(TESTOPT)"==""
209 TEST8OPT="-jobexclude"
210 TEST8OPT+=$(SHL8TARGET).xsce
211 TEST8OPT+="-sf"
212 TEST8OPT+=$(mktmp "foo")
213 TEST8OPT+="-onlyerrors"
214 TEST8OPT+=" "
215 TEST8OPT+=$(TESTOPTADD)
216 .ELSE
217 TEST8OPT=$(TESTOPT)
218 .ENDIF
220 .IF "$(SHL8TARGET)"!=""
221 test : test8
222 test8: ALLTAR
223 @echo ----------------------------------------------------------
224 @echo - start unit test \#8 on library $(TEST8LIB)
225 @echo ----------------------------------------------------------
226 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
227 `which testshl2` $(TEST8LIB) $(TEST8OPT)
228 .ELSE
229 testshl2 $(TEST8LIB) $(TEST8OPT)
230 .ENDIF
231 .ENDIF
233 # unroll begin
234 # ---- create the test libraries ------------------------------------
236 TEST9LIB=$(SHL9TARGETN)
237 .IF "$(TESTOPT)"==""
238 TEST9OPT="-jobexclude"
239 TEST9OPT+=$(SHL9TARGET).xsce
240 TEST9OPT+="-sf"
241 TEST9OPT+=$(mktmp "foo")
242 TEST9OPT+="-onlyerrors"
243 TEST9OPT+=" "
244 TEST9OPT+=$(TESTOPTADD)
245 .ELSE
246 TEST9OPT=$(TESTOPT)
247 .ENDIF
249 .IF "$(SHL9TARGET)"!=""
250 test : test9
251 test9: ALLTAR
252 @echo ----------------------------------------------------------
253 @echo - start unit test \#9 on library $(TEST9LIB)
254 @echo ----------------------------------------------------------
255 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
256 `which testshl2` $(TEST9LIB) $(TEST9OPT)
257 .ELSE
258 testshl2 $(TEST9LIB) $(TEST9OPT)
259 .ENDIF
260 .ENDIF
262 # unroll begin
263 # ---- create the test libraries ------------------------------------
265 TEST10LIB=$(SHL10TARGETN)
266 .IF "$(TESTOPT)"==""
267 TEST10OPT="-jobexclude"
268 TEST10OPT+=$(SHL10TARGET).xsce
269 TEST10OPT+="-sf"
270 TEST10OPT+=$(mktmp "foo")
271 TEST10OPT+="-onlyerrors"
272 TEST10OPT+=" "
273 TEST10OPT+=$(TESTOPTADD)
274 .ELSE
275 TEST10OPT=$(TESTOPT)
276 .ENDIF
278 .IF "$(SHL10TARGET)"!=""
279 test : test10
280 test10: ALLTAR
281 @echo ----------------------------------------------------------
282 @echo - start unit test \#10 on library $(TEST10LIB)
283 @echo ----------------------------------------------------------
284 .IF "$(OS)" == "LINUX" # full path needed by osl_getModuleURLFromAddress:
285 `which testshl2` $(TEST10LIB) $(TEST10OPT)
286 .ELSE
287 testshl2 $(TEST10LIB) $(TEST10OPT)
288 .ENDIF
289 .ENDIF