Debian Codegraph @

tests/Makefile

raw
1 # file: Makefile for POSIX 1003.5b Test Suite
2 # [$Revision$]
3 #
4 # This builds the test suite for POSIX 1003.5 and 1003.5b.
5 # This version is for use with the GNAT Ada compiler
6 # and the Florist implementation of POSIX 1003.5b.
7 #
8 .POSIX:
9 #
10 MASTERDIR=/part1/florist/tests
11 PAVT_VERSION=pavt-1.4.1
12 # The following definitions are for using the default installed GNAT
13 # runtime system.
14 GNATMAKEFLAGS1 = -I../libsrc -I../libsrc/threads -I../gensrc -aL../lib
15 #
16 GNATMAKEFLAGS2= -cargs -gnatay -gnatwu -largs -lflorist
17 GNATMAKEFLAGS2a= -cargs -largs -lflorist
18 GNATPREPFLAGS = -c -r
19 TOOLS =\
20 renumber.adb\
21 run_tests_1
22 DOCS =\
23 README\
24 NOTES.LINUX\
25 NOTES.SOLARIS\
26 NOTES
27 TEST_SOURCES = \
28 posix_report.ads\
29 posix_report.adb\
30 test_parameters.ads\
31 test_parameters.adb\
32 p020400.adb\
33 p020400.ads\
34 p021000.adb\
35 p021000.ads\
36 p030100.adb\
37 p030100.ads\
38 p030100b.adb\
39 p030100b.ads\
40 p030101.adb\
41 p030101.ads\
42 p030101b.adb\
43 p030101b.ads\
44 p030102.adb\
45 p030102.ads\
46 p030200.adb\
47 p030200.ads\
48 p030300.adb\
49 p030300.ads\
50 p030300a.adb\
51 p030300a.ads\
52 p030301.adb\
53 p030301.ads\
54 p030301b.adb\
55 p030301b.ads\
56 p030303.adb\
57 p030303.ads\
58 p030304.adb\
59 p030304.ads\
60 p030305.adb\
61 p030305.ads\
62 p030306.adb\
63 p030306.ads\
64 p030306a.adb\
65 p030306a.ads\
66 p040100.adb\
67 p040100.ads\
68 p040101.adb\
69 p040101.ads\
70 p040300.adb\
71 p040300.ads\
72 p040301.adb\
73 p040301.ads\
74 p050100.adb\
75 p050100.ads\
76 p050200.adb\
77 p050200.ads\
78 p050300.adb\
79 p050300.ads\
80 p060100.adb\
81 p060100.ads\
82 p060200.adb\
83 p060200.ads\
84 p060300.adb\
85 p060300.ads\
86 p070200.adb\
87 p070200.ads\
88 p090100.adb\
89 p090100.ads\
90 p090200.adb\
91 p090200.ads\
92 p110100.adb\
93 p110100.ads\
94 p110101.adb\
95 p110101.ads\
96 p110200.adb\
97 p110200.ads\
98 p110201.adb\
99 p110201.ads\
100 p110300.adb\
101 p110300.ads\
102 p120100.adb\
103 p120100.ads\
104 p120101.adb\
105 p120101.ads\
106 p120200.adb\
107 p120200.ads\
108 p120300.adb\
109 p120300.ads\
110 p120400.adb\
111 p120400.ads\
112 p120500.adb\
113 p120500.ads\
114 p120501.adb\
115 p120501.ads\
116 p120502.adb\
117 p120502.ads\
118 p120502a.adb\
119 p120502a.ads\
120 p140100.adb\
121 p140100.ads\
122 p140101.adb\
123 p140101.ads\
124 p150100.adb\
125 p150100.ads\
126 p150100b.adb\
127 p150100b.ads\
128 p150101.adb\
129 p150101.ads\
130 p990000.adb\
131 p990000.ads\
132 p990001a.adb\
133 p990001a.ads\
134 p990001b.adb\
135 p990001b.ads\
136 p990001c.adb\
137 p990001c.ads\
138 p990002a.adb\
139 p990002a.ads\
140 p990002b.adb\
141 p990002b.ads\
142 p990002c.adb\
143 p990002c.ads\
144 p990002d.adb\
145 p990002d.ads\
146 p990003a.adb\
147 p990003a.ads\
148 p990003b.adb\
149 p990003b.ads\
150 p990010.adb\
151 p990010.ads\
152 p990010a.ads\
153 p990020.adb\
154 p990020.ads\
155 p990020a.ads\
156 p990030.adb\
157 p990030.ads\
158 p990030a.ads\
159 p990040.adb\
160 p990040.ads\
161 p990040a.ads\
162 p990040b.adb\
163 p990040b.ads\
164 p990050.adb\
165 p990050.ads\
166 p990050a.ads\
167 p990050b.adb\
168 p990050b.ads\
169 p990060.adb\
170 p990060.ads\
171 p990060a.ads\
172 p990070.adb\
173 p990070.ads\
174 p990070a.ads\
175 p990080.adb\
176 p990080.ads\
177 p990080a.ads\
178 p990090.adb\
179 p990090.ads\
180 p990090a.ads\
181 p990011.adb\
182 p990011.ads\
183 p990011a.ads\
184 p9900doc.ads\
185 p9900x0.adb\
186 p9900x0.ads
187 TESTS =\
188 p021000\
189 p030100\
190 p030100b\
191 p030101\
192 p030101b\
193 p030102\
194 p030200\
195 p030301\
196 p030301b\
197 p030303\
198 p030304\
199 p030305\
200 p030306\
201 p030306a\
202 p040100\
203 p040101\
204 p040300\
205 p040301\
206 p050100\
207 p050200\
208 p050300\
209 p060100\
210 p060200\
211 p060300\
212 p070200\
213 p090100\
214 p090200\
215 p110100\
216 p110101\
217 p110200\
218 p110201\
219 p110300\
220 p120100\
221 p120101\
222 p120200\
223 p120300\
224 p120400\
225 p120500\
226 p120501\
227 p120502\
228 p120502a\
229 p140101\
230 p150100b\
231 p150101
232 SPECIAL_TESTS=\
233 p020400\
234 p030300\
235 p030300a\
236 p140100\
237 p150100\
238 p990010\
239 p990020\
240 p990030\
241 p990040\
242 p990040b\
243 p990050\
244 p990050b\
245 p990060\
246 p990070\
247 p990080\
248 p990090\
249 p990011
250 #
251 .SUFFIXES: .o .c
252 .c.o:
253 gcc -c -g $<
254 #
255 tests: $(TESTS) $(SPECIAL_TESTS)
256 #
257 p020400: p020400.ads p020400.adb
258 p021000: p021000.ads p021000.adb
259 p030100: p030100.ads p030100.adb p030100b
260 p030100b: p030100b.ads p030100b.adb
261 p030101: p030101.ads p030101.adb
262 p030101b: p030101b.ads p030101b.adb
263 p030102: p030102.ads p030102.adb p030101b
264 p030102b: p030102b.ads p030102b.adb
265 p030200: p030200.ads p030200.adb
266 p030300: p030300.ads p030300.adb p030300a.ads
267 p030300a: p030300a.ads p030300a.adb
268 p030301: p030301.ads p030301.adb p030301b
269 p030301b: p030301b.ads p030301b.adb
270 p030303: p030303.ads p030303.adb
271 p030304: p030304.ads p030304.adb
272 p030305: p030305.ads p030305.adb
273 p030306: p030306.ads p030306.adb p030306a p030300a
274 p030306a: p030306a.ads p030306a.adb p030300a
275 p040100: p040100.ads p040100.adb
276 p040101: p040101.ads p040101.adb
277 p040300: p040300.ads p040300.adb
278 p040301: p040301.ads p040301.adb
279 p050100: p050100.ads p050100.adb
280 p050200: p050200.ads p050200.adb
281 p050300: p050300.ads p050300.adb
282 p060100: p060100.ads p060100.adb
283 p060200: p060200.ads p060200.adb
284 p060300: p060300.ads p060300.adb
285 p070200: p070200.ads p070200.adb
286 p090100: p090100.ads p090100.adb
287 p090200: p090200.ads p090200.adb
288 p110100: p110100.ads p110100.adb
289 p110101: p110101.ads p110101.adb
290 p110200: p110200.ads p110200.adb
291 p110201: p110201.ads p110201.adb
292 p110300: p110300.ads p110300.adb
293 p120100: p120100.ads p120100.adb
294 p120101: p120101.ads p120101.adb
295 p120200: p120200.ads p120200.adb
296 p120300: p120300.ads p120300.adb
297 p120400: p120400.ads p120400.adb
298 p120500: p120500.ads p120500.adb
299 p120501: p120501.ads p120501.adb
300 p120502: p120502.ads p120502.adb p120502a
301 p120502a: p120502a.ads p120502a.adb
302 p140100: p140100.ads p140100.adb
303 p140101: p140101.ads p140101.adb
304 p150100: p150100.ads p150100.adb p150100b
305 p150100b: p150100b.ads p150100b.adb
306 p150101: p150101.ads p150101.adb
307 p990010: p990010.ads p990010.adb\
308 p990010a.ads\
309 p9900x0.ads p9900x0.adb\
310 p990000.ads p990000.adb\
311 p990001a.ads p990001a.adb\
312 p990002a.ads p990002a.adb\
313 p990003a.ads p990003a.adb
314 p990020: p990020.ads p990020.adb\
315 p990020a.ads\
316 p9900x0.ads p9900x0.adb\
317 p990000.ads p990000.adb\
318 p990001b.ads p990001b.adb\
319 p990002b.ads p990002b.adb\
320 p990003a.ads p990003a.adb
321 p990030: p990030.ads p990030.adb\
322 p990030a.ads\
323 p9900x0.ads p9900x0.adb\
324 p990000.ads p990000.adb\
325 p990001b.ads p990001b.adb\
326 p990002c.ads p990002c.adb\
327 p990003a.ads p990003a.adb
328 p990040: p990040.ads p990040.adb p990040b\
329 p990040a.ads\
330 p9900x0.ads p9900x0.adb\
331 p990000.ads p990000.adb\
332 p990001c.ads p990001c.adb\
333 p990002a.ads p990002a.adb\
334 p990003b.ads p990003b.adb
335 p990040b: p990040b.ads p990040b.adb\
336 p990040a.ads\
337 p9900x0.ads p9900x0.adb\
338 p990000.ads p990000.adb\
339 p990001c.ads p990001c.adb\
340 p990002a.ads p990002a.adb\
341 p990003b.ads p990003b.adb
342 p990050: p990050.ads p990050.adb p990050b\
343 p990050a.ads\
344 p9900x0.ads p9900x0.adb\
345 p990000.ads p990000.adb\
346 p990001c.ads p990001c.adb\
347 p990002d.ads p990002d.adb\
348 p990003b.ads p990003b.adb
349 p990050b: p990050b.ads p990050b.adb\
350 p990050a.ads\
351 p9900x0.ads p9900x0.adb\
352 p990000.ads p990000.adb\
353 p990001c.ads p990001c.adb\
354 p990002d.ads p990002d.adb\
355 p990003b.ads p990003b.adb
356 p990060: p990060.ads p990060.adb\
357 p990060a.ads\
358 p9900x0.ads p9900x0.adb\
359 p990000.ads p990000.adb\
360 p990001b.ads p990001b.adb\
361 p990002a.ads p990002a.adb\
362 p990003a.ads p990003a.adb
363 p990070: p990070.ads p990070.adb\
364 p990070a.ads\
365 p9900x0.ads p9900x0.adb\
366 p990000.ads p990000.adb\
367 p990001c.ads p990001c.adb\
368 p990002a.ads p990002a.adb\
369 p990003a.ads p990003a.adb
370 p990080: p990080.ads p990080.adb\
371 p990080a.ads\
372 p9900x0.ads p9900x0.adb\
373 p990000.ads p990000.adb\
374 p990001a.ads p990001a.adb\
375 p990002d.ads p990002d.adb\
376 p990003a.ads p990003a.adb
377 p990090: p990090.ads p990090.adb\
378 p990090a.ads\
379 p9900x0.ads p9900x0.adb\
380 p990000.ads p990000.adb\
381 p990001a.ads p990001a.adb\
382 p990002b.ads p990002b.adb\
383 p990003a.ads p990003a.adb
384 p990011: p990011.ads p990011.adb\
385 p990090a.ads\
386 p9900x0.ads p9900x0.adb\
387 p990000.ads p990000.adb\
388 p990001a.ads p990001a.adb\
389 p990002c.ads p990002c.adb\
390 p990003a.ads p990003a.adb
391 testit: testit.adb
392
393 $(TESTS) testit: posix_report.ads posix_report.adb\
394 ../lib/libflorist.a test_parameters.adb
395 gnatmake $(GNATMAKEFLAGS1) $@ $(GNATMAKEFLAGS2)
396 #
397 # Due to zealousness of the "-gnaty" style-checker,
398 # the following tests need to be compiled without "-gnaty".
399 #
400 $(SPECIAL_TESTS): posix_report.ads posix_report.adb\
401 ../lib/libflorist.a test_parameters.adb
402 gnatmake $(GNATMAKEFLAGS1) $@ $(GNATMAKEFLAGS2a)
403 #
404 # Make a separate directory in which to run the tests,
405 # so we have less chance of a wild test trashing our sources.
406 #
407 test.dir:
408 mkdir test.dir
409 ln -s .. test.dir/bin
410 #
411 # Compile all the tests
412 #
413 # Run all the tests
414 # Some tests require that the standard error file be a terminal.
415 run_tests: $(TESTS) $(SPECIAL_TESTS) test.dir
416 -cd test.dir; ../run_tests_1 >> run_tests_1.log
417 #
418 # -----------------------------------
419 # Maintenance targets.
420 # -----------------------------------
421 #
422 # remove editor and compiler generated files
423 clean:
424 rm -f *.o *.ali a.out *# *~ $(LITTER) $(TESTS)\
425 $(SPECIAL_TESTS) b~*.ad* b_*.c *.log
426 touch florist
427 # remove all generated files
428 realclean:
429 rm -f *.o *.ali $(TESTS) $(SPECIAL_TESTS) \
430 a.out *# *~ b~*.ad* b_*.c $(GENERATED) $(LITTER)
431 #
432 # The following targets are only for use by the implementors.
433 #
434 # check all sources into RCS directory
435 # and remove everything except "Makefile"
436 distclean:
437 rm -f *.o *.ali $(TESTS) $(SPECIAL_TESTS) \
438 a.out *# *~ b~*.ad* b_*.c $(GENERATED) $(LITTER)
439 rm -rf test.dir
440 -ci -m"make distclean" $(TEST_SOURCES) $(TOOLS) Makefile $(DOCS)
441 -co Makefile
442 # check out all sources, ready for editing
443 neat:
444 -co -l $(TEST_SOURCES) $(TOOLS) $(DOCS)
445 -co -l Makefile
446 # check out all sources, read-only
447 checkallout:
448 -co $(TEST_SOURCES) $(TOOLS) $(DOCS)
449 -co Makefile
450 rm -f $(GENERATED)
451 # make tarfile of just the POSIX.5b validation tests
452 distribution: make_test_links
453 rm -f ${PAVT_VERSION}.tar.gz
454 ./make_test_links ./${PAVT_VERSION} $(MASTERDIR)
455 tar cvhf ${PAVT_VERSION}.tar ${PAVT_VERSION}
456 gzip ${PAVT_VERSION}.tar
457 rts: s-interr.adb s-intman.adb s-inmaop.adb
458 gnatmake -a $(GNATMAKEFLAGS1) dummy $(GNATMAKEFLAGS2a)