source: rtems/testsuites/libtests/Makefile.am @ 942d52a

Last change on this file since 942d52a was 942d52a, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 8, 2018 at 12:59:27 PM

build: Fix library order

Update #3551.

  • Property mode set to 100644
File size: 37.9 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
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 "$(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 "$(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
394dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes)
395endif
396endif
397
398if DLTESTS
399if HAS_CXX
400if TEST_dl04
401lib_tests += dl04
402lib_screens += dl04/dl04.scn
403lib_docs += dl04/dl04.doc
404dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \
405        dl04-tar.h
406dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes)
407dl04/init.c: dl04-tar.o
408dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
409        @rm -f dl04.pre
410        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
411dl04-o4.o: dl04/dl-o4.cpp Makefile
412        $(AM_V_GEN)$(CXXCOMPILE) -c -o $@ $<
413dl04.tar: dl04-o4.o
414        @rm -f $@
415        $(AM_V_GEN)$(PAX) -w -f $@ $<
416dl04-tar.c: dl04.tar
417        $(AM_V_GEN)$(BIN2C) -C $< $@
418dl04-tar.h: dl04.tar
419        $(AM_V_GEN)$(BIN2C) -H $< $@
420dl04-tar.o: dl04-tar.c dl04-tar.h
421        $(AM_V_CC)$(COMPILE) -c -o $@ $<
422dl04-sym.o: dl04.pre
423        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
424dl04$(EXEEXT):  $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o
425        @rm -f $@
426        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
427CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h
428endif
429endif
430endif
431
432if DLTESTS
433if HAS_CXX
434if TEST_dl05
435lib_tests += dl05
436lib_screens += dl05/dl05.scn
437lib_docs += dl05/dl05.doc
438dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \
439        dl05-tar.h
440dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes)
441dl05/init.c: dl05-tar.o
442dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
443        @rm -f dl05.pre
444        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
445dl05-o5.o: dl05/dl-o5.cpp
446        $(AM_V_CXX)$(CXXCOMPILE) -c -o $@ $<
447dl05.tar: dl05-o5.o
448        @rm -f $@
449        $(AM_V_GEN)$(PAX) -w -f $@ $<
450dl05-tar.c: dl05.tar
451        $(AM_V_GEN)$(BIN2C) -C $< $@
452dl05-tar.h: dl05.tar
453        $(AM_V_GEN)$(BIN2C) -H $< $@
454dl05-tar.o: dl05-tar.c dl05-tar.h
455        $(AM_V_CC)$(COMPILE) -c -o $@ $<
456dl05-sym.o: dl05.pre
457        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
458dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
459        @rm -f $@
460        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
461CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h
462endif
463endif
464endif
465
466if DLTESTS
467if TEST_dl06
468lib_tests += dl06
469lib_screens += dl06/dl06.scn
470lib_docs += dl06/dl06.doc
471dl06_SOURCES = dl06/init.c dl06/dl-load.c dl06-tar.c dl06-tar.h
472dl06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl06) $(support_includes)
473dl06/init.c: dl06-tar.o
474dl06-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
477dl06-pre-tar.c: dl06-pre.tar
478        $(AM_V_GEN)$(BIN2C) -N dl06_tar -C $< $@
479dl06-pre-tar.h: dl06-pre.tar
480        $(AM_V_GEN)$(BIN2C) -N dl06_tar -H $< $@
481dl06-pre-tar.o: dl06-pre-tar.c dl06-pre-tar.h
482        $(AM_V_CC)$(COMPILE) -c -o $@ $<
483dl06-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
486dl06.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 $@ $+
489dl06-o1.o: dl06/dl06-o1.c Makefile
490        $(AM_V_CC)$(COMPILE) -c -o $@ $<
491dl06-o2.o: dl06/dl06-o2.c Makefile
492        $(AM_V_CC)$(COMPILE) -c -o $@ $<
493dl06.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
497dl06.tar: dl06.rap
498        @rm -f $@
499        $(AM_V_GEN)$(PAX) -w -f $@ $<
500dl06-tar.c: dl06.tar
501        $(AM_V_GEN)$(BIN2C) -C $< $@
502dl06-tar.h: dl06.tar
503        $(AM_V_GEN)$(BIN2C) -H $< $@
504dl06-tar.o: dl06-tar.c dl06-tar.h
505        $(AM_V_CC)$(COMPILE) -c -o $@ $<
506dl06-sym.o: dl06.pre
507        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
508dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o
509        @rm -f $@
510        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
511CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h
512endif
513endif
514
515if TEST_dumpbuf01
516lib_tests += dumpbuf01
517lib_screens += dumpbuf01/dumpbuf01.scn
518lib_docs += dumpbuf01/dumpbuf01.doc
519dumpbuf01_SOURCES = dumpbuf01/init.c
520dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \
521        $(support_includes)
522endif
523
524if TEST_dup2
525lib_tests += dup2.norun
526dup2_norun_SOURCES = POSIX/dup2.c
527dup2_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
528endif
529
530if TEST_exit01
531lib_tests += exit01
532lib_screens += exit01/exit01.scn
533lib_docs += exit01/exit01.doc
534exit01_SOURCES = exit01/init.c
535exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \
536        $(support_includes)
537endif
538
539if TEST_exit02
540lib_tests += exit02
541lib_screens += exit02/exit02.scn
542lib_docs += exit02/exit02.doc
543exit02_SOURCES = exit02/init.c
544exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \
545        $(support_includes)
546endif
547
548if TEST_fcntl
549lib_tests += fcntl.norun
550fcntl_norun_SOURCES = POSIX/fcntl.c
551fcntl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
552endif
553
554if TEST_flashdisk01
555lib_tests += flashdisk01
556lib_screens += flashdisk01/flashdisk01.scn
557lib_docs += flashdisk01/flashdisk01.doc
558flashdisk01_SOURCES = flashdisk01/init.c \
559        flashdisk01/test-file-system.c
560flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \
561        $(support_includes)
562endif
563
564if TEST_flockfile
565lib_tests += flockfile.norun
566flockfile_norun_SOURCES = POSIX/flockfile.c
567flockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
568endif
569
570if TEST_fork
571lib_tests += fork.norun
572fork_norun_SOURCES = POSIX/fork.c
573fork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
574endif
575
576if TEST_free
577lib_tests += free.norun
578free_norun_SOURCES = POSIX/free.c
579free_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
580endif
581
582if TEST_fstat
583lib_tests += fstat.norun
584fstat_norun_SOURCES = POSIX/fstat.c
585fstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
586endif
587
588if NETTESTS
589if TEST_ftp01
590lib_tests += ftp01
591lib_screens += ftp01/ftp01.scn
592lib_docs += ftp01/ftp01.doc
593ftp01_SOURCES = ftp01/init.c
594ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \
595        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
596ftp01_LDADD = $(RTEMS_ROOT)cpukit/libftpd.a $(RTEMS_ROOT)cpukit/libftpfs.a $(LDADD)
597endif
598endif
599
600if TEST_ftrylockfile
601lib_tests += ftrylockfile.norun
602ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c
603ftrylockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
604endif
605
606if TEST_funlockfile
607lib_tests += funlockfile.norun
608funlockfile_norun_SOURCES = POSIX/funlockfile.c
609funlockfile_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
610endif
611
612if TEST_getentropy01
613lib_tests += getentropy01
614lib_screens += getentropy01/getentropy01.scn
615lib_docs += getentropy01/getentropy01.doc
616getentropy01_SOURCES = getentropy01/init.c
617getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \
618        $(support_includes)
619endif
620
621if TEST_getlogin
622lib_tests += getlogin.norun
623getlogin_norun_SOURCES = POSIX/getlogin.c
624getlogin_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
625endif
626
627if TEST_getpwnam
628lib_tests += getpwnam.norun
629getpwnam_norun_SOURCES = POSIX/getpwnam.c
630getpwnam_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
631endif
632
633if TEST_getpwuid
634lib_tests += getpwuid.norun
635getpwuid_norun_SOURCES = POSIX/getpwuid.c
636getpwuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
637endif
638
639if TEST_gettimeofday
640lib_tests += gettimeofday.norun
641gettimeofday_norun_SOURCES = POSIX/gettimeofday.c
642gettimeofday_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
643endif
644
645if TEST_getuid
646lib_tests += getuid.norun
647getuid_norun_SOURCES = POSIX/getuid.c
648getuid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
649endif
650
651if TEST_gxx01
652lib_tests += gxx01
653lib_screens += gxx01/gxx01.scn
654lib_docs += gxx01/gxx01.doc
655gxx01_SOURCES = gxx01/init.c
656gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \
657        $(support_includes)
658endif
659
660if TEST_heapwalk
661lib_tests += heapwalk
662lib_screens += heapwalk/heapwalk.scn
663heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h
664heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \
665        $(support_includes)
666endif
667
668if TEST_htonl
669lib_tests += htonl.norun
670htonl_norun_SOURCES = POSIX/htonl.c
671htonl_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
672endif
673
674if TEST_i2c01
675lib_tests += i2c01
676lib_screens += i2c01/i2c01.scn
677lib_docs += i2c01/i2c01.doc
678i2c01_SOURCES = i2c01/init.c
679i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \
680        $(support_includes)
681endif
682
683if TEST_iconv
684lib_tests += iconv.norun
685iconv_norun_SOURCES = POSIX/iconv.c
686iconv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
687endif
688
689if TEST_iconv_close
690lib_tests += iconv_close.norun
691iconv_close_norun_SOURCES = POSIX/iconv_close.c
692iconv_close_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
693endif
694
695if TEST_iconv_open
696lib_tests += iconv_open.norun
697iconv_open_norun_SOURCES = POSIX/iconv_open.c
698iconv_open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
699endif
700
701if TEST_kill
702lib_tests += kill.norun
703kill_norun_SOURCES = POSIX/kill.c
704kill_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
705endif
706
707if TEST_libfdt01
708lib_tests += libfdt01
709lib_screens += libfdt01/libfdt01.scn
710lib_docs += libfdt01/libfdt01.doc
711libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c
712libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \
713        $(support_includes)
714endif
715
716if TEST_longjmp
717lib_tests += longjmp.norun
718longjmp_norun_SOURCES = POSIX/longjmp.c
719longjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
720endif
721
722if TEST_lseek
723lib_tests += lseek.norun
724lseek_norun_SOURCES = POSIX/lseek.c
725lseek_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
726endif
727
728if TEST_lstat
729lib_tests += lstat.norun
730lstat_norun_SOURCES = POSIX/lstat.c
731lstat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
732endif
733
734if TEST_malloc
735lib_tests += malloc.norun
736malloc_norun_SOURCES = POSIX/malloc.c
737malloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
738endif
739
740if TEST_malloc02
741lib_tests += malloc02
742lib_screens += malloc02/malloc02.scn
743lib_docs += malloc02/malloc02.doc
744malloc02_SOURCES = malloc02/init.c
745malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \
746        $(support_includes)
747endif
748
749if TEST_malloc03
750lib_tests += malloc03
751lib_screens += malloc03/malloc03.scn
752lib_docs += malloc03/malloc03.doc
753malloc03_SOURCES = malloc03/init.c
754malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \
755        $(support_includes)
756endif
757
758if TEST_malloc04
759lib_tests += malloc04
760lib_screens += malloc04/malloc04.scn
761lib_docs += malloc04/malloc04.doc
762malloc04_SOURCES = malloc04/init.c
763malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \
764        $(support_includes)
765endif
766
767if TEST_malloctest
768lib_tests += malloctest
769lib_screens += malloctest/malloctest.scn
770malloctest_SOURCES = malloctest/init.c malloctest/task1.c \
771        malloctest/system.h
772malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \
773        $(support_includes)
774endif
775
776if TEST_math
777lib_tests += math
778lib_screens += math/math.scn
779math_SOURCES = math/init.c math/domath.c
780math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \
781        -I$(top_srcdir)/math
782math_LDADD = -lm
783endif
784
785if TEST_mathf
786lib_tests += mathf
787lib_screens += mathf/mathf.scn
788mathf_SOURCES = mathf/init.c mathf/domathf.c
789mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \
790        $(support_includes) -I$(top_srcdir)/math
791mathf_LDADD = -lm
792endif
793
794if TEST_mathl
795lib_tests += mathl
796lib_screens += mathl/mathl.scn
797mathl_SOURCES = mathl/init.c mathl/domathl.c
798mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \
799        $(support_includes) -I$(top_srcdir)/math \
800        -DNO_LONG_DOUBLE
801mathl_LDADD = -lm
802endif
803
804if TEST_md501
805lib_tests += md501
806lib_screens += md501/md501.scn
807lib_docs += md501/md501.doc
808md501_SOURCES = md501/init.c
809md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \
810        $(support_includes)
811endif
812
813if NETTESTS
814if HAS_POSIX
815if TEST_mghttpd01
816lib_tests += mghttpd01
817lib_screens += mghttpd01/mghttpd01.scn
818lib_docs += mghttpd01/mghttpd01.doc
819mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \
820        mghttpd01_tar.h mghttpd01/test-http-client.c \
821        mghttpd01/test-http-client.h
822mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \
823        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
824mghttpd01_LDADD = $(RTEMS_ROOT)cpukit/libmghttpd.a $(LDADD)
825mghttpd01_tar.c: mghttpd01/mghttpd01.tar
826        $(AM_V_GEN)$(BIN2C) -C $< $@
827mghttpd01_tar.h: mghttpd01/mghttpd01.tar
828        $(AM_V_GEN)$(BIN2C) -H $< $@
829mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h
830mghttpd01/init.c: mghttpd01_tar.h
831CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h
832endif
833endif
834endif
835
836if TEST_monitor
837lib_tests += monitor
838monitor_SOURCES = monitor/init.c monitor/system.h
839monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \
840        $(support_includes)
841endif
842
843if TEST_monitor02
844lib_tests += monitor02
845lib_screens += monitor02/monitor02.scn
846monitor02_SOURCES = monitor02/init.c monitor02/system.h
847monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \
848        $(support_includes)
849endif
850
851if TEST_mouse01
852lib_tests += mouse01
853lib_screens += mouse01/mouse01.scn
854lib_docs += mouse01/mouse01.doc
855mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \
856        mouse01/msmouse.c termios04/termios_testdriver_intr.c
857mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \
858        $(support_includes) -I$(top_srcdir)/termios04
859endif
860
861if TEST_nanosleep
862lib_tests += nanosleep.norun
863nanosleep_norun_SOURCES = POSIX/nanosleep.c
864nanosleep_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
865endif
866
867if NETTESTS
868if TEST_networking01
869lib_tests += networking01
870lib_screens += networking01/networking01.scn
871lib_docs += networking01/networking01.doc
872networking01_SOURCES = networking01/init.c
873networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \
874        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
875endif
876endif
877
878if TEST_newlib01
879lib_tests += newlib01
880lib_screens += newlib01/newlib01.scn
881lib_docs += newlib01/newlib01.doc
882newlib01_SOURCES = newlib01/init.c
883newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \
884        $(support_includes)
885endif
886
887if TEST_open
888lib_tests += open.norun
889open_norun_SOURCES = POSIX/open.c
890open_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
891endif
892
893if TEST_pipe
894lib_tests += pipe.norun
895pipe_norun_SOURCES = POSIX/pipe.c
896pipe_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
897endif
898
899if TEST_posix_memalign
900lib_tests += posix_memalign.norun
901posix_memalign_norun_SOURCES = POSIX/posix_memalign.c
902posix_memalign_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
903endif
904
905if TEST_putenvtest
906lib_tests += putenvtest
907lib_screens += putenvtest/putenvtest.scn
908putenvtest_SOURCES = putenvtest/init.c
909putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \
910        $(support_includes)
911endif
912
913if TEST_pwdgrp01
914lib_tests += pwdgrp01
915lib_screens += pwdgrp01/pwdgrp01.scn
916lib_docs += pwdgrp01/pwdgrp01.doc
917pwdgrp01_SOURCES = pwdgrp01/init.c
918pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \
919        $(support_includes)
920endif
921
922if TEST_pwdgrp02
923lib_tests += pwdgrp02
924lib_screens += pwdgrp02/pwdgrp02.scn
925lib_docs += pwdgrp02/pwdgrp02.doc
926pwdgrp02_SOURCES = pwdgrp02/init.c
927pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \
928        $(support_includes)
929endif
930
931if TEST_rbheap01
932lib_tests += rbheap01
933lib_screens += rbheap01/rbheap01.scn
934lib_docs += rbheap01/rbheap01.doc
935rbheap01_SOURCES = rbheap01/init.c
936rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \
937        $(support_includes)
938endif
939
940if TEST_read
941lib_tests += read.norun
942read_norun_SOURCES = POSIX/read.c
943read_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
944endif
945
946if TEST_readv
947lib_tests += readv.norun
948readv_norun_SOURCES = POSIX/readv.c
949readv_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
950endif
951
952if TEST_realloc
953lib_tests += realloc.norun
954realloc_norun_SOURCES = POSIX/realloc.c
955realloc_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
956endif
957
958if TEST_rtmonuse
959lib_tests += rtmonuse
960lib_screens += rtmonuse/rtmonuse.scn
961rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \
962        rtmonuse/system.h
963rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \
964        $(support_includes)
965endif
966
967if TEST_setjmp
968lib_tests += setjmp.norun
969setjmp_norun_SOURCES = POSIX/setjmp.c
970setjmp_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
971endif
972
973if TEST_sha
974lib_tests += sha
975lib_screens += sha/sha.scn
976lib_docs += sha/sha.doc
977sha_SOURCES = sha/init.c
978sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes)
979endif
980
981if TEST_shell01
982lib_tests += shell01
983lib_screens += shell01/shell01.scn
984lib_docs += shell01/shell01.doc
985shell01_SOURCES = shell01/init.c
986shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \
987        $(support_includes)
988endif
989
990if TEST_sigaddset
991lib_tests += sigaddset.norun
992sigaddset_norun_SOURCES = POSIX/sigaddset.c
993sigaddset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
994endif
995
996if TEST_sigdelset
997lib_tests += sigdelset.norun
998sigdelset_norun_SOURCES = POSIX/sigdelset.c
999sigdelset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1000endif
1001
1002if TEST_sigemptyset
1003lib_tests += sigemptyset.norun
1004sigemptyset_norun_SOURCES = POSIX/sigemptyset.c
1005sigemptyset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1006endif
1007
1008if TEST_sigfillset
1009lib_tests += sigfillset.norun
1010sigfillset_norun_SOURCES = POSIX/sigfillset.c
1011sigfillset_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1012endif
1013
1014if TEST_sigismember
1015lib_tests += sigismember.norun
1016sigismember_norun_SOURCES = POSIX/sigismember.c
1017sigismember_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1018endif
1019
1020if TEST_sigprocmask
1021lib_tests += sigprocmask.norun
1022sigprocmask_norun_SOURCES = POSIX/sigprocmask.c
1023sigprocmask_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1024endif
1025
1026if TEST_sparsedisk01
1027lib_tests += sparsedisk01
1028lib_screens += sparsedisk01/sparsedisk01.scn
1029lib_docs += sparsedisk01/sparsedisk01.doc
1030sparsedisk01_SOURCES = sparsedisk01/init.c
1031sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \
1032        $(support_includes)
1033endif
1034
1035if TEST_spi01
1036lib_tests += spi01
1037lib_screens += spi01/spi01.scn
1038lib_docs += spi01/spi01.doc
1039spi01_SOURCES = spi01/init.c
1040spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \
1041        $(support_includes)
1042endif
1043
1044if TEST_stackchk
1045lib_tests += stackchk
1046lib_screens += stackchk/stackchk.scn
1047stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \
1048        stackchk/system.h
1049stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \
1050        $(support_includes)
1051endif
1052
1053if TEST_stackchk01
1054lib_tests += stackchk01
1055lib_screens += stackchk01/stackchk01.scn
1056lib_docs += stackchk01/stackchk01.doc
1057stackchk01_SOURCES = stackchk01/init.c
1058stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \
1059        $(support_includes)
1060endif
1061
1062if TEST_stat
1063lib_tests += stat.norun
1064stat_norun_SOURCES = POSIX/stat.c
1065stat_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1066endif
1067
1068if TEST_stringto01
1069lib_tests += stringto01
1070lib_screens += stringto01/stringto01.scn
1071lib_docs += stringto01/stringto01.doc
1072stringto01_SOURCES = stringto01/init.c \
1073        stringto01/stringto_test_template.h
1074stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \
1075        $(support_includes)
1076endif
1077
1078if NETTESTS
1079if TEST_syscall01
1080lib_tests += syscall01
1081lib_screens += syscall01/syscall01.scn
1082lib_docs += syscall01/syscall01.doc
1083syscall01_SOURCES = syscall01/init.c
1084syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \
1085        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
1086endif
1087endif
1088
1089if TARTESTS
1090if TEST_tar01
1091lib_tests += tar01
1092lib_screens += tar01/tar01.scn
1093lib_docs += tar01/tar01.doc
1094tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \
1095        tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h
1096if TARTEST_XZ
1097tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h
1098endif
1099tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \
1100        $(support_includes) $(test_includes) -I$(top_srcdir)/include
1101tar01_LDADD = $(RTEMS_ROOT)cpukit/librtemscpu.a $(RTEMS_ROOT)cpukit/libz.a $(LDADD)
1102tar01.tar: Makefile
1103        $(AM_V_GEN)rm -rf tar01_fs
1104        $(AM_V_GEN)$(MKDIR_P) tar01_fs/home
1105        $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an"; \
1106         echo "initial tar image.") > tar01_fs/home/test_file
1107        $(AM_V_GEN)(echo "#! joel"; \
1108         echo "ls -las /dev") > tar01_fs/home/test_script
1109        $(AM_V_GEN)chmod +x tar01_fs/home/test_script
1110        $(AM_V_GEN)(cd tar01_fs; \
1111         $(LN_S) home/test_file symlink; \
1112         $(PAX) -w -f ../tar01.tar home symlink)
1113tar01_tar.c: tar01.tar
1114        $(AM_V_GEN)$(BIN2C) -C $< $@
1115tar01_tar.h: tar01.tar
1116        $(AM_V_GEN)$(BIN2C) -H $< $@
1117tar01-tar.o: tar01-tar.c tar01-tar.h
1118tar01.tar.gz: tar01.tar
1119        $(AM_V_GEN)$(GZIP) < $< > $@
1120tar01_tar_gz.c: tar01.tar.gz
1121        $(AM_V_GEN)$(BIN2C) -C $< $@
1122tar01_tar_gz.h: tar01.tar.gz
1123        $(AM_V_GEN)$(BIN2C) -H $< $@
1124CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \
1125        tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h
1126if TARTEST_XZ
1127tar01.tar.xz: tar01.tar
1128        $(AM_V_GEN)$(XZ) < $< > $@
1129tar01_tar_xz.c: tar01.tar.xz
1130        $(AM_V_GEN)$(BIN2C) -C $< $@
1131tar01_tar_xz.h: tar01.tar.xz
1132        $(AM_V_GEN)$(BIN2C) -H $< $@
1133TAR01_XZ_H = tar01_tar_xz.h
1134CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h
1135endif
1136tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H)
1137endif
1138endif
1139
1140if TARTESTS
1141if TEST_tar02
1142lib_tests += tar02
1143lib_screens += tar02/tar02.scn
1144lib_docs += tar02/tar02.doc
1145tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \
1146        tar02_tar.c tar02_tar.h
1147tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \
1148        $(support_includes) $(test_includes) -I$(top_srcdir)/include
1149tar02.tar: Makefile
1150        $(AM_V_GEN)rm -rf tar02_fs
1151        $(AM_V_GEN)$(MKDIR_P) tar02_fs/home
1152        $(AM_V_GEN)(echo "This is a test of loading an RTEMS filesystem from an" ; \
1153         echo "initial tar image.") > tar02_fs/home/test_file
1154        $(AM_V_GEN)(echo "#! joel" ; \
1155         echo "ls -las /dev") > tar02_fs/home/test_script
1156        $(AM_V_GEN)chmod +x tar02_fs/home/test_script
1157        $(AM_V_GEN)(cd tar02_fs; \
1158         $(LN_S) home/test_file symlink; \
1159         $(PAX) -w -f ../tar02.tar home symlink)
1160tar02_tar.c: tar02.tar
1161        $(AM_V_GEN)$(BIN2C) -C $< $@
1162tar02_tar.h: tar02.tar
1163        $(AM_V_GEN)$(BIN2C) -H $< $@
1164tar02-tar.o: tar02-tar.c tar02-tar.h
1165tar02/init.c: tar02_tar.h
1166CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h
1167endif
1168endif
1169
1170if TEST_tar03
1171lib_tests += tar03
1172lib_screens += tar03/tar03.scn
1173lib_docs += tar03/tar03.doc
1174tar03_SOURCES = tar03/init.c
1175tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \
1176        $(support_includes)
1177endif
1178
1179if NETTESTS
1180if TEST_telnetd01
1181lib_tests += telnetd01
1182lib_screens += telnetd01/telnetd01.scn
1183lib_docs += telnetd01/telnetd01.doc
1184telnetd01_SOURCES = telnetd01/init.c
1185telnetd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_telnetd01) \
1186        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
1187telnetd01_LDADD = $(RTEMS_ROOT)cpukit/libtelnetd.a $(LDADD)
1188endif
1189endif
1190
1191if TEST_termios
1192lib_tests += termios
1193termios_SOURCES = termios/init.c
1194termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \
1195        $(support_includes)
1196endif
1197
1198if TEST_termios01
1199lib_tests += termios01
1200lib_screens += termios01/termios01.scn
1201lib_docs += termios01/termios01.doc
1202termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \
1203        termios01/termios_testdriver.h
1204termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \
1205        $(support_includes) -I$(top_srcdir)/include
1206endif
1207
1208if TEST_termios02
1209lib_tests += termios02
1210lib_screens += termios02/termios02.scn
1211lib_docs += termios02/termios02.doc
1212termios02_SOURCES = termios02/init.c
1213termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \
1214        $(support_includes) -I$(top_srcdir)/include
1215endif
1216
1217if TEST_termios03
1218lib_tests += termios03
1219lib_screens += termios03/termios03.scn
1220lib_docs += termios03/termios03.doc
1221termios03_SOURCES = termios03/init.c \
1222        termios03/termios_testdriver_polled.c \
1223        termios03/termios_testdriver_polled.h
1224termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \
1225        $(support_includes)
1226endif
1227
1228if TEST_termios04
1229lib_tests += termios04
1230lib_screens += termios04/termios04.scn
1231lib_docs += termios04/termios04.doc
1232termios04_SOURCES = termios04/init.c \
1233        termios04/termios_testdriver_intr.c \
1234        termios04/termios_testdriver_intr.h
1235termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \
1236        $(support_includes)
1237endif
1238
1239if TEST_termios05
1240lib_tests += termios05
1241lib_screens += termios05/termios05.scn
1242lib_docs += termios05/termios05.doc
1243termios05_SOURCES = termios05/init.c \
1244        termios04/termios_testdriver_intr.c
1245termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \
1246        $(support_includes) -I$(top_srcdir)/termios04 -DTASK_DRIVEN
1247endif
1248
1249if TEST_termios06
1250lib_tests += termios06
1251lib_screens += termios06/termios06.scn
1252lib_docs += termios06/termios06.doc
1253termios06_SOURCES = termios06/init.c \
1254        termios03/termios_testdriver_polled.c termios06/test_pppd.c
1255termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \
1256        $(support_includes) -I$(top_srcdir)/termios03
1257endif
1258
1259if TEST_termios07
1260lib_tests += termios07
1261lib_screens += termios07/termios07.scn
1262lib_docs += termios07/termios07.doc
1263termios07_SOURCES = termios07/init.c \
1264        termios04/termios_testdriver_intr.c
1265termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \
1266        $(support_includes) -I$(top_srcdir)/termios04
1267endif
1268
1269if TEST_termios08
1270lib_tests += termios08
1271lib_screens += termios08/termios08.scn
1272lib_docs += termios08/termios08.doc
1273termios08_SOURCES = termios08/init.c \
1274        termios03/termios_testdriver_polled.c
1275termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \
1276        $(support_includes) -I$(top_srcdir)/termios03
1277endif
1278
1279if TEST_termios09
1280lib_tests += termios09
1281lib_screens += termios09/termios09.scn
1282lib_docs += termios09/termios09.doc
1283termios09_SOURCES = termios09/init.c
1284termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \
1285        $(support_includes)
1286endif
1287
1288if TEST_top
1289lib_tests += top
1290lib_screens += top/top.scn
1291top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \
1292        top/system.h
1293top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes)
1294endif
1295
1296if TEST_tztest
1297lib_tests += tztest
1298lib_screens += tztest/tztest.scn
1299lib_docs += tztest/tztest.doc
1300tztest_SOURCES = tztest/init.c
1301tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \
1302        $(support_includes)
1303endif
1304
1305if TEST_uid01
1306lib_tests += uid01
1307lib_docs += uid01/uid01.doc
1308uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \
1309        uid01/msmouse.c termios04/termios_testdriver_intr.c
1310uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \
1311        $(support_includes) -I$(top_srcdir)/termios04
1312endif
1313
1314if TEST_unlink
1315lib_tests += unlink.norun
1316unlink_norun_SOURCES = POSIX/unlink.c
1317unlink_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1318endif
1319
1320if TEST_utf8proc01
1321lib_tests += utf8proc01
1322lib_screens += utf8proc01/utf8proc01.scn
1323lib_docs += utf8proc01/utf8proc01.doc
1324utf8proc01_SOURCES = utf8proc01/init.c
1325utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \
1326        $(support_includes)
1327endif
1328
1329if TEST_vfork
1330lib_tests += vfork.norun
1331vfork_norun_SOURCES = POSIX/vfork.c
1332vfork_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1333endif
1334
1335if TEST_wait
1336lib_tests += wait.norun
1337wait_norun_SOURCES = POSIX/wait.c
1338wait_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1339endif
1340
1341if TEST_waitpid
1342lib_tests += waitpid.norun
1343waitpid_norun_SOURCES = POSIX/waitpid.c
1344waitpid_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1345endif
1346
1347if TEST_write
1348lib_tests += write.norun
1349write_norun_SOURCES = POSIX/write.c
1350write_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1351endif
1352
1353if TEST_writev
1354lib_tests += writev.norun
1355writev_norun_SOURCES = POSIX/writev.c
1356writev_norun_LDADD = $(RTEMS_ROOT)cpukit/librtemsdefaultconfig.a $(LDADD)
1357endif
1358
1359rtems_tests_PROGRAMS = $(lib_tests)
1360dist_rtems_tests_DATA = $(lib_screens) $(lib_docs)
1361
Note: See TracBrowser for help on using the repository browser.