1 | # |
---|
2 | # Library Testsuite |
---|
3 | # |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../aclocal |
---|
6 | |
---|
7 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
8 | include $(top_srcdir)/../automake/compile.am |
---|
9 | |
---|
10 | lib_tests = |
---|
11 | lib_screens = |
---|
12 | lib_docs = |
---|
13 | |
---|
14 | support_includes = -I$(top_srcdir)/../support/include |
---|
15 | test_includes = -I$(top_srcdir)/support \ |
---|
16 | -I$(top_srcdir)/../psxtests/include |
---|
17 | |
---|
18 | if TEST_block01 |
---|
19 | lib_tests += block01 |
---|
20 | lib_screens += block01/block01.scn |
---|
21 | lib_docs += block01/block01.doc |
---|
22 | block01_SOURCES = block01/init.c |
---|
23 | block01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block01) \ |
---|
24 | $(support_includes) |
---|
25 | endif |
---|
26 | |
---|
27 | if TEST_block02 |
---|
28 | lib_tests += block02 |
---|
29 | lib_screens += block02/block02.scn |
---|
30 | lib_docs += block02/block02.doc |
---|
31 | block02_SOURCES = block02/init.c |
---|
32 | block02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block02) \ |
---|
33 | $(support_includes) |
---|
34 | endif |
---|
35 | |
---|
36 | if TEST_block03 |
---|
37 | lib_tests += block03 |
---|
38 | lib_screens += block03/block03.scn |
---|
39 | lib_docs += block03/block03.doc |
---|
40 | block03_SOURCES = block03/init.c |
---|
41 | block03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block03) \ |
---|
42 | $(support_includes) |
---|
43 | endif |
---|
44 | |
---|
45 | if TEST_block04 |
---|
46 | lib_tests += block04 |
---|
47 | lib_screens += block04/block04.scn |
---|
48 | lib_docs += block04/block04.doc |
---|
49 | block04_SOURCES = block04/init.c |
---|
50 | block04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block04) \ |
---|
51 | $(support_includes) |
---|
52 | endif |
---|
53 | |
---|
54 | if TEST_block05 |
---|
55 | lib_tests += block05 |
---|
56 | lib_screens += block05/block05.scn |
---|
57 | lib_docs += block05/block05.doc block05/block05.png |
---|
58 | block05_SOURCES = block05/init.c |
---|
59 | block05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block05) \ |
---|
60 | $(support_includes) |
---|
61 | endif |
---|
62 | |
---|
63 | if TEST_block06 |
---|
64 | lib_tests += block06 |
---|
65 | lib_screens += block06/block06.scn |
---|
66 | lib_docs += block06/block06.doc |
---|
67 | block06_SOURCES = block06/init.c |
---|
68 | block06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block06) \ |
---|
69 | $(support_includes) |
---|
70 | endif |
---|
71 | |
---|
72 | if TEST_block07 |
---|
73 | lib_tests += block07 |
---|
74 | lib_screens += block07/block07.scn |
---|
75 | lib_docs += block07/block07.doc |
---|
76 | block07_SOURCES = block07/init.c |
---|
77 | block07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block07) \ |
---|
78 | $(support_includes) |
---|
79 | endif |
---|
80 | |
---|
81 | if TEST_block08 |
---|
82 | lib_tests += block08 |
---|
83 | lib_screens += block08/block08.scn |
---|
84 | lib_docs += block08/block08.doc |
---|
85 | block08_SOURCES = block08/init.c block08/system.h \ |
---|
86 | block08/bdbuf_tests.c block08/bdbuf_tests.h block08/test_disk.c \ |
---|
87 | block08/bdbuf_test1_1.c block08/bdbuf_test1_2.c \ |
---|
88 | block08/bdbuf_test1_3.c block08/bdbuf_test1_4.c \ |
---|
89 | block08/bdbuf_test1_5.c block08/bdbuf_test2_1.c \ |
---|
90 | block08/bdbuf_test2_2.c block08/bdbuf_test3_1.c \ |
---|
91 | block08/bdbuf_test3_2.c block08/bdbuf_test3_3.c \ |
---|
92 | block08/bdbuf_test4_1.c block08/bdbuf_test4_2.c \ |
---|
93 | block08/bdbuf_test4_3.c |
---|
94 | block08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block08) \ |
---|
95 | $(support_includes) -I$(top_srcdir)/block08 |
---|
96 | endif |
---|
97 | |
---|
98 | if TEST_block09 |
---|
99 | lib_tests += block09 |
---|
100 | lib_screens += block09/block09.scn |
---|
101 | lib_docs += block09/block09.doc |
---|
102 | block09_SOURCES = block09/init.c |
---|
103 | block09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block09) \ |
---|
104 | $(support_includes) |
---|
105 | endif |
---|
106 | |
---|
107 | if TEST_block10 |
---|
108 | lib_tests += block10 |
---|
109 | lib_screens += block10/block10.scn |
---|
110 | lib_docs += block10/block10.doc block10/block10.png |
---|
111 | block10_SOURCES = block10/init.c |
---|
112 | block10_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block10) \ |
---|
113 | $(support_includes) |
---|
114 | endif |
---|
115 | |
---|
116 | if TEST_block11 |
---|
117 | lib_tests += block11 |
---|
118 | lib_screens += block11/block11.scn |
---|
119 | lib_docs += block11/block11.doc |
---|
120 | block11_SOURCES = block11/init.c |
---|
121 | block11_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block11) \ |
---|
122 | $(support_includes) |
---|
123 | endif |
---|
124 | |
---|
125 | if TEST_block12 |
---|
126 | lib_tests += block12 |
---|
127 | lib_screens += block12/block12.scn |
---|
128 | lib_docs += block12/block12.doc |
---|
129 | block12_SOURCES = block12/init.c |
---|
130 | block12_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block12) \ |
---|
131 | $(support_includes) |
---|
132 | endif |
---|
133 | |
---|
134 | if TEST_block13 |
---|
135 | lib_tests += block13 |
---|
136 | lib_screens += block13/block13.scn |
---|
137 | lib_docs += block13/block13.doc |
---|
138 | block13_SOURCES = block13/init.c |
---|
139 | block13_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block13) \ |
---|
140 | $(support_includes) |
---|
141 | endif |
---|
142 | |
---|
143 | if TEST_block14 |
---|
144 | lib_tests += block14 |
---|
145 | lib_screens += block14/block14.scn |
---|
146 | lib_docs += block14/block14.doc |
---|
147 | block14_SOURCES = block14/init.c |
---|
148 | block14_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block14) \ |
---|
149 | $(support_includes) |
---|
150 | endif |
---|
151 | |
---|
152 | if TEST_block15 |
---|
153 | lib_tests += block15 |
---|
154 | lib_screens += block15/block15.scn |
---|
155 | lib_docs += block15/block15.doc |
---|
156 | block15_SOURCES = block15/init.c |
---|
157 | block15_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block15) \ |
---|
158 | $(support_includes) |
---|
159 | endif |
---|
160 | |
---|
161 | if TEST_block16 |
---|
162 | lib_tests += block16 |
---|
163 | lib_screens += block16/block16.scn |
---|
164 | lib_docs += block16/block16.doc |
---|
165 | block16_SOURCES = block16/init.c |
---|
166 | block16_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block16) \ |
---|
167 | $(support_includes) |
---|
168 | endif |
---|
169 | |
---|
170 | if TEST_block17 |
---|
171 | lib_tests += block17 |
---|
172 | lib_screens += block17/block17.scn |
---|
173 | lib_docs += block17/block17.doc |
---|
174 | block17_SOURCES = block17/init.c |
---|
175 | block17_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_block17) \ |
---|
176 | $(support_includes) |
---|
177 | endif |
---|
178 | |
---|
179 | if TEST_bspcmdline01 |
---|
180 | lib_tests += bspcmdline01 |
---|
181 | lib_screens += bspcmdline01/bspcmdline01.scn |
---|
182 | lib_docs += bspcmdline01/bspcmdline01.doc |
---|
183 | bspcmdline01_SOURCES = bspcmdline01/init.c |
---|
184 | bspcmdline01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_bspcmdline01) \ |
---|
185 | $(support_includes) |
---|
186 | endif |
---|
187 | |
---|
188 | if TEST_calloc |
---|
189 | lib_tests += calloc.norun |
---|
190 | calloc_norun_SOURCES = POSIX/calloc.c |
---|
191 | calloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
192 | endif |
---|
193 | |
---|
194 | if TEST_capture01 |
---|
195 | lib_tests += capture01 |
---|
196 | lib_screens += capture01/capture01.scn |
---|
197 | lib_docs += capture01/capture01.doc |
---|
198 | capture01_SOURCES = capture01/init.c capture01/test1.c \ |
---|
199 | capture01/system.h |
---|
200 | capture01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_capture01) \ |
---|
201 | $(support_includes) |
---|
202 | endif |
---|
203 | |
---|
204 | if TEST_clock_gettime |
---|
205 | lib_tests += clock_gettime.norun |
---|
206 | clock_gettime_norun_SOURCES = POSIX/clock_gettime.c |
---|
207 | clock_gettime_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
208 | endif |
---|
209 | |
---|
210 | if TEST_close |
---|
211 | lib_tests += close.norun |
---|
212 | close_norun_SOURCES = POSIX/close.c |
---|
213 | close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
214 | endif |
---|
215 | |
---|
216 | if TEST_complex |
---|
217 | lib_tests += complex |
---|
218 | lib_screens += complex/complex.scn |
---|
219 | complex_SOURCES = complex/init.c complex/docomplex.c \ |
---|
220 | complex/docomplexf.c complex/docomplexl.c |
---|
221 | complex_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_complex) \ |
---|
222 | $(support_includes) -DNO_LONG_DOUBLE |
---|
223 | complex_LDADD = -lm |
---|
224 | endif |
---|
225 | |
---|
226 | if TEST_cpuuse |
---|
227 | lib_tests += cpuuse |
---|
228 | lib_screens += cpuuse/cpuuse.scn |
---|
229 | cpuuse_SOURCES = cpuuse/init.c cpuuse/task1.c cpuuse/task2.c \ |
---|
230 | cpuuse/task3.c cpuuse/tswitch.c cpuuse/system.h |
---|
231 | cpuuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_cpuuse) \ |
---|
232 | $(support_includes) |
---|
233 | endif |
---|
234 | |
---|
235 | if TEST_crypt01 |
---|
236 | lib_tests += crypt01 |
---|
237 | lib_screens += crypt01/crypt01.scn |
---|
238 | lib_docs += crypt01/crypt01.doc |
---|
239 | crypt01_SOURCES = crypt01/init.c |
---|
240 | crypt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_crypt01) \ |
---|
241 | $(support_includes) |
---|
242 | endif |
---|
243 | |
---|
244 | if DEBUGGERTESTS |
---|
245 | if TEST_debugger01 |
---|
246 | lib_tests += debugger01 |
---|
247 | lib_screens += debugger01/debugger01.scn |
---|
248 | debugger01_SOURCES = debugger01/init.c debugger01/remote.c \ |
---|
249 | debugger01/system.h |
---|
250 | debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \ |
---|
251 | $(support_includes) |
---|
252 | debugger01_LDADD = $(RTEMS_ROOT)cpukit/libdebugger.a $(LDADD) |
---|
253 | endif |
---|
254 | endif |
---|
255 | |
---|
256 | if TEST_defaultconfig01 |
---|
257 | lib_tests += defaultconfig01 |
---|
258 | lib_screens += defaultconfig01/defaultconfig01.scn |
---|
259 | lib_docs += defaultconfig01/defaultconfig01.doc |
---|
260 | defaultconfig01_SOURCES = defaultconfig01/init.c |
---|
261 | defaultconfig01_CPPFLAGS = $(AM_CPPFLAGS) \ |
---|
262 | $(TEST_FLAGS_defaultconfig01) $(support_includes) |
---|
263 | defaultconfig01_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
264 | endif |
---|
265 | |
---|
266 | if TEST_devfs01 |
---|
267 | lib_tests += devfs01 |
---|
268 | lib_screens += devfs01/devfs01.scn |
---|
269 | lib_docs += devfs01/devfs01.doc |
---|
270 | devfs01_SOURCES = devfs01/init.c |
---|
271 | devfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs01) \ |
---|
272 | $(support_includes) |
---|
273 | endif |
---|
274 | |
---|
275 | if TEST_devfs02 |
---|
276 | lib_tests += devfs02 |
---|
277 | lib_screens += devfs02/devfs02.scn |
---|
278 | lib_docs += devfs02/devfs02.doc |
---|
279 | devfs02_SOURCES = devfs02/init.c |
---|
280 | devfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs02) \ |
---|
281 | $(support_includes) |
---|
282 | endif |
---|
283 | |
---|
284 | if TEST_devfs03 |
---|
285 | lib_tests += devfs03 |
---|
286 | lib_screens += devfs03/devfs03.scn |
---|
287 | lib_docs += devfs03/devfs03.doc |
---|
288 | devfs03_SOURCES = devfs03/init.c |
---|
289 | devfs03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs03) \ |
---|
290 | $(support_includes) |
---|
291 | endif |
---|
292 | |
---|
293 | if TEST_devfs04 |
---|
294 | lib_tests += devfs04 |
---|
295 | lib_screens += devfs04/devfs04.scn |
---|
296 | lib_docs += devfs04/devfs04.doc |
---|
297 | devfs04_SOURCES = devfs04/init.c devfs04/test_driver.c \ |
---|
298 | devfs04/test_driver.h |
---|
299 | devfs04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs04) \ |
---|
300 | $(support_includes) |
---|
301 | endif |
---|
302 | |
---|
303 | if TEST_deviceio01 |
---|
304 | lib_tests += deviceio01 |
---|
305 | lib_screens += deviceio01/deviceio01.scn |
---|
306 | lib_docs += deviceio01/deviceio01.doc |
---|
307 | deviceio01_SOURCES = deviceio01/init.c deviceio01/test_driver.c \ |
---|
308 | deviceio01/test_driver.h |
---|
309 | deviceio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_deviceio01) \ |
---|
310 | $(support_includes) |
---|
311 | endif |
---|
312 | |
---|
313 | if TEST_devnullfatal01 |
---|
314 | lib_tests += devnullfatal01 |
---|
315 | lib_screens += devnullfatal01/devnullfatal01.scn |
---|
316 | lib_docs += devnullfatal01/devnullfatal01.doc |
---|
317 | devnullfatal01_SOURCES = ../sptests/spfatal_support/init.c \ |
---|
318 | ../sptests/spfatal_support/system.h devnullfatal01/testcase.h |
---|
319 | devnullfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devnullfatal01) \ |
---|
320 | $(support_includes) -I$(top_srcdir)/../../sptests/spfatal_support \ |
---|
321 | -I$(top_srcdir)/devnullfatal01 |
---|
322 | endif |
---|
323 | |
---|
324 | if DLTESTS |
---|
325 | if TEST_dl01 |
---|
326 | lib_tests += dl01 |
---|
327 | lib_screens += dl01/dl01.scn |
---|
328 | lib_docs += dl01/dl01.doc |
---|
329 | dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h |
---|
330 | dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes) |
---|
331 | dl01/init.c: dl01-tar.o |
---|
332 | dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES) |
---|
333 | @rm -f dl01.pre |
---|
334 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
335 | dl01-o1.o: dl01/dl-o1.c Makefile |
---|
336 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
337 | dl01.tar: dl01-o1.o |
---|
338 | @rm -f $@ |
---|
339 | $(AM_V_GEN)$(PAX) -w -f $@ $< |
---|
340 | dl01-tar.c: dl01.tar |
---|
341 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
342 | dl01-tar.h: dl01.tar |
---|
343 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
344 | dl01-tar.o: dl01-tar.c dl01-tar.h |
---|
345 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
346 | dl01-sym.o: dl01.pre |
---|
347 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
348 | dl01$(EXEEXT): $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o |
---|
349 | @rm -f $@ |
---|
350 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
351 | CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h |
---|
352 | endif |
---|
353 | endif |
---|
354 | |
---|
355 | if DLTESTS |
---|
356 | if TEST_dl02 |
---|
357 | lib_tests += dl02 |
---|
358 | lib_screens += dl02/dl02.scn |
---|
359 | lib_docs += dl02/dl02.doc |
---|
360 | dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h |
---|
361 | dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes) |
---|
362 | dl02/init.c: dl02-tar.o |
---|
363 | dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES) |
---|
364 | @rm -f dl02.pre |
---|
365 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
366 | dl02-o1.o: dl02/dl-o1.c Makefile |
---|
367 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
368 | dl02-o2.o: dl02/dl-o2.c Makefile |
---|
369 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
370 | dl02.tar: dl02-o1.o dl02-o2.o |
---|
371 | @rm -f $@ |
---|
372 | $(AM_V_GEN)$(PAX) -w -f $@ $+ |
---|
373 | dl02-tar.c: dl02.tar |
---|
374 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
375 | dl02-tar.h: dl02.tar |
---|
376 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
377 | dl02-tar.o: dl02-tar.c dl02-tar.h |
---|
378 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
379 | dl02-sym.o: dl02.pre |
---|
380 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
381 | dl02$(EXEEXT): $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o |
---|
382 | @rm -f $@ |
---|
383 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
384 | CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h |
---|
385 | endif |
---|
386 | endif |
---|
387 | |
---|
388 | if DLTESTS |
---|
389 | if TEST_dl03 |
---|
390 | lib_tests += dl03 |
---|
391 | lib_screens += dl03/dl03.scn |
---|
392 | lib_docs += dl03/dl03.doc |
---|
393 | dl03_SOURCES = dl03/init.c dl03/dl-cache.c |
---|
394 | dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes) |
---|
395 | endif |
---|
396 | endif |
---|
397 | |
---|
398 | if DLTESTS |
---|
399 | if HAS_CXX |
---|
400 | if TEST_dl04 |
---|
401 | lib_tests += dl04 |
---|
402 | lib_screens += dl04/dl04.scn |
---|
403 | lib_docs += dl04/dl04.doc |
---|
404 | dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \ |
---|
405 | dl04-tar.h |
---|
406 | dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes) |
---|
407 | dl04/init.c: dl04-tar.o |
---|
408 | dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES) |
---|
409 | @rm -f dl04.pre |
---|
410 | $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
411 | dl04-o4.o: dl04/dl-o4.cpp Makefile |
---|
412 | $(AM_V_GEN)$(CXXCOMPILE) -c -o $@ $< |
---|
413 | dl04.tar: dl04-o4.o |
---|
414 | @rm -f $@ |
---|
415 | $(AM_V_GEN)$(PAX) -w -f $@ $< |
---|
416 | dl04-tar.c: dl04.tar |
---|
417 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
418 | dl04-tar.h: dl04.tar |
---|
419 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
420 | dl04-tar.o: dl04-tar.c dl04-tar.h |
---|
421 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
422 | dl04-sym.o: dl04.pre |
---|
423 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
424 | dl04$(EXEEXT): $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o |
---|
425 | @rm -f $@ |
---|
426 | $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
427 | CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h |
---|
428 | endif |
---|
429 | endif |
---|
430 | endif |
---|
431 | |
---|
432 | if DLTESTS |
---|
433 | if HAS_CXX |
---|
434 | if TEST_dl05 |
---|
435 | lib_tests += dl05 |
---|
436 | lib_screens += dl05/dl05.scn |
---|
437 | lib_docs += dl05/dl05.doc |
---|
438 | dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \ |
---|
439 | dl05-tar.h |
---|
440 | dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes) |
---|
441 | dl05/init.c: dl05-tar.o |
---|
442 | dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES) |
---|
443 | @rm -f dl05.pre |
---|
444 | $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
445 | dl05-o5.o: dl05/dl-o5.cpp |
---|
446 | $(AM_V_CXX)$(CXXCOMPILE) -c -o $@ $< |
---|
447 | dl05.tar: dl05-o5.o |
---|
448 | @rm -f $@ |
---|
449 | $(AM_V_GEN)$(PAX) -w -f $@ $< |
---|
450 | dl05-tar.c: dl05.tar |
---|
451 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
452 | dl05-tar.h: dl05.tar |
---|
453 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
454 | dl05-tar.o: dl05-tar.c dl05-tar.h |
---|
455 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
456 | dl05-sym.o: dl05.pre |
---|
457 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
458 | dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o |
---|
459 | @rm -f $@ |
---|
460 | $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
461 | CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h |
---|
462 | endif |
---|
463 | endif |
---|
464 | endif |
---|
465 | |
---|
466 | if DLTESTS |
---|
467 | if TEST_dl06 |
---|
468 | lib_tests += dl06 |
---|
469 | lib_screens += dl06/dl06.scn |
---|
470 | lib_docs += dl06/dl06.doc |
---|
471 | dl06_SOURCES = dl06/init.c dl06/dl-load.c dl06-tar.c dl06-tar.h |
---|
472 | dl06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl06) $(support_includes) |
---|
473 | dl06/init.c: dl06-tar.o |
---|
474 | dl06-pre.tar: Makefile |
---|
475 | $(AM_V_at)echo "Something in a file" > dl06_pre_file |
---|
476 | $(AM_V_GEN)$(PAX) -w -f $@ dl06_pre_file |
---|
477 | dl06-pre-tar.c: dl06-pre.tar |
---|
478 | $(AM_V_GEN)$(BIN2C) -N dl06_tar -C $< $@ |
---|
479 | dl06-pre-tar.h: dl06-pre.tar |
---|
480 | $(AM_V_GEN)$(BIN2C) -N dl06_tar -H $< $@ |
---|
481 | dl06-pre-tar.o: dl06-pre-tar.c dl06-pre-tar.h |
---|
482 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
483 | dl06-pre-init.o: dl06-pre-tar.o |
---|
484 | $(AM_V_CC)$(COMPILE) $(dl06_CPPFLAGS) $(CPU_CFLAGS) $(AM_CFLAGS) \ |
---|
485 | -DDL06_PRE -c -o $@ $(srcdir)/dl06/init.c |
---|
486 | dl06.pre: dl06-pre-init.o dl06/dl06-dl-load.o dl06-pre-tar.o |
---|
487 | @rm -f $@ |
---|
488 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
489 | dl06-o1.o: dl06/dl06-o1.c Makefile |
---|
490 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
491 | dl06-o2.o: dl06/dl06-o2.c Makefile |
---|
492 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
493 | dl06.rap: dl06.pre dl06-o1.o dl06-o2.o |
---|
494 | $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) -c "$(CPU_CFLAGS)" \ |
---|
495 | -O rap -b $< -e rtems_main -s \ |
---|
496 | -o $@ $(filter-out dl06.pre,$+) -lm |
---|
497 | dl06.tar: dl06.rap |
---|
498 | @rm -f $@ |
---|
499 | $(AM_V_GEN)$(PAX) -w -f $@ $< |
---|
500 | dl06-tar.c: dl06.tar |
---|
501 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
502 | dl06-tar.h: dl06.tar |
---|
503 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
504 | dl06-tar.o: dl06-tar.c dl06-tar.h |
---|
505 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
506 | dl06-sym.o: dl06.pre |
---|
507 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
508 | dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o |
---|
509 | @rm -f $@ |
---|
510 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
511 | CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h |
---|
512 | endif |
---|
513 | endif |
---|
514 | |
---|
515 | if DLTESTS |
---|
516 | if TEST_dl07 |
---|
517 | lib_tests += dl07 |
---|
518 | lib_screens += dl07/dl07.scn |
---|
519 | lib_docs += dl07/dl07.doc |
---|
520 | dl07_SOURCES = dl07/init.c dl07/dl-load.c dl07-tar.c dl07-tar.h |
---|
521 | dl07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl07) $(support_includes) |
---|
522 | dl07/init.c: dl07-tar.o |
---|
523 | dl07.pre: $(dl07_OBJECTS) $(dl07_DEPENDENCIES) |
---|
524 | @rm -f dl07.pre |
---|
525 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
526 | dl07-o1.o: dl07/dl-o1.c Makefile |
---|
527 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
528 | dl07-o2.o: dl07/dl-o2.c Makefile |
---|
529 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
530 | dl07-o3.o: dl07/dl-o3.c Makefile |
---|
531 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
532 | dl07-o4.o: dl07/dl-o4.c Makefile |
---|
533 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
534 | dl07-o5.o: dl07/dl-o5.c Makefile |
---|
535 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
536 | dl07.tar: dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o |
---|
537 | @rm -f $@ |
---|
538 | $(AM_V_GEN)$(PAX) -w -f $@ $+ |
---|
539 | dl07-tar.c: dl07.tar |
---|
540 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
541 | dl07-tar.h: dl07.tar |
---|
542 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
543 | dl07-tar.o: dl07-tar.c dl07-tar.h |
---|
544 | $(AM_V_CC)$(COMPILE) -c -o $@ $< |
---|
545 | dl07-sym.o: dl07.pre |
---|
546 | $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $< |
---|
547 | dl07$(EXEEXT): $(dl07_OBJECTS) $(dl07_DEPENDENCIES) dl07-sym.o |
---|
548 | @rm -f $@ |
---|
549 | $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+ |
---|
550 | CLEANFILES += dl07.pre dl07-sym.o dl07-o1.o dl07-o2.o dl07-o3.o dl07-o4.o dl07-o5.o dl07.tar dl07-tar.h |
---|
551 | endif |
---|
552 | endif |
---|
553 | |
---|
554 | if TEST_dumpbuf01 |
---|
555 | lib_tests += dumpbuf01 |
---|
556 | lib_screens += dumpbuf01/dumpbuf01.scn |
---|
557 | lib_docs += dumpbuf01/dumpbuf01.doc |
---|
558 | dumpbuf01_SOURCES = dumpbuf01/init.c |
---|
559 | dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \ |
---|
560 | $(support_includes) |
---|
561 | endif |
---|
562 | |
---|
563 | if TEST_dup2 |
---|
564 | lib_tests += dup2.norun |
---|
565 | dup2_norun_SOURCES = POSIX/dup2.c |
---|
566 | dup2_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
567 | endif |
---|
568 | |
---|
569 | if TEST_exit01 |
---|
570 | lib_tests += exit01 |
---|
571 | lib_screens += exit01/exit01.scn |
---|
572 | lib_docs += exit01/exit01.doc |
---|
573 | exit01_SOURCES = exit01/init.c |
---|
574 | exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \ |
---|
575 | $(support_includes) |
---|
576 | endif |
---|
577 | |
---|
578 | if TEST_exit02 |
---|
579 | lib_tests += exit02 |
---|
580 | lib_screens += exit02/exit02.scn |
---|
581 | lib_docs += exit02/exit02.doc |
---|
582 | exit02_SOURCES = exit02/init.c |
---|
583 | exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \ |
---|
584 | $(support_includes) |
---|
585 | endif |
---|
586 | |
---|
587 | if TEST_fcntl |
---|
588 | lib_tests += fcntl.norun |
---|
589 | fcntl_norun_SOURCES = POSIX/fcntl.c |
---|
590 | fcntl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
591 | endif |
---|
592 | |
---|
593 | if TEST_flashdisk01 |
---|
594 | lib_tests += flashdisk01 |
---|
595 | lib_screens += flashdisk01/flashdisk01.scn |
---|
596 | lib_docs += flashdisk01/flashdisk01.doc |
---|
597 | flashdisk01_SOURCES = flashdisk01/init.c \ |
---|
598 | flashdisk01/test-file-system.c |
---|
599 | flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \ |
---|
600 | $(support_includes) |
---|
601 | endif |
---|
602 | |
---|
603 | if TEST_flockfile |
---|
604 | lib_tests += flockfile.norun |
---|
605 | flockfile_norun_SOURCES = POSIX/flockfile.c |
---|
606 | flockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
607 | endif |
---|
608 | |
---|
609 | if TEST_fork |
---|
610 | lib_tests += fork.norun |
---|
611 | fork_norun_SOURCES = POSIX/fork.c |
---|
612 | fork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
613 | endif |
---|
614 | |
---|
615 | if TEST_free |
---|
616 | lib_tests += free.norun |
---|
617 | free_norun_SOURCES = POSIX/free.c |
---|
618 | free_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
619 | endif |
---|
620 | |
---|
621 | if TEST_fstat |
---|
622 | lib_tests += fstat.norun |
---|
623 | fstat_norun_SOURCES = POSIX/fstat.c |
---|
624 | fstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
625 | endif |
---|
626 | |
---|
627 | if NETTESTS |
---|
628 | if TEST_ftp01 |
---|
629 | lib_tests += ftp01 |
---|
630 | lib_screens += ftp01/ftp01.scn |
---|
631 | lib_docs += ftp01/ftp01.doc |
---|
632 | ftp01_SOURCES = ftp01/init.c |
---|
633 | ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \ |
---|
634 | $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking |
---|
635 | ftp01_LDADD = $(RTEMS_ROOT)cpukit/libftpd.a $(RTEMS_ROOT)cpukit/libftpfs.a $(LDADD) |
---|
636 | endif |
---|
637 | endif |
---|
638 | |
---|
639 | if TEST_ftrylockfile |
---|
640 | lib_tests += ftrylockfile.norun |
---|
641 | ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c |
---|
642 | ftrylockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
643 | endif |
---|
644 | |
---|
645 | if TEST_funlockfile |
---|
646 | lib_tests += funlockfile.norun |
---|
647 | funlockfile_norun_SOURCES = POSIX/funlockfile.c |
---|
648 | funlockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
649 | endif |
---|
650 | |
---|
651 | if TEST_getentropy01 |
---|
652 | lib_tests += getentropy01 |
---|
653 | lib_screens += getentropy01/getentropy01.scn |
---|
654 | lib_docs += getentropy01/getentropy01.doc |
---|
655 | getentropy01_SOURCES = getentropy01/init.c |
---|
656 | getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \ |
---|
657 | $(support_includes) |
---|
658 | endif |
---|
659 | |
---|
660 | if TEST_getlogin |
---|
661 | lib_tests += getlogin.norun |
---|
662 | getlogin_norun_SOURCES = POSIX/getlogin.c |
---|
663 | getlogin_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
664 | endif |
---|
665 | |
---|
666 | if TEST_getpwnam |
---|
667 | lib_tests += getpwnam.norun |
---|
668 | getpwnam_norun_SOURCES = POSIX/getpwnam.c |
---|
669 | getpwnam_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
670 | endif |
---|
671 | |
---|
672 | if TEST_getpwuid |
---|
673 | lib_tests += getpwuid.norun |
---|
674 | getpwuid_norun_SOURCES = POSIX/getpwuid.c |
---|
675 | getpwuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
676 | endif |
---|
677 | |
---|
678 | if TEST_gettimeofday |
---|
679 | lib_tests += gettimeofday.norun |
---|
680 | gettimeofday_norun_SOURCES = POSIX/gettimeofday.c |
---|
681 | gettimeofday_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
682 | endif |
---|
683 | |
---|
684 | if TEST_getuid |
---|
685 | lib_tests += getuid.norun |
---|
686 | getuid_norun_SOURCES = POSIX/getuid.c |
---|
687 | getuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
688 | endif |
---|
689 | |
---|
690 | if TEST_gxx01 |
---|
691 | lib_tests += gxx01 |
---|
692 | lib_screens += gxx01/gxx01.scn |
---|
693 | lib_docs += gxx01/gxx01.doc |
---|
694 | gxx01_SOURCES = gxx01/init.c |
---|
695 | gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \ |
---|
696 | $(support_includes) |
---|
697 | endif |
---|
698 | |
---|
699 | if TEST_heapwalk |
---|
700 | lib_tests += heapwalk |
---|
701 | lib_screens += heapwalk/heapwalk.scn |
---|
702 | heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h |
---|
703 | heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \ |
---|
704 | $(support_includes) |
---|
705 | endif |
---|
706 | |
---|
707 | if TEST_htonl |
---|
708 | lib_tests += htonl.norun |
---|
709 | htonl_norun_SOURCES = POSIX/htonl.c |
---|
710 | htonl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
711 | endif |
---|
712 | |
---|
713 | if TEST_i2c01 |
---|
714 | lib_tests += i2c01 |
---|
715 | lib_screens += i2c01/i2c01.scn |
---|
716 | lib_docs += i2c01/i2c01.doc |
---|
717 | i2c01_SOURCES = i2c01/init.c |
---|
718 | i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \ |
---|
719 | $(support_includes) |
---|
720 | endif |
---|
721 | |
---|
722 | if TEST_iconv |
---|
723 | lib_tests += iconv.norun |
---|
724 | iconv_norun_SOURCES = POSIX/iconv.c |
---|
725 | iconv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
726 | endif |
---|
727 | |
---|
728 | if TEST_iconv_close |
---|
729 | lib_tests += iconv_close.norun |
---|
730 | iconv_close_norun_SOURCES = POSIX/iconv_close.c |
---|
731 | iconv_close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
732 | endif |
---|
733 | |
---|
734 | if TEST_iconv_open |
---|
735 | lib_tests += iconv_open.norun |
---|
736 | iconv_open_norun_SOURCES = POSIX/iconv_open.c |
---|
737 | iconv_open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
738 | endif |
---|
739 | |
---|
740 | if TEST_kill |
---|
741 | lib_tests += kill.norun |
---|
742 | kill_norun_SOURCES = POSIX/kill.c |
---|
743 | kill_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
744 | endif |
---|
745 | |
---|
746 | if TEST_libfdt01 |
---|
747 | lib_tests += libfdt01 |
---|
748 | lib_screens += libfdt01/libfdt01.scn |
---|
749 | lib_docs += libfdt01/libfdt01.doc |
---|
750 | libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c |
---|
751 | libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \ |
---|
752 | $(support_includes) |
---|
753 | endif |
---|
754 | |
---|
755 | if TEST_longjmp |
---|
756 | lib_tests += longjmp.norun |
---|
757 | longjmp_norun_SOURCES = POSIX/longjmp.c |
---|
758 | longjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
759 | endif |
---|
760 | |
---|
761 | if TEST_lseek |
---|
762 | lib_tests += lseek.norun |
---|
763 | lseek_norun_SOURCES = POSIX/lseek.c |
---|
764 | lseek_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
765 | endif |
---|
766 | |
---|
767 | if TEST_lstat |
---|
768 | lib_tests += lstat.norun |
---|
769 | lstat_norun_SOURCES = POSIX/lstat.c |
---|
770 | lstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
771 | endif |
---|
772 | |
---|
773 | if TEST_malloc |
---|
774 | lib_tests += malloc.norun |
---|
775 | malloc_norun_SOURCES = POSIX/malloc.c |
---|
776 | malloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
777 | endif |
---|
778 | |
---|
779 | if TEST_malloc02 |
---|
780 | lib_tests += malloc02 |
---|
781 | lib_screens += malloc02/malloc02.scn |
---|
782 | lib_docs += malloc02/malloc02.doc |
---|
783 | malloc02_SOURCES = malloc02/init.c |
---|
784 | malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \ |
---|
785 | $(support_includes) |
---|
786 | endif |
---|
787 | |
---|
788 | if TEST_malloc03 |
---|
789 | lib_tests += malloc03 |
---|
790 | lib_screens += malloc03/malloc03.scn |
---|
791 | lib_docs += malloc03/malloc03.doc |
---|
792 | malloc03_SOURCES = malloc03/init.c |
---|
793 | malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \ |
---|
794 | $(support_includes) |
---|
795 | endif |
---|
796 | |
---|
797 | if TEST_malloc04 |
---|
798 | lib_tests += malloc04 |
---|
799 | lib_screens += malloc04/malloc04.scn |
---|
800 | lib_docs += malloc04/malloc04.doc |
---|
801 | malloc04_SOURCES = malloc04/init.c |
---|
802 | malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \ |
---|
803 | $(support_includes) |
---|
804 | endif |
---|
805 | |
---|
806 | if TEST_malloctest |
---|
807 | lib_tests += malloctest |
---|
808 | lib_screens += malloctest/malloctest.scn |
---|
809 | malloctest_SOURCES = malloctest/init.c malloctest/task1.c \ |
---|
810 | malloctest/system.h |
---|
811 | malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \ |
---|
812 | $(support_includes) |
---|
813 | endif |
---|
814 | |
---|
815 | if TEST_math |
---|
816 | lib_tests += math |
---|
817 | lib_screens += math/math.scn |
---|
818 | math_SOURCES = math/init.c math/domath.c |
---|
819 | math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \ |
---|
820 | -I$(top_srcdir)/math |
---|
821 | math_LDADD = -lm |
---|
822 | endif |
---|
823 | |
---|
824 | if TEST_mathf |
---|
825 | lib_tests += mathf |
---|
826 | lib_screens += mathf/mathf.scn |
---|
827 | mathf_SOURCES = mathf/init.c mathf/domathf.c |
---|
828 | mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \ |
---|
829 | $(support_includes) -I$(top_srcdir)/math |
---|
830 | mathf_LDADD = -lm |
---|
831 | endif |
---|
832 | |
---|
833 | if TEST_mathl |
---|
834 | lib_tests += mathl |
---|
835 | lib_screens += mathl/mathl.scn |
---|
836 | mathl_SOURCES = mathl/init.c mathl/domathl.c |
---|
837 | mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \ |
---|
838 | $(support_includes) -I$(top_srcdir)/math \ |
---|
839 | -DNO_LONG_DOUBLE |
---|
840 | mathl_LDADD = -lm |
---|
841 | endif |
---|
842 | |
---|
843 | if TEST_md501 |
---|
844 | lib_tests += md501 |
---|
845 | lib_screens += md501/md501.scn |
---|
846 | lib_docs += md501/md501.doc |
---|
847 | md501_SOURCES = md501/init.c |
---|
848 | md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \ |
---|
849 | $(support_includes) |
---|
850 | endif |
---|
851 | |
---|
852 | if NETTESTS |
---|
853 | if HAS_POSIX |
---|
854 | if TEST_mghttpd01 |
---|
855 | lib_tests += mghttpd01 |
---|
856 | lib_screens += mghttpd01/mghttpd01.scn |
---|
857 | lib_docs += mghttpd01/mghttpd01.doc |
---|
858 | mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \ |
---|
859 | mghttpd01_tar.h mghttpd01/test-http-client.c \ |
---|
860 | mghttpd01/test-http-client.h |
---|
861 | mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \ |
---|
862 | $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking |
---|
863 | mghttpd01_LDADD = $(RTEMS_ROOT)cpukit/libmghttpd.a $(LDADD) |
---|
864 | mghttpd01_tar.c: mghttpd01/mghttpd01.tar |
---|
865 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
866 | mghttpd01_tar.h: mghttpd01/mghttpd01.tar |
---|
867 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
868 | mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h |
---|
869 | mghttpd01/init.c: mghttpd01_tar.h |
---|
870 | CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h |
---|
871 | endif |
---|
872 | endif |
---|
873 | endif |
---|
874 | |
---|
875 | if TEST_monitor |
---|
876 | lib_tests += monitor |
---|
877 | monitor_SOURCES = monitor/init.c monitor/system.h |
---|
878 | monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \ |
---|
879 | $(support_includes) |
---|
880 | endif |
---|
881 | |
---|
882 | if TEST_monitor02 |
---|
883 | lib_tests += monitor02 |
---|
884 | lib_screens += monitor02/monitor02.scn |
---|
885 | monitor02_SOURCES = monitor02/init.c monitor02/system.h |
---|
886 | monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \ |
---|
887 | $(support_includes) |
---|
888 | endif |
---|
889 | |
---|
890 | if TEST_mouse01 |
---|
891 | lib_tests += mouse01 |
---|
892 | lib_screens += mouse01/mouse01.scn |
---|
893 | lib_docs += mouse01/mouse01.doc |
---|
894 | mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \ |
---|
895 | mouse01/msmouse.c termios04/termios_testdriver_intr.c |
---|
896 | mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \ |
---|
897 | $(support_includes) -I$(top_srcdir)/termios04 |
---|
898 | endif |
---|
899 | |
---|
900 | if TEST_nanosleep |
---|
901 | lib_tests += nanosleep.norun |
---|
902 | nanosleep_norun_SOURCES = POSIX/nanosleep.c |
---|
903 | nanosleep_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
904 | endif |
---|
905 | |
---|
906 | if NETTESTS |
---|
907 | if TEST_networking01 |
---|
908 | lib_tests += networking01 |
---|
909 | lib_screens += networking01/networking01.scn |
---|
910 | lib_docs += networking01/networking01.doc |
---|
911 | networking01_SOURCES = networking01/init.c |
---|
912 | networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \ |
---|
913 | $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking |
---|
914 | endif |
---|
915 | endif |
---|
916 | |
---|
917 | if TEST_newlib01 |
---|
918 | lib_tests += newlib01 |
---|
919 | lib_screens += newlib01/newlib01.scn |
---|
920 | lib_docs += newlib01/newlib01.doc |
---|
921 | newlib01_SOURCES = newlib01/init.c |
---|
922 | newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \ |
---|
923 | $(support_includes) |
---|
924 | endif |
---|
925 | |
---|
926 | if TEST_open |
---|
927 | lib_tests += open.norun |
---|
928 | open_norun_SOURCES = POSIX/open.c |
---|
929 | open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
930 | endif |
---|
931 | |
---|
932 | if TEST_pipe |
---|
933 | lib_tests += pipe.norun |
---|
934 | pipe_norun_SOURCES = POSIX/pipe.c |
---|
935 | pipe_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
936 | endif |
---|
937 | |
---|
938 | if TEST_posix_memalign |
---|
939 | lib_tests += posix_memalign.norun |
---|
940 | posix_memalign_norun_SOURCES = POSIX/posix_memalign.c |
---|
941 | posix_memalign_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
942 | endif |
---|
943 | |
---|
944 | if TEST_putenvtest |
---|
945 | lib_tests += putenvtest |
---|
946 | lib_screens += putenvtest/putenvtest.scn |
---|
947 | putenvtest_SOURCES = putenvtest/init.c |
---|
948 | putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \ |
---|
949 | $(support_includes) |
---|
950 | endif |
---|
951 | |
---|
952 | if TEST_pwdgrp01 |
---|
953 | lib_tests += pwdgrp01 |
---|
954 | lib_screens += pwdgrp01/pwdgrp01.scn |
---|
955 | lib_docs += pwdgrp01/pwdgrp01.doc |
---|
956 | pwdgrp01_SOURCES = pwdgrp01/init.c |
---|
957 | pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \ |
---|
958 | $(support_includes) |
---|
959 | endif |
---|
960 | |
---|
961 | if TEST_pwdgrp02 |
---|
962 | lib_tests += pwdgrp02 |
---|
963 | lib_screens += pwdgrp02/pwdgrp02.scn |
---|
964 | lib_docs += pwdgrp02/pwdgrp02.doc |
---|
965 | pwdgrp02_SOURCES = pwdgrp02/init.c |
---|
966 | pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \ |
---|
967 | $(support_includes) |
---|
968 | endif |
---|
969 | |
---|
970 | if TEST_rbheap01 |
---|
971 | lib_tests += rbheap01 |
---|
972 | lib_screens += rbheap01/rbheap01.scn |
---|
973 | lib_docs += rbheap01/rbheap01.doc |
---|
974 | rbheap01_SOURCES = rbheap01/init.c |
---|
975 | rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \ |
---|
976 | $(support_includes) |
---|
977 | endif |
---|
978 | |
---|
979 | if TEST_read |
---|
980 | lib_tests += read.norun |
---|
981 | read_norun_SOURCES = POSIX/read.c |
---|
982 | read_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
983 | endif |
---|
984 | |
---|
985 | if TEST_readv |
---|
986 | lib_tests += readv.norun |
---|
987 | readv_norun_SOURCES = POSIX/readv.c |
---|
988 | readv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
989 | endif |
---|
990 | |
---|
991 | if TEST_realloc |
---|
992 | lib_tests += realloc.norun |
---|
993 | realloc_norun_SOURCES = POSIX/realloc.c |
---|
994 | realloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
995 | endif |
---|
996 | |
---|
997 | if TEST_rtmonuse |
---|
998 | lib_tests += rtmonuse |
---|
999 | lib_screens += rtmonuse/rtmonuse.scn |
---|
1000 | rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \ |
---|
1001 | rtmonuse/system.h |
---|
1002 | rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \ |
---|
1003 | $(support_includes) |
---|
1004 | endif |
---|
1005 | |
---|
1006 | if TEST_setjmp |
---|
1007 | lib_tests += setjmp.norun |
---|
1008 | setjmp_norun_SOURCES = POSIX/setjmp.c |
---|
1009 | setjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1010 | endif |
---|
1011 | |
---|
1012 | if TEST_sha |
---|
1013 | lib_tests += sha |
---|
1014 | lib_screens += sha/sha.scn |
---|
1015 | lib_docs += sha/sha.doc |
---|
1016 | sha_SOURCES = sha/init.c |
---|
1017 | sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes) |
---|
1018 | endif |
---|
1019 | |
---|
1020 | if TEST_shell01 |
---|
1021 | lib_tests += shell01 |
---|
1022 | lib_screens += shell01/shell01.scn |
---|
1023 | lib_docs += shell01/shell01.doc |
---|
1024 | shell01_SOURCES = shell01/init.c |
---|
1025 | shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \ |
---|
1026 | $(support_includes) |
---|
1027 | endif |
---|
1028 | |
---|
1029 | if TEST_sigaddset |
---|
1030 | lib_tests += sigaddset.norun |
---|
1031 | sigaddset_norun_SOURCES = POSIX/sigaddset.c |
---|
1032 | sigaddset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1033 | endif |
---|
1034 | |
---|
1035 | if TEST_sigdelset |
---|
1036 | lib_tests += sigdelset.norun |
---|
1037 | sigdelset_norun_SOURCES = POSIX/sigdelset.c |
---|
1038 | sigdelset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1039 | endif |
---|
1040 | |
---|
1041 | if TEST_sigemptyset |
---|
1042 | lib_tests += sigemptyset.norun |
---|
1043 | sigemptyset_norun_SOURCES = POSIX/sigemptyset.c |
---|
1044 | sigemptyset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1045 | endif |
---|
1046 | |
---|
1047 | if TEST_sigfillset |
---|
1048 | lib_tests += sigfillset.norun |
---|
1049 | sigfillset_norun_SOURCES = POSIX/sigfillset.c |
---|
1050 | sigfillset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1051 | endif |
---|
1052 | |
---|
1053 | if TEST_sigismember |
---|
1054 | lib_tests += sigismember.norun |
---|
1055 | sigismember_norun_SOURCES = POSIX/sigismember.c |
---|
1056 | sigismember_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1057 | endif |
---|
1058 | |
---|
1059 | if TEST_sigprocmask |
---|
1060 | lib_tests += sigprocmask.norun |
---|
1061 | sigprocmask_norun_SOURCES = POSIX/sigprocmask.c |
---|
1062 | sigprocmask_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1063 | endif |
---|
1064 | |
---|
1065 | if TEST_sparsedisk01 |
---|
1066 | lib_tests += sparsedisk01 |
---|
1067 | lib_screens += sparsedisk01/sparsedisk01.scn |
---|
1068 | lib_docs += sparsedisk01/sparsedisk01.doc |
---|
1069 | sparsedisk01_SOURCES = sparsedisk01/init.c |
---|
1070 | sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \ |
---|
1071 | $(support_includes) |
---|
1072 | endif |
---|
1073 | |
---|
1074 | if TEST_spi01 |
---|
1075 | lib_tests += spi01 |
---|
1076 | lib_screens += spi01/spi01.scn |
---|
1077 | lib_docs += spi01/spi01.doc |
---|
1078 | spi01_SOURCES = spi01/init.c |
---|
1079 | spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \ |
---|
1080 | $(support_includes) |
---|
1081 | endif |
---|
1082 | |
---|
1083 | if TEST_stackchk |
---|
1084 | lib_tests += stackchk |
---|
1085 | lib_screens += stackchk/stackchk.scn |
---|
1086 | stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \ |
---|
1087 | stackchk/system.h |
---|
1088 | stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \ |
---|
1089 | $(support_includes) |
---|
1090 | endif |
---|
1091 | |
---|
1092 | if TEST_stackchk01 |
---|
1093 | lib_tests += stackchk01 |
---|
1094 | lib_screens += stackchk01/stackchk01.scn |
---|
1095 | lib_docs += stackchk01/stackchk01.doc |
---|
1096 | stackchk01_SOURCES = stackchk01/init.c |
---|
1097 | stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \ |
---|
1098 | $(support_includes) |
---|
1099 | endif |
---|
1100 | |
---|
1101 | if TEST_stat |
---|
1102 | lib_tests += stat.norun |
---|
1103 | stat_norun_SOURCES = POSIX/stat.c |
---|
1104 | stat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1105 | endif |
---|
1106 | |
---|
1107 | if TEST_stringto01 |
---|
1108 | lib_tests += stringto01 |
---|
1109 | lib_screens += stringto01/stringto01.scn |
---|
1110 | lib_docs += stringto01/stringto01.doc |
---|
1111 | stringto01_SOURCES = stringto01/init.c \ |
---|
1112 | stringto01/stringto_test_template.h |
---|
1113 | stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \ |
---|
1114 | $(support_includes) |
---|
1115 | endif |
---|
1116 | |
---|
1117 | if NETTESTS |
---|
1118 | if TEST_syscall01 |
---|
1119 | lib_tests += syscall01 |
---|
1120 | lib_screens += syscall01/syscall01.scn |
---|
1121 | lib_docs += syscall01/syscall01.doc |
---|
1122 | syscall01_SOURCES = syscall01/init.c |
---|
1123 | syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \ |
---|
1124 | $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking |
---|
1125 | endif |
---|
1126 | endif |
---|
1127 | |
---|
1128 | if TARTESTS |
---|
1129 | if TEST_tar01 |
---|
1130 | lib_tests += tar01 |
---|
1131 | lib_screens += tar01/tar01.scn |
---|
1132 | lib_docs += tar01/tar01.doc |
---|
1133 | tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \ |
---|
1134 | tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h |
---|
1135 | if TARTEST_XZ |
---|
1136 | tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h |
---|
1137 | endif |
---|
1138 | tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \ |
---|
1139 | $(support_includes) $(test_includes) -I$(top_srcdir)/include |
---|
1140 | tar01_LDADD = $(RTEMS_ROOT)cpukit/librtemscpu.a $(RTEMS_ROOT)cpukit/libz.a $(LDADD) |
---|
1141 | tar01.tar: Makefile |
---|
1142 | $(AM_V_GEN)rm -rf tar01_fs |
---|
1143 | $(AM_V_GEN)$(MKDIR_P) tar01_fs/home |
---|
1144 | $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an"; \ |
---|
1145 | echo "initial tar image.") > tar01_fs/home/test_file |
---|
1146 | $(AM_V_GEN)(echo "#! joel"; \ |
---|
1147 | echo "ls -las /dev") > tar01_fs/home/test_script |
---|
1148 | $(AM_V_GEN)chmod +x tar01_fs/home/test_script |
---|
1149 | $(AM_V_GEN)(cd tar01_fs; \ |
---|
1150 | $(LN_S) home/test_file symlink; \ |
---|
1151 | $(PAX) -w -f ../tar01.tar home symlink) |
---|
1152 | tar01_tar.c: tar01.tar |
---|
1153 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
1154 | tar01_tar.h: tar01.tar |
---|
1155 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
1156 | tar01-tar.o: tar01-tar.c tar01-tar.h |
---|
1157 | tar01.tar.gz: tar01.tar |
---|
1158 | $(AM_V_GEN)$(GZIP) < $< > $@ |
---|
1159 | tar01_tar_gz.c: tar01.tar.gz |
---|
1160 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
1161 | tar01_tar_gz.h: tar01.tar.gz |
---|
1162 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
1163 | CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \ |
---|
1164 | tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h |
---|
1165 | if TARTEST_XZ |
---|
1166 | tar01.tar.xz: tar01.tar |
---|
1167 | $(AM_V_GEN)$(XZ) < $< > $@ |
---|
1168 | tar01_tar_xz.c: tar01.tar.xz |
---|
1169 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
1170 | tar01_tar_xz.h: tar01.tar.xz |
---|
1171 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
1172 | TAR01_XZ_H = tar01_tar_xz.h |
---|
1173 | CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h |
---|
1174 | endif |
---|
1175 | tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H) |
---|
1176 | endif |
---|
1177 | endif |
---|
1178 | |
---|
1179 | if TARTESTS |
---|
1180 | if TEST_tar02 |
---|
1181 | lib_tests += tar02 |
---|
1182 | lib_screens += tar02/tar02.scn |
---|
1183 | lib_docs += tar02/tar02.doc |
---|
1184 | tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \ |
---|
1185 | tar02_tar.c tar02_tar.h |
---|
1186 | tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \ |
---|
1187 | $(support_includes) $(test_includes) -I$(top_srcdir)/include |
---|
1188 | tar02.tar: Makefile |
---|
1189 | $(AM_V_GEN)rm -rf tar02_fs |
---|
1190 | $(AM_V_GEN)$(MKDIR_P) tar02_fs/home |
---|
1191 | $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an" ; \ |
---|
1192 | echo "initial tar image.") > tar02_fs/home/test_file |
---|
1193 | $(AM_V_GEN)(echo "#! joel" ; \ |
---|
1194 | echo "ls -las /dev") > tar02_fs/home/test_script |
---|
1195 | $(AM_V_GEN)chmod +x tar02_fs/home/test_script |
---|
1196 | $(AM_V_GEN)(cd tar02_fs; \ |
---|
1197 | $(LN_S) home/test_file symlink; \ |
---|
1198 | $(PAX) -w -f ../tar02.tar home symlink) |
---|
1199 | tar02_tar.c: tar02.tar |
---|
1200 | $(AM_V_GEN)$(BIN2C) -C $< $@ |
---|
1201 | tar02_tar.h: tar02.tar |
---|
1202 | $(AM_V_GEN)$(BIN2C) -H $< $@ |
---|
1203 | tar02-tar.o: tar02-tar.c tar02-tar.h |
---|
1204 | tar02/init.c: tar02_tar.h |
---|
1205 | CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h |
---|
1206 | endif |
---|
1207 | endif |
---|
1208 | |
---|
1209 | if TEST_tar03 |
---|
1210 | lib_tests += tar03 |
---|
1211 | lib_screens += tar03/tar03.scn |
---|
1212 | lib_docs += tar03/tar03.doc |
---|
1213 | tar03_SOURCES = tar03/init.c |
---|
1214 | tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \ |
---|
1215 | $(support_includes) |
---|
1216 | endif |
---|
1217 | |
---|
1218 | if NETTESTS |
---|
1219 | if TEST_telnetd01 |
---|
1220 | lib_tests += telnetd01 |
---|
1221 | lib_screens += telnetd01/telnetd01.scn |
---|
1222 | lib_docs += telnetd01/telnetd01.doc |
---|
1223 | telnetd01_SOURCES = telnetd01/init.c |
---|
1224 | telnetd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_telnetd01) \ |
---|
1225 | $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking |
---|
1226 | telnetd01_LDADD = $(RTEMS_ROOT)cpukit/libtelnetd.a $(LDADD) |
---|
1227 | endif |
---|
1228 | endif |
---|
1229 | |
---|
1230 | if TEST_termios |
---|
1231 | lib_tests += termios |
---|
1232 | termios_SOURCES = termios/init.c |
---|
1233 | termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \ |
---|
1234 | $(support_includes) |
---|
1235 | endif |
---|
1236 | |
---|
1237 | if TEST_termios01 |
---|
1238 | lib_tests += termios01 |
---|
1239 | lib_screens += termios01/termios01.scn |
---|
1240 | lib_docs += termios01/termios01.doc |
---|
1241 | termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \ |
---|
1242 | termios01/termios_testdriver.h |
---|
1243 | termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \ |
---|
1244 | $(support_includes) -I$(top_srcdir)/include |
---|
1245 | endif |
---|
1246 | |
---|
1247 | if TEST_termios02 |
---|
1248 | lib_tests += termios02 |
---|
1249 | lib_screens += termios02/termios02.scn |
---|
1250 | lib_docs += termios02/termios02.doc |
---|
1251 | termios02_SOURCES = termios02/init.c |
---|
1252 | termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \ |
---|
1253 | $(support_includes) -I$(top_srcdir)/include |
---|
1254 | endif |
---|
1255 | |
---|
1256 | if TEST_termios03 |
---|
1257 | lib_tests += termios03 |
---|
1258 | lib_screens += termios03/termios03.scn |
---|
1259 | lib_docs += termios03/termios03.doc |
---|
1260 | termios03_SOURCES = termios03/init.c \ |
---|
1261 | termios03/termios_testdriver_polled.c \ |
---|
1262 | termios03/termios_testdriver_polled.h |
---|
1263 | termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \ |
---|
1264 | $(support_includes) |
---|
1265 | endif |
---|
1266 | |
---|
1267 | if TEST_termios04 |
---|
1268 | lib_tests += termios04 |
---|
1269 | lib_screens += termios04/termios04.scn |
---|
1270 | lib_docs += termios04/termios04.doc |
---|
1271 | termios04_SOURCES = termios04/init.c \ |
---|
1272 | termios04/termios_testdriver_intr.c \ |
---|
1273 | termios04/termios_testdriver_intr.h |
---|
1274 | termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \ |
---|
1275 | $(support_includes) |
---|
1276 | endif |
---|
1277 | |
---|
1278 | if TEST_termios05 |
---|
1279 | lib_tests += termios05 |
---|
1280 | lib_screens += termios05/termios05.scn |
---|
1281 | lib_docs += termios05/termios05.doc |
---|
1282 | termios05_SOURCES = termios05/init.c \ |
---|
1283 | termios04/termios_testdriver_intr.c |
---|
1284 | termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \ |
---|
1285 | $(support_includes) -I$(top_srcdir)/termios04 -DTASK_DRIVEN |
---|
1286 | endif |
---|
1287 | |
---|
1288 | if TEST_termios06 |
---|
1289 | lib_tests += termios06 |
---|
1290 | lib_screens += termios06/termios06.scn |
---|
1291 | lib_docs += termios06/termios06.doc |
---|
1292 | termios06_SOURCES = termios06/init.c \ |
---|
1293 | termios03/termios_testdriver_polled.c termios06/test_pppd.c |
---|
1294 | termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \ |
---|
1295 | $(support_includes) -I$(top_srcdir)/termios03 |
---|
1296 | endif |
---|
1297 | |
---|
1298 | if TEST_termios07 |
---|
1299 | lib_tests += termios07 |
---|
1300 | lib_screens += termios07/termios07.scn |
---|
1301 | lib_docs += termios07/termios07.doc |
---|
1302 | termios07_SOURCES = termios07/init.c \ |
---|
1303 | termios04/termios_testdriver_intr.c |
---|
1304 | termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \ |
---|
1305 | $(support_includes) -I$(top_srcdir)/termios04 |
---|
1306 | endif |
---|
1307 | |
---|
1308 | if TEST_termios08 |
---|
1309 | lib_tests += termios08 |
---|
1310 | lib_screens += termios08/termios08.scn |
---|
1311 | lib_docs += termios08/termios08.doc |
---|
1312 | termios08_SOURCES = termios08/init.c \ |
---|
1313 | termios03/termios_testdriver_polled.c |
---|
1314 | termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \ |
---|
1315 | $(support_includes) -I$(top_srcdir)/termios03 |
---|
1316 | endif |
---|
1317 | |
---|
1318 | if TEST_termios09 |
---|
1319 | lib_tests += termios09 |
---|
1320 | lib_screens += termios09/termios09.scn |
---|
1321 | lib_docs += termios09/termios09.doc |
---|
1322 | termios09_SOURCES = termios09/init.c |
---|
1323 | termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \ |
---|
1324 | $(support_includes) |
---|
1325 | endif |
---|
1326 | |
---|
1327 | if TEST_top |
---|
1328 | lib_tests += top |
---|
1329 | lib_screens += top/top.scn |
---|
1330 | top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \ |
---|
1331 | top/system.h |
---|
1332 | top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes) |
---|
1333 | endif |
---|
1334 | |
---|
1335 | if TEST_tztest |
---|
1336 | lib_tests += tztest |
---|
1337 | lib_screens += tztest/tztest.scn |
---|
1338 | lib_docs += tztest/tztest.doc |
---|
1339 | tztest_SOURCES = tztest/init.c |
---|
1340 | tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \ |
---|
1341 | $(support_includes) |
---|
1342 | endif |
---|
1343 | |
---|
1344 | if TEST_uid01 |
---|
1345 | lib_tests += uid01 |
---|
1346 | lib_docs += uid01/uid01.doc |
---|
1347 | uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \ |
---|
1348 | uid01/msmouse.c termios04/termios_testdriver_intr.c |
---|
1349 | uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \ |
---|
1350 | $(support_includes) -I$(top_srcdir)/termios04 |
---|
1351 | endif |
---|
1352 | |
---|
1353 | if TEST_unlink |
---|
1354 | lib_tests += unlink.norun |
---|
1355 | unlink_norun_SOURCES = POSIX/unlink.c |
---|
1356 | unlink_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1357 | endif |
---|
1358 | |
---|
1359 | if TEST_utf8proc01 |
---|
1360 | lib_tests += utf8proc01 |
---|
1361 | lib_screens += utf8proc01/utf8proc01.scn |
---|
1362 | lib_docs += utf8proc01/utf8proc01.doc |
---|
1363 | utf8proc01_SOURCES = utf8proc01/init.c |
---|
1364 | utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \ |
---|
1365 | $(support_includes) |
---|
1366 | endif |
---|
1367 | |
---|
1368 | if TEST_vfork |
---|
1369 | lib_tests += vfork.norun |
---|
1370 | vfork_norun_SOURCES = POSIX/vfork.c |
---|
1371 | vfork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1372 | endif |
---|
1373 | |
---|
1374 | if TEST_wait |
---|
1375 | lib_tests += wait.norun |
---|
1376 | wait_norun_SOURCES = POSIX/wait.c |
---|
1377 | wait_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1378 | endif |
---|
1379 | |
---|
1380 | if TEST_waitpid |
---|
1381 | lib_tests += waitpid.norun |
---|
1382 | waitpid_norun_SOURCES = POSIX/waitpid.c |
---|
1383 | waitpid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1384 | endif |
---|
1385 | |
---|
1386 | if TEST_write |
---|
1387 | lib_tests += write.norun |
---|
1388 | write_norun_SOURCES = POSIX/write.c |
---|
1389 | write_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1390 | endif |
---|
1391 | |
---|
1392 | if TEST_writev |
---|
1393 | lib_tests += writev.norun |
---|
1394 | writev_norun_SOURCES = POSIX/writev.c |
---|
1395 | writev_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD) |
---|
1396 | endif |
---|
1397 | |
---|
1398 | rtems_tests_PROGRAMS = $(lib_tests) |
---|
1399 | dist_rtems_tests_DATA = $(lib_screens) $(lib_docs) |
---|