source: rtems/testsuites/libtests/Makefile.am

Last change on this file was cbfc3415, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 14, 2019 at 7:20:54 AM

ttest01: New test

This is an example test using the RTEMS Test Framework. It tests also
the framework itself.

Add T_FILE_NAME command line define to get rid of the full file path.
This is important to reduce the read-only data of test files and make
them build system independent.

Update #3199.

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