Changeset 5c65b98 in rtems for testsuites


Ignore:
Timestamp:
Apr 9, 2018, 3:39:19 AM (20 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
8967e5f
Parents:
32f2629b
git-author:
Chris Johns <chrisj@…> (04/09/18 03:39:19)
git-committer:
Chris Johns <chrisj@…> (04/09/18 22:24:54)
Message:

testsuite/libtests: Merged nested Makefile.am files into one Makefile.am

This change is part of the testsuite Makefile.am reorganization.

Update #3382

Location:
testsuites/libtests
Files:
90 deleted
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/Makefile.am

    r32f2629b r5c65b98  
     1#
     2# Library Testsuite
     3#
     4
    15ACLOCAL_AMFLAGS = -I ../aclocal
    26
    3 _SUBDIRS  =
    4 _SUBDIRS += POSIX
    5 _SUBDIRS += block01
    6 _SUBDIRS += block02
    7 _SUBDIRS += block03
    8 _SUBDIRS += block04
    9 _SUBDIRS += block05
    10 _SUBDIRS += block06
    11 _SUBDIRS += block07
    12 _SUBDIRS += block08
    13 _SUBDIRS += block09
    14 _SUBDIRS += block10
    15 _SUBDIRS += block11
    16 _SUBDIRS += block12
    17 _SUBDIRS += block13
    18 _SUBDIRS += block14
    19 _SUBDIRS += block15
    20 _SUBDIRS += block16
    21 _SUBDIRS += block17
    22 _SUBDIRS += bspcmdline01
    23 _SUBDIRS += capture01
    24 _SUBDIRS += complex
    25 _SUBDIRS += cpuuse
    26 _SUBDIRS += crypt01
    27 _SUBDIRS += defaultconfig01
    28 _SUBDIRS += devfs01
    29 _SUBDIRS += devfs02
    30 _SUBDIRS += devfs03
    31 _SUBDIRS += devfs04
    32 _SUBDIRS += deviceio01
    33 _SUBDIRS += devnullfatal01
    34 _SUBDIRS += dumpbuf01
    35 _SUBDIRS += exit01
    36 _SUBDIRS += exit02
    37 _SUBDIRS += flashdisk01
    38 _SUBDIRS += gxx01
    39 _SUBDIRS += heapwalk
    40 _SUBDIRS += i2c01
    41 _SUBDIRS += libfdt01
    42 _SUBDIRS += malloc02
    43 _SUBDIRS += malloc03
    44 _SUBDIRS += malloc04
    45 _SUBDIRS += malloctest
    46 _SUBDIRS += math
    47 _SUBDIRS += mathf
    48 _SUBDIRS += mathl
    49 _SUBDIRS += md501
    50 _SUBDIRS += monitor
    51 _SUBDIRS += monitor02
    52 _SUBDIRS += mouse01
    53 _SUBDIRS += newlib01
    54 _SUBDIRS += putenvtest
    55 _SUBDIRS += pwdgrp01
    56 _SUBDIRS += pwdgrp02
    57 _SUBDIRS += getentropy01
    58 _SUBDIRS += rbheap01
    59 _SUBDIRS += rtmonuse
    60 _SUBDIRS += sha
    61 _SUBDIRS += shell01
    62 _SUBDIRS += sparsedisk01
    63 _SUBDIRS += spi01
    64 _SUBDIRS += stackchk
    65 _SUBDIRS += stackchk01
    66 _SUBDIRS += stringto01
    67 _SUBDIRS += tar01
    68 _SUBDIRS += tar02
    69 _SUBDIRS += tar03
    70 _SUBDIRS += termios
    71 _SUBDIRS += termios01
    72 _SUBDIRS += termios02
    73 _SUBDIRS += termios03
    74 _SUBDIRS += termios04
    75 _SUBDIRS += termios05
    76 _SUBDIRS += termios06
    77 _SUBDIRS += termios07
    78 _SUBDIRS += termios08
    79 _SUBDIRS += termios09
    80 _SUBDIRS += top
    81 _SUBDIRS += tztest
    82 _SUBDIRS += uid01
    83 _SUBDIRS += utf8proc01
     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
     191endif
     192
     193if TEST_capture01
     194lib_tests += capture01
     195lib_screens += capture01/capture01.scn
     196lib_docs += capture01/capture01.doc
     197capture01_SOURCES = capture01/init.c capture01/test1.c \
     198        capture01/system.h
     199capture01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_capture01) \
     200        $(support_includes)
     201endif
     202
     203if TEST_clock_gettime
     204lib_tests += clock_gettime.norun
     205clock_gettime_norun_SOURCES = POSIX/clock_gettime.c
     206endif
     207
     208if TEST_close
     209lib_tests += close.norun
     210close_norun_SOURCES = POSIX/close.c
     211endif
     212
     213if TEST_complex
     214lib_tests += complex
     215lib_screens += complex/complex.scn
     216complex_SOURCES = complex/init.c complex/docomplex.c \
     217        complex/docomplexf.c complex/docomplexl.c
     218complex_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_complex) \
     219        $(support_includes) -DNO_LONG_DOUBLE
     220complex_LDADD = -lm
     221endif
     222
     223if TEST_cpuuse
     224lib_tests += cpuuse
     225lib_screens += cpuuse/cpuuse.scn
     226cpuuse_SOURCES = cpuuse/init.c cpuuse/task1.c cpuuse/task2.c \
     227        cpuuse/task3.c cpuuse/tswitch.c cpuuse/system.h
     228cpuuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_cpuuse) \
     229        $(support_includes)
     230endif
     231
     232if TEST_crypt01
     233lib_tests += crypt01
     234lib_screens += crypt01/crypt01.scn
     235lib_docs += crypt01/crypt01.doc
     236crypt01_SOURCES = crypt01/init.c
     237crypt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_crypt01) \
     238        $(support_includes)
     239endif
     240
     241if DEBUGGERTESTS
     242if TEST_debugger01
     243lib_tests += debugger01
     244lib_screens += debugger01/debugger01.scn
     245debugger01_SOURCES = debugger01/init.c debugger01/remote.c \
     246        debugger01/system.h
     247debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \
     248        $(support_includes)
     249endif
     250endif
     251
     252if TEST_defaultconfig01
     253lib_tests += defaultconfig01
     254lib_screens += defaultconfig01/defaultconfig01.scn
     255lib_docs += defaultconfig01/defaultconfig01.doc
     256defaultconfig01_SOURCES = defaultconfig01/init.c
     257defaultconfig01_CPPFLAGS = $(AM_CPPFLAGS) \
     258        $(TEST_FLAGS_defaultconfig01) $(support_includes)
     259endif
     260
     261if TEST_devfs01
     262lib_tests += devfs01
     263lib_screens += devfs01/devfs01.scn
     264lib_docs += devfs01/devfs01.doc
     265devfs01_SOURCES = devfs01/init.c
     266devfs01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs01) \
     267        $(support_includes)
     268endif
     269
     270if TEST_devfs02
     271lib_tests += devfs02
     272lib_screens += devfs02/devfs02.scn
     273lib_docs += devfs02/devfs02.doc
     274devfs02_SOURCES = devfs02/init.c
     275devfs02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs02) \
     276        $(support_includes)
     277endif
     278
     279if TEST_devfs03
     280lib_tests += devfs03
     281lib_screens += devfs03/devfs03.scn
     282lib_docs += devfs03/devfs03.doc
     283devfs03_SOURCES = devfs03/init.c
     284devfs03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs03) \
     285        $(support_includes)
     286endif
     287
     288if TEST_devfs04
     289lib_tests += devfs04
     290lib_screens += devfs04/devfs04.scn
     291lib_docs += devfs04/devfs04.doc
     292devfs04_SOURCES = devfs04/init.c devfs04/test_driver.c \
     293        devfs04/test_driver.h
     294devfs04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devfs04) \
     295        $(support_includes)
     296endif
     297
     298if TEST_deviceio01
     299lib_tests += deviceio01
     300lib_screens += deviceio01/deviceio01.scn
     301lib_docs += deviceio01/deviceio01.doc
     302deviceio01_SOURCES = deviceio01/init.c deviceio01/test_driver.c \
     303        deviceio01/test_driver.h
     304deviceio01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_deviceio01) \
     305        $(support_includes)
     306endif
     307
     308if TEST_devnullfatal01
     309lib_tests += devnullfatal01
     310lib_screens += devnullfatal01/devnullfatal01.scn
     311lib_docs += devnullfatal01/devnullfatal01.doc
     312devnullfatal01_SOURCES = ../sptests/spfatal_support/init.c \
     313        ../sptests/spfatal_support/system.h devnullfatal01/testcase.h
     314devnullfatal01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_devnullfatal01) \
     315        $(support_includes) -I$(top_srcdir)/../../sptests/spfatal_support \
     316        -I$(top_srcdir)/devnullfatal01
     317endif
     318
     319if DLTESTS
     320if TEST_dl01
     321lib_tests += dl01
     322lib_screens += dl01/dl01.scn
     323lib_docs += dl01/dl01.doc
     324dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h
     325dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes)
     326dl01-o1.o: dl01/dl-o1.c
     327        $(COMPILE) -c -o $@ $<
     328dl01.tar: dl01-o1.o
     329        @rm -f $@
     330        $(PAX) -w -f $@ $<
     331dl01-tar.c: dl01.tar
     332        $(BIN2C) -C $< $@
     333dl01-tar.h: dl01.tar
     334        $(BIN2C) -H $< $@
     335dl01-tar.o: dl01-tar.c dl01-tar.h
     336dl01/init.c: dl01-tar.o
     337dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES)
     338        @rm -f dl01.pre
     339        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     340dl01-sym.o: dl01.pre
     341        rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     342dl01$(EXEEXT):  $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o
     343        @rm -f $@
     344        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     345CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h
     346endif
     347endif
     348
     349if DLTESTS
     350if TEST_dl02
     351lib_tests += dl02
     352lib_screens += dl02/dl02.scn
     353lib_docs += dl02/dl02.doc
     354dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h
     355dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes)
     356dl02-o1.o: dl02/dl-o1.c
     357        $(COMPILE) -c -o $@ $<
     358dl02-o2.o: dl02/dl-o2.c
     359        $(COMPILE) -c -o $@ $<
     360dl02.tar: dl02-o1.o dl02-o2.o
     361        @rm -f $@
     362        $(PAX) -w -f $@ $<
     363dl02-tar.c: dl02.tar
     364        $(BIN2C) -C $< $@
     365dl02-tar.h: dl02.tar
     366        $(BIN2C) -H $< $@
     367dl02-tar.o: dl02-tar.c dl02-tar.h
     368dl02/init.c: dl02-tar.o
     369dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES)
     370        @rm -f dl02.pre
     371        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     372dl02-sym.o: dl02.pre
     373        rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     374dl02$(EXEEXT):  $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o
     375        @rm -f $@
     376        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     377CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h
     378endif
     379endif
     380
     381if DLTESTS
     382if TEST_dl03
     383lib_tests += dl03
     384lib_screens += dl03/dl03.scn
     385lib_docs += dl03/dl03.doc
     386dl03_SOURCES = dl03/init.c dl03/dl-cache.c
     387dl03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl03) $(support_includes)
     388endif
     389endif
     390
     391if DLTESTS
     392if HAS_CXX
     393if TEST_dl04
     394lib_tests += dl04
     395lib_screens += dl04/dl04.scn
     396lib_docs += dl04/dl04.doc
     397dl04_SOURCES = dl04/init.c dl04/dl-load.c dl04/dl-cpp.cpp dl04-tar.c \
     398        dl04-tar.h
     399dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes)
     400dl04-o4.o: dl04/dl-o4.cpp
     401        $(CXXCOMPILE) -c -o $@ $<
     402dl04.tar: dl04-o4.o
     403        @rm -f $@
     404        $(PAX) -w -f $@ $<
     405dl04-tar.c: dl04.tar
     406        $(BIN2C) -C $< $@
     407dl04-tar.h: dl04.tar
     408        $(BIN2C) -H $< $@
     409dl04-tar.o: dl04-tar.c dl04-tar.h
     410dl04/init.c: dl04-tar.o
     411dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
     412        @rm -f dl04.pre
     413        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     414dl04-sym.o: dl04.pre
     415        rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     416dl04$(EXEEXT):  $(dl04_OBJECTS) $(dl04_DEPENDENCIES) dl04-sym.o
     417        @rm -f $@
     418        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     419CLEANFILES += dl04.pre dl04-sym.o dl04-o4.o dl04.tar dl04-tar.h
     420endif
     421endif
     422endif
     423
     424if DLTESTS
     425if HAS_CXX
     426if TEST_dl05
     427lib_tests += dl05
     428lib_screens += dl05/dl05.scn
     429lib_docs += dl05/dl05.doc
     430dl05_SOURCES = dl05/init.c dl05/dl-load.c dl05/dl-cpp.cpp dl05-tar.c \
     431        dl05-tar.h
     432dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes)
     433dl05-o5.o: dl05/dl-o5.cpp
     434        $(CXXCOMPILE) -c -o $@ $<
     435dl05.tar: dl05-o5.o
     436        @rm -f $@
     437        $(PAX) -w -f $@ $<
     438dl05-tar.c: dl05.tar
     439        $(BIN2C) -C $< $@
     440dl05-tar.h: dl05.tar
     441        $(BIN2C) -H $< $@
     442dl05-tar.o: dl05-tar.c dl05-tar.h
     443dl05/init.c: dl05-tar.o
     444dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
     445        @rm -f dl05.pre
     446        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     447dl05-sym.o: dl05.pre
     448        rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     449dl05$(EXEEXT):  $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
     450        @rm -f $@
     451        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     452CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h
     453endif
     454endif
     455endif
     456
     457if TEST_dumpbuf01
     458lib_tests += dumpbuf01
     459lib_screens += dumpbuf01/dumpbuf01.scn
     460lib_docs += dumpbuf01/dumpbuf01.doc
     461dumpbuf01_SOURCES = dumpbuf01/init.c
     462dumpbuf01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dumpbuf01) \
     463        $(support_includes)
     464endif
     465
     466if TEST_dup2
     467lib_tests += dup2.norun
     468dup2_norun_SOURCES = POSIX/dup2.c
     469endif
     470
     471if TEST_exit01
     472lib_tests += exit01
     473lib_screens += exit01/exit01.scn
     474lib_docs += exit01/exit01.doc
     475exit01_SOURCES = exit01/init.c
     476exit01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit01) \
     477        $(support_includes)
     478endif
     479
     480if TEST_exit02
     481lib_tests += exit02
     482lib_screens += exit02/exit02.scn
     483lib_docs += exit02/exit02.doc
     484exit02_SOURCES = exit02/init.c
     485exit02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_exit02) \
     486        $(support_includes)
     487endif
     488
     489if TEST_fcntl
     490lib_tests += fcntl.norun
     491fcntl_norun_SOURCES = POSIX/fcntl.c
     492endif
     493
     494if TEST_flashdisk01
     495lib_tests += flashdisk01
     496lib_screens += flashdisk01/flashdisk01.scn
     497lib_docs += flashdisk01/flashdisk01.doc
     498flashdisk01_SOURCES = flashdisk01/init.c \
     499        flashdisk01/test-file-system.c
     500flashdisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_flashdisk01) \
     501        $(support_includes)
     502endif
     503
     504if TEST_flockfile
     505lib_tests += flockfile.norun
     506flockfile_norun_SOURCES = POSIX/flockfile.c
     507endif
     508
     509if TEST_fork
     510lib_tests += fork.norun
     511fork_norun_SOURCES = POSIX/fork.c
     512endif
     513
     514if TEST_free
     515lib_tests += free.norun
     516free_norun_SOURCES = POSIX/free.c
     517endif
     518
     519if TEST_fstat
     520lib_tests += fstat.norun
     521fstat_norun_SOURCES = POSIX/fstat.c
     522endif
     523
     524if NETTESTS
     525if TEST_ftp01
     526lib_tests += ftp01
     527lib_screens += ftp01/ftp01.scn
     528lib_docs += ftp01/ftp01.doc
     529ftp01_SOURCES = ftp01/init.c
     530ftp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_ftp01) \
     531        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
     532ftp01_LDADD = -lftpd
     533endif
     534endif
     535
     536if TEST_ftrylockfile
     537lib_tests += ftrylockfile.norun
     538ftrylockfile_norun_SOURCES = POSIX/ftrylockfile.c
     539endif
     540
     541if TEST_funlockfile
     542lib_tests += funlockfile.norun
     543funlockfile_norun_SOURCES = POSIX/funlockfile.c
     544endif
     545
     546if TEST_getentropy01
     547lib_tests += getentropy01
     548lib_screens += getentropy01/getentropy01.scn
     549lib_docs += getentropy01/getentropy01.doc
     550getentropy01_SOURCES = getentropy01/init.c
     551getentropy01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_getentropy01) \
     552        $(support_includes)
     553endif
     554
     555if TEST_getlogin
     556lib_tests += getlogin.norun
     557getlogin_norun_SOURCES = POSIX/getlogin.c
     558endif
     559
     560if TEST_getpwnam
     561lib_tests += getpwnam.norun
     562getpwnam_norun_SOURCES = POSIX/getpwnam.c
     563endif
     564
     565if TEST_getpwuid
     566lib_tests += getpwuid.norun
     567getpwuid_norun_SOURCES = POSIX/getpwuid.c
     568endif
     569
     570if TEST_gettimeofday
     571lib_tests += gettimeofday.norun
     572gettimeofday_norun_SOURCES = POSIX/gettimeofday.c
     573endif
     574
     575if TEST_getuid
     576lib_tests += getuid.norun
     577getuid_norun_SOURCES = POSIX/getuid.c
     578endif
     579
     580if TEST_gxx01
     581lib_tests += gxx01
     582lib_screens += gxx01/gxx01.scn
     583lib_docs += gxx01/gxx01.doc
     584gxx01_SOURCES = gxx01/init.c
     585gxx01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_gxx01) \
     586        $(support_includes)
     587endif
     588
     589if TEST_heapwalk
     590lib_tests += heapwalk
     591lib_screens += heapwalk/heapwalk.scn
     592heapwalk_SOURCES = heapwalk/init.c heapwalk/system.h
     593heapwalk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_heapwalk) \
     594        $(support_includes)
     595endif
     596
     597if TEST_htonl
     598lib_tests += htonl.norun
     599htonl_norun_SOURCES = POSIX/htonl.c
     600endif
     601
     602if TEST_i2c01
     603lib_tests += i2c01
     604lib_screens += i2c01/i2c01.scn
     605lib_docs += i2c01/i2c01.doc
     606i2c01_SOURCES = i2c01/init.c
     607i2c01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_i2c01) \
     608        $(support_includes)
     609endif
     610
     611if TEST_iconv
     612lib_tests += iconv.norun
     613iconv_norun_SOURCES = POSIX/iconv.c
     614endif
     615
     616if TEST_iconv_close
     617lib_tests += iconv_close.norun
     618iconv_close_norun_SOURCES = POSIX/iconv_close.c
     619endif
     620
     621if TEST_iconv_open
     622lib_tests += iconv_open.norun
     623iconv_open_norun_SOURCES = POSIX/iconv_open.c
     624endif
     625
     626if TEST_kill
     627lib_tests += kill.norun
     628kill_norun_SOURCES = POSIX/kill.c
     629endif
     630
     631if TEST_libfdt01
     632lib_tests += libfdt01
     633lib_screens += libfdt01/libfdt01.scn
     634lib_docs += libfdt01/libfdt01.doc
     635libfdt01_SOURCES = libfdt01/init.c libfdt01/some.c
     636libfdt01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_libfdt01) \
     637        $(support_includes)
     638endif
     639
     640if TEST_longjmp
     641lib_tests += longjmp.norun
     642longjmp_norun_SOURCES = POSIX/longjmp.c
     643endif
     644
     645if TEST_lseek
     646lib_tests += lseek.norun
     647lseek_norun_SOURCES = POSIX/lseek.c
     648endif
     649
     650if TEST_lstat
     651lib_tests += lstat.norun
     652lstat_norun_SOURCES = POSIX/lstat.c
     653endif
     654
     655if TEST_malloc
     656lib_tests += malloc.norun
     657malloc_norun_SOURCES = POSIX/malloc.c
     658endif
     659
     660if TEST_malloc02
     661lib_tests += malloc02
     662lib_screens += malloc02/malloc02.scn
     663lib_docs += malloc02/malloc02.doc
     664malloc02_SOURCES = malloc02/init.c
     665malloc02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc02) \
     666        $(support_includes)
     667endif
     668
     669if TEST_malloc03
     670lib_tests += malloc03
     671lib_screens += malloc03/malloc03.scn
     672lib_docs += malloc03/malloc03.doc
     673malloc03_SOURCES = malloc03/init.c
     674malloc03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc03) \
     675        $(support_includes)
     676endif
     677
     678if TEST_malloc04
     679lib_tests += malloc04
     680lib_screens += malloc04/malloc04.scn
     681lib_docs += malloc04/malloc04.doc
     682malloc04_SOURCES = malloc04/init.c
     683malloc04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloc04) \
     684        $(support_includes)
     685endif
     686
     687if TEST_malloctest
     688lib_tests += malloctest
     689lib_screens += malloctest/malloctest.scn
     690malloctest_SOURCES = malloctest/init.c malloctest/task1.c \
     691        malloctest/system.h
     692malloctest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_malloctest) \
     693        $(support_includes)
     694endif
     695
     696if TEST_math
     697lib_tests += math
     698lib_screens += math/math.scn
     699math_SOURCES = math/init.c math/domath.c
     700math_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_math) $(support_includes) \
     701        -I$(top_srcdir)/math
     702math_LDADD = -lm
     703endif
     704
     705if TEST_mathf
     706lib_tests += mathf
     707lib_screens += mathf/mathf.scn
     708mathf_SOURCES = mathf/init.c mathf/domathf.c
     709mathf_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathf) \
     710        $(support_includes) -I$(top_srcdir)/math
     711mathf_LDADD = -lm
     712endif
     713
     714if TEST_mathl
     715lib_tests += mathl
     716lib_screens += mathl/mathl.scn
     717mathl_SOURCES = mathl/init.c mathl/domathl.c
     718mathl_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mathl) \
     719        $(support_includes) -I$(top_srcdir)/math \
     720        -DNO_LONG_DOUBLE
     721mathl_LDADD = -lm
     722endif
     723
     724if TEST_md501
     725lib_tests += md501
     726lib_screens += md501/md501.scn
     727lib_docs += md501/md501.doc
     728md501_SOURCES = md501/init.c
     729md501_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_md501) \
     730        $(support_includes)
     731endif
    84732
    85733if NETTESTS
    86734if HAS_POSIX
    87 _SUBDIRS += mghttpd01
    88 endif
    89 _SUBDIRS += ftp01
    90 _SUBDIRS += networking01
    91 _SUBDIRS += syscall01
    92 endif
    93 
    94 ##
    95 ## The libdl use use AM's BUILT_SOURCE and this has a weird side effect of
    96 ## restarting the subdir loop. No idea why.
    97 ##
    98 if DLTESTS
    99 _SUBDIRS += dl01 dl02 dl03
    100 if HAS_CXX
    101 _SUBDIRS += dl04 dl05
    102 endif
    103 endif
    104 
    105 if DEBUGGERTESTS
    106 _SUBDIRS += debugger01
    107 endif
    108 
    109 include $(top_srcdir)/../automake/subdirs.am
     735if TEST_mghttpd01
     736lib_tests += mghttpd01
     737lib_screens += mghttpd01/mghttpd01.scn
     738lib_docs += mghttpd01/mghttpd01.doc
     739mghttpd01_SOURCES = mghttpd01/init.c mghttpd01_tar.c \
     740        mghttpd01_tar.h mghttpd01/test-http-client.c \
     741        mghttpd01/test-http-client.h
     742mghttpd01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mghttpd01) \
     743        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
     744mghttpd01_LDADD = -lmghttpd
     745mghttpd01_tar.c: mghttpd01/mghttpd01.tar
     746        $(BIN2C) -C $< $@
     747mghttpd01_tar.h: mghttpd01/mghttpd01.tar
     748        $(BIN2C) -H $< $@
     749mghttpd01-tar.o: mghttpd01-tar.c mghttpd01-tar.h
     750mghttpd01/init.c: mghttpd01_tar.h
     751CLEANFILES += mghttpd01.tar mghttpd01_tar.c mghttpd01_tar.h
     752endif
     753endif
     754endif
     755
     756if TEST_monitor
     757lib_tests += monitor
     758monitor_SOURCES = monitor/init.c monitor/system.h
     759monitor_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor) \
     760        $(support_includes)
     761endif
     762
     763if TEST_monitor02
     764lib_tests += monitor02
     765lib_screens += monitor02/monitor02.scn
     766monitor02_SOURCES = monitor02/init.c monitor02/system.h
     767monitor02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_monitor02) \
     768        $(support_includes)
     769endif
     770
     771if TEST_mouse01
     772lib_tests += mouse01
     773lib_screens += mouse01/mouse01.scn
     774lib_docs += mouse01/mouse01.doc
     775mouse01_SOURCES = mouse01/init.c mouse01/serial_mouse_config.c \
     776        mouse01/msmouse.c termios04/termios_testdriver_intr.c
     777mouse01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_mouse01) \
     778        $(support_includes) -I$(top_srcdir)/termios04
     779endif
     780
     781if TEST_nanosleep
     782lib_tests += nanosleep.norun
     783nanosleep_norun_SOURCES = POSIX/nanosleep.c
     784endif
     785
     786if NETTESTS
     787if TEST_networking01
     788lib_tests += networking01
     789lib_screens += networking01/networking01.scn
     790lib_docs += networking01/networking01.doc
     791networking01_SOURCES = networking01/init.c
     792networking01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_networking01) \
     793        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
     794endif
     795endif
     796
     797if TEST_newlib01
     798lib_tests += newlib01
     799lib_screens += newlib01/newlib01.scn
     800lib_docs += newlib01/newlib01.doc
     801newlib01_SOURCES = newlib01/init.c
     802newlib01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_newlib01) \
     803        $(support_includes)
     804endif
     805
     806if TEST_open
     807lib_tests += open.norun
     808open_norun_SOURCES = POSIX/open.c
     809endif
     810
     811if TEST_pipe
     812lib_tests += pipe.norun
     813pipe_norun_SOURCES = POSIX/pipe.c
     814endif
     815
     816if TEST_posix_memalign
     817lib_tests += posix_memalign.norun
     818posix_memalign_norun_SOURCES = POSIX/posix_memalign.c
     819endif
     820
     821if TEST_putenvtest
     822lib_tests += putenvtest
     823lib_screens += putenvtest/putenvtest.scn
     824putenvtest_SOURCES = putenvtest/init.c
     825putenvtest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_putenvtest) \
     826        $(support_includes)
     827endif
     828
     829if TEST_pwdgrp01
     830lib_tests += pwdgrp01
     831lib_screens += pwdgrp01/pwdgrp01.scn
     832lib_docs += pwdgrp01/pwdgrp01.doc
     833pwdgrp01_SOURCES = pwdgrp01/init.c
     834pwdgrp01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp01) \
     835        $(support_includes)
     836endif
     837
     838if TEST_pwdgrp02
     839lib_tests += pwdgrp02
     840lib_screens += pwdgrp02/pwdgrp02.scn
     841lib_docs += pwdgrp02/pwdgrp02.doc
     842pwdgrp02_SOURCES = pwdgrp02/init.c
     843pwdgrp02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_pwdgrp02) \
     844        $(support_includes)
     845endif
     846
     847if TEST_rbheap01
     848lib_tests += rbheap01
     849lib_screens += rbheap01/rbheap01.scn
     850lib_docs += rbheap01/rbheap01.doc
     851rbheap01_SOURCES = rbheap01/init.c
     852rbheap01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rbheap01) \
     853        $(support_includes)
     854endif
     855
     856if TEST_read
     857lib_tests += read.norun
     858read_norun_SOURCES = POSIX/read.c
     859endif
     860
     861if TEST_readv
     862lib_tests += readv.norun
     863readv_norun_SOURCES = POSIX/readv.c
     864endif
     865
     866if TEST_realloc
     867lib_tests += realloc.norun
     868realloc_norun_SOURCES = POSIX/realloc.c
     869endif
     870
     871if TEST_rtmonuse
     872lib_tests += rtmonuse
     873lib_screens += rtmonuse/rtmonuse.scn
     874rtmonuse_SOURCES = rtmonuse/init.c rtmonuse/getall.c rtmonuse/task1.c \
     875        rtmonuse/system.h
     876rtmonuse_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rtmonuse) \
     877        $(support_includes)
     878endif
     879
     880if TEST_setjmp
     881lib_tests += setjmp.norun
     882setjmp_norun_SOURCES = POSIX/setjmp.c
     883endif
     884
     885if TEST_sha
     886lib_tests += sha
     887lib_screens += sha/sha.scn
     888lib_docs += sha/sha.doc
     889sha_SOURCES = sha/init.c
     890sha_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sha) $(support_includes)
     891endif
     892
     893if TEST_shell01
     894lib_tests += shell01
     895lib_screens += shell01/shell01.scn
     896lib_docs += shell01/shell01.doc
     897shell01_SOURCES = shell01/init.c
     898shell01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_shell01) \
     899        $(support_includes)
     900endif
     901
     902if TEST_sigaddset
     903lib_tests += sigaddset.norun
     904sigaddset_norun_SOURCES = POSIX/sigaddset.c
     905endif
     906
     907if TEST_sigdelset
     908lib_tests += sigdelset.norun
     909sigdelset_norun_SOURCES = POSIX/sigdelset.c
     910endif
     911
     912if TEST_sigemptyset
     913lib_tests += sigemptyset.norun
     914sigemptyset_norun_SOURCES = POSIX/sigemptyset.c
     915endif
     916
     917if TEST_sigfillset
     918lib_tests += sigfillset.norun
     919sigfillset_norun_SOURCES = POSIX/sigfillset.c
     920endif
     921
     922if TEST_sigismember
     923lib_tests += sigismember.norun
     924sigismember_norun_SOURCES = POSIX/sigismember.c
     925endif
     926
     927if TEST_sigprocmask
     928lib_tests += sigprocmask.norun
     929sigprocmask_norun_SOURCES = POSIX/sigprocmask.c
     930endif
     931
     932if TEST_sparsedisk01
     933lib_tests += sparsedisk01
     934lib_screens += sparsedisk01/sparsedisk01.scn
     935lib_docs += sparsedisk01/sparsedisk01.doc
     936sparsedisk01_SOURCES = sparsedisk01/init.c
     937sparsedisk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_sparsedisk01) \
     938        $(support_includes)
     939endif
     940
     941if TEST_spi01
     942lib_tests += spi01
     943lib_screens += spi01/spi01.scn
     944lib_docs += spi01/spi01.doc
     945spi01_SOURCES = spi01/init.c
     946spi01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spi01) \
     947        $(support_includes)
     948endif
     949
     950if TEST_stackchk
     951lib_tests += stackchk
     952lib_screens += stackchk/stackchk.scn
     953stackchk_SOURCES = stackchk/blow.c stackchk/init.c stackchk/task1.c \
     954        stackchk/system.h
     955stackchk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk) \
     956        $(support_includes)
     957endif
     958
     959if TEST_stackchk01
     960lib_tests += stackchk01
     961lib_screens += stackchk01/stackchk01.scn
     962lib_docs += stackchk01/stackchk01.doc
     963stackchk01_SOURCES = stackchk01/init.c
     964stackchk01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stackchk01) \
     965        $(support_includes)
     966endif
     967
     968if TEST_stat
     969lib_tests += stat.norun
     970stat_norun_SOURCES = POSIX/stat.c
     971endif
     972
     973if TEST_stringto01
     974lib_tests += stringto01
     975lib_screens += stringto01/stringto01.scn
     976lib_docs += stringto01/stringto01.doc
     977stringto01_SOURCES = stringto01/init.c \
     978        stringto01/stringto_test_template.h
     979stringto01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_stringto01) \
     980        $(support_includes)
     981endif
     982
     983if NETTESTS
     984if TEST_syscall01
     985lib_tests += syscall01
     986lib_screens += syscall01/syscall01.scn
     987lib_docs += syscall01/syscall01.doc
     988syscall01_SOURCES = syscall01/init.c
     989syscall01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_syscall01) \
     990        $(support_includes) -I$(RTEMS_SOURCE_ROOT)/cpukit/libnetworking
     991endif
     992endif
     993
     994if TARTESTS
     995if TEST_tar01
     996lib_tests += tar01
     997lib_screens += tar01/tar01.scn
     998lib_docs += tar01/tar01.doc
     999tar01_SOURCES = tar01/init.c ../psxtests/psxfile01/test_cat.c \
     1000        tar01_tar.c tar01_tar.h tar01_tar_gz.c tar01_tar_gz.h
     1001if TARTEST_XZ
     1002tar01_SOURCES += tar01_tar_xz.c tar01_tar_xz.h
     1003endif
     1004tar01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar01) \
     1005        $(support_includes) $(test_includes) -I$(top_srcdir)/include
     1006tar01_LDADD = -lrtemscpu -lz
     1007tar01.tar: Makefile
     1008        rm -rf tar01_fs
     1009        $(MKDIR_P) tar01_fs/home
     1010        (echo "This is a test of loading an RTEMS filesystem from an" ; \
     1011        echo "initial tar image.") > tar01_fs/home/test_file
     1012        (echo "#! joel" ; \
     1013        echo "ls -las /dev") > tar01_fs/home/test_script
     1014        chmod +x tar01_fs/home/test_script
     1015        (cd tar01_fs; \
     1016        $(LN_S) home/test_file symlink; \
     1017        $(PAX) -w -f ../tar01.tar home symlink)
     1018tar01_tar.c: tar01.tar
     1019        $(BIN2C) -C $< $@
     1020tar01_tar.h: tar01.tar
     1021        $(BIN2C) -H $< $@
     1022tar01-tar.o: tar01-tar.c tar01-tar.h
     1023tar01.tar.gz: tar01.tar
     1024        $(GZIP) < $< > $@
     1025tar01_tar_gz.c: tar01.tar.gz
     1026        $(BIN2C) -C $< $@
     1027tar01_tar_gz.h: tar01.tar.gz
     1028        $(BIN2C) -H $< $@
     1029CLEANFILES += tar01.tar tar01_tar.c tar01_tar.h \
     1030        tar01.tar.gz tar01_tar_gz.c tar01_tar_gz.h
     1031if TARTEST_XZ
     1032tar01.tar.xz: tar01.tar
     1033        $(XZ) < $< > $@
     1034tar01_tar_xz.c: tar01.tar.xz
     1035        $(BIN2C) -C $< $@
     1036tar01_tar_xz.h: tar01.tar.xz
     1037        $(BIN2C) -H $< $@
     1038TAR01_XZ_H = tar01_tar_xz.h
     1039CLEANFILES += tar01.tar.xz tar01_tar_xz.c tar01_tar_xz.h
     1040endif
     1041tar01/init.c: tar01_tar.h tar01_tar_gz.h $(TAR01_XZ_H)
     1042endif
     1043endif
     1044
     1045if TARTESTS
     1046if TEST_tar02
     1047lib_tests += tar02
     1048lib_screens += tar02/tar02.scn
     1049lib_docs += tar02/tar02.doc
     1050tar02_SOURCES = tar02/init.c ../psxtests/psxfile01/test_cat.c \
     1051        tar02_tar.c tar02_tar.h
     1052tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \
     1053        $(support_includes) $(test_includes) -I$(top_srcdir)/include
     1054tar02.tar: Makefile
     1055        rm -rf tar02_fs
     1056        $(MKDIR_P) tar02_fs/home
     1057        (echo "This is a test of loading an RTEMS filesystem from an" ; \
     1058        echo "initial tar image.") > tar02_fs/home/test_file
     1059        (echo "#! joel" ; \
     1060        echo "ls -las /dev") > tar02_fs/home/test_script
     1061        chmod +x tar02_fs/home/test_script
     1062        (cd tar02_fs; \
     1063        $(LN_S) home/test_file symlink; \
     1064        $(PAX) -w -f ../tar02.tar home symlink)
     1065tar02_tar.c: tar02.tar
     1066        $(BIN2C) -C $< $@
     1067tar02_tar.h: tar02.tar
     1068        $(BIN2C) -H $< $@
     1069tar02-tar.o: tar02-tar.c tar02-tar.h
     1070tar02/init.c: tar02_tar.h
     1071CLEANFILES += tar02.tar tar02_tar.c tar02_tar.h
     1072endif
     1073endif
     1074
     1075if TEST_tar03
     1076lib_tests += tar03
     1077lib_screens += tar03/tar03.scn
     1078lib_docs += tar03/tar03.doc
     1079tar03_SOURCES = tar03/init.c
     1080tar03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar03) \
     1081        $(support_includes)
     1082endif
     1083
     1084if TEST_termios
     1085lib_tests += termios
     1086termios_SOURCES = termios/init.c
     1087termios_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios) \
     1088        $(support_includes)
     1089endif
     1090
     1091if TEST_termios01
     1092lib_tests += termios01
     1093lib_screens += termios01/termios01.scn
     1094lib_docs += termios01/termios01.doc
     1095termios01_SOURCES = termios01/init.c termios01/termios_testdriver.c \
     1096        termios01/termios_testdriver.h
     1097termios01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios01) \
     1098        $(support_includes) -I$(top_srcdir)/include
     1099endif
     1100
     1101if TEST_termios02
     1102lib_tests += termios02
     1103lib_screens += termios02/termios02.scn
     1104lib_docs += termios02/termios02.doc
     1105termios02_SOURCES = termios02/init.c
     1106termios02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios02) \
     1107        $(support_includes) -I$(top_srcdir)/include
     1108endif
     1109
     1110if TEST_termios03
     1111lib_tests += termios03
     1112lib_screens += termios03/termios03.scn
     1113lib_docs += termios03/termios03.doc
     1114termios03_SOURCES = termios03/init.c \
     1115        termios03/termios_testdriver_polled.c \
     1116        termios03/termios_testdriver_polled.h
     1117termios03_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios03) \
     1118        $(support_includes)
     1119endif
     1120
     1121if TEST_termios04
     1122lib_tests += termios04
     1123lib_screens += termios04/termios04.scn
     1124lib_docs += termios04/termios04.doc
     1125termios04_SOURCES = termios04/init.c \
     1126        termios04/termios_testdriver_intr.c \
     1127        termios04/termios_testdriver_intr.h
     1128termios04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios04) \
     1129        $(support_includes)
     1130endif
     1131
     1132if TEST_termios05
     1133lib_tests += termios05
     1134lib_screens += termios05/termios05.scn
     1135lib_docs += termios05/termios05.doc
     1136termios05_SOURCES = termios05/init.c \
     1137        termios04/termios_testdriver_intr.c
     1138termios05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios05) \
     1139        $(support_includes) -I$(top_srcdir)/termios04 -DTASK_DRIVEN
     1140endif
     1141
     1142if TEST_termios06
     1143lib_tests += termios06
     1144lib_screens += termios06/termios06.scn
     1145lib_docs += termios06/termios06.doc
     1146termios06_SOURCES = termios06/init.c \
     1147        termios03/termios_testdriver_polled.c termios06/test_pppd.c
     1148termios06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios06) \
     1149        $(support_includes) -I$(top_srcdir)/termios03
     1150endif
     1151
     1152if TEST_termios07
     1153lib_tests += termios07
     1154lib_screens += termios07/termios07.scn
     1155lib_docs += termios07/termios07.doc
     1156termios07_SOURCES = termios07/init.c \
     1157        termios04/termios_testdriver_intr.c
     1158termios07_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios07) \
     1159        $(support_includes) -I$(top_srcdir)/termios04
     1160endif
     1161
     1162if TEST_termios08
     1163lib_tests += termios08
     1164lib_screens += termios08/termios08.scn
     1165lib_docs += termios08/termios08.doc
     1166termios08_SOURCES = termios08/init.c \
     1167        termios03/termios_testdriver_polled.c
     1168termios08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios08) \
     1169        $(support_includes) -I$(top_srcdir)/termios03
     1170endif
     1171
     1172if TEST_termios09
     1173lib_tests += termios09
     1174lib_screens += termios09/termios09.scn
     1175lib_docs += termios09/termios09.doc
     1176termios09_SOURCES = termios09/init.c
     1177termios09_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_termios09) \
     1178        $(support_includes)
     1179endif
     1180
     1181if TEST_top
     1182lib_tests += top
     1183lib_screens += top/top.scn
     1184top_SOURCES = top/init.c top/task1.c top/task2.c top/task3.c \
     1185        top/system.h
     1186top_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_top) $(support_includes)
     1187endif
     1188
     1189if TEST_tztest
     1190lib_tests += tztest
     1191lib_screens += tztest/tztest.scn
     1192lib_docs += tztest/tztest.doc
     1193tztest_SOURCES = tztest/init.c
     1194tztest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tztest) \
     1195        $(support_includes)
     1196endif
     1197
     1198if TEST_uid01
     1199lib_tests += uid01
     1200lib_docs += uid01/uid01.doc
     1201uid01_SOURCES = uid01/init.c uid01/serial_mouse_config.c \
     1202        uid01/msmouse.c termios04/termios_testdriver_intr.c
     1203uid01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_uid01) \
     1204        $(support_includes) -I$(top_srcdir)/termios04
     1205endif
     1206
     1207if TEST_unlink
     1208lib_tests += unlink.norun
     1209unlink_norun_SOURCES = POSIX/unlink.c
     1210endif
     1211
     1212if TEST_utf8proc01
     1213lib_tests += utf8proc01
     1214lib_screens += utf8proc01/utf8proc01.scn
     1215lib_docs += utf8proc01/utf8proc01.doc
     1216utf8proc01_SOURCES = utf8proc01/init.c
     1217utf8proc01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_utf8proc01) \
     1218        $(support_includes)
     1219endif
     1220
     1221if TEST_vfork
     1222lib_tests += vfork.norun
     1223vfork_norun_SOURCES = POSIX/vfork.c
     1224endif
     1225
     1226if TEST_wait
     1227lib_tests += wait.norun
     1228wait_norun_SOURCES = POSIX/wait.c
     1229endif
     1230
     1231if TEST_waitpid
     1232lib_tests += waitpid.norun
     1233waitpid_norun_SOURCES = POSIX/waitpid.c
     1234endif
     1235
     1236if TEST_write
     1237lib_tests += write.norun
     1238write_norun_SOURCES = POSIX/write.c
     1239endif
     1240
     1241if TEST_writev
     1242lib_tests += writev.norun
     1243writev_norun_SOURCES = POSIX/writev.c
     1244endif
     1245
     1246rtems_tests_PROGRAMS = $(lib_tests)
     1247dist_rtems_tests_DATA = $(lib_screens) $(lib_docs)
     1248
    1101249include $(top_srcdir)/../automake/local.am
  • testsuites/libtests/configure.ac

    r32f2629b r5c65b98  
    9494AM_CONDITIONAL(DEBUGGERTESTS,[test x"$TEST_LIBDEBUGGER" = x"yes"])
    9595
    96 # Explicitly list all Makefiles here
    97 AC_CONFIG_FILES([Makefile
    98 POSIX/Makefile
    99 block01/Makefile
    100 block02/Makefile
    101 block03/Makefile
    102 block04/Makefile
    103 block05/Makefile
    104 block06/Makefile
    105 block07/Makefile
    106 block08/Makefile
    107 block09/Makefile
    108 block10/Makefile
    109 block11/Makefile
    110 block12/Makefile
    111 block13/Makefile
    112 block14/Makefile
    113 block15/Makefile
    114 block16/Makefile
    115 block17/Makefile
    116 bspcmdline01/Makefile
    117 capture01/Makefile
    118 complex/Makefile
    119 cpuuse/Makefile
    120 crypt01/Makefile
    121 debugger01/Makefile
    122 defaultconfig01/Makefile
    123 devfs01/Makefile
    124 devfs02/Makefile
    125 devfs03/Makefile
    126 devfs04/Makefile
    127 deviceio01/Makefile
    128 devnullfatal01/Makefile
    129 dl01/Makefile
    130 dl02/Makefile
    131 dl03/Makefile
    132 dl04/Makefile
    133 dl05/Makefile
    134 dumpbuf01/Makefile
    135 exit01/Makefile
    136 exit02/Makefile
    137 flashdisk01/Makefile
    138 ftp01/Makefile
    139 gxx01/Makefile
    140 heapwalk/Makefile
    141 i2c01/Makefile
    142 libfdt01/Makefile
    143 malloc02/Makefile
    144 malloc03/Makefile
    145 malloc04/Makefile
    146 malloctest/Makefile
    147 math/Makefile
    148 mathf/Makefile
    149 mathl/Makefile
    150 md501/Makefile
    151 mghttpd01/Makefile
    152 monitor/Makefile
    153 monitor02/Makefile
    154 mouse01/Makefile
    155 networking01/Makefile
    156 newlib01/Makefile
    157 putenvtest/Makefile
    158 pwdgrp01/Makefile
    159 pwdgrp02/Makefile
    160 getentropy01/Makefile
    161 rbheap01/Makefile
    162 rtmonuse/Makefile
    163 sha/Makefile
    164 shell01/Makefile
    165 sparsedisk01/Makefile
    166 spi01/Makefile
    167 stackchk/Makefile
    168 stackchk01/Makefile
    169 stringto01/Makefile
    170 syscall01/Makefile
    171 tar01/Makefile
    172 tar02/Makefile
    173 tar03/Makefile
    174 termios/Makefile
    175 termios01/Makefile
    176 termios02/Makefile
    177 termios03/Makefile
    178 termios04/Makefile
    179 termios05/Makefile
    180 termios06/Makefile
    181 termios07/Makefile
    182 termios08/Makefile
    183 termios09/Makefile
    184 top/Makefile
    185 tztest/Makefile
    186 uid01/Makefile
    187 utf8proc01/Makefile
    188 ])
     96# BSP Test configuration
     97RTEMS_TEST_CHECK([block01])
     98RTEMS_TEST_CHECK([block02])
     99RTEMS_TEST_CHECK([block03])
     100RTEMS_TEST_CHECK([block04])
     101RTEMS_TEST_CHECK([block05])
     102RTEMS_TEST_CHECK([block06])
     103RTEMS_TEST_CHECK([block07])
     104RTEMS_TEST_CHECK([block08])
     105RTEMS_TEST_CHECK([block09])
     106RTEMS_TEST_CHECK([block10])
     107RTEMS_TEST_CHECK([block11])
     108RTEMS_TEST_CHECK([block12])
     109RTEMS_TEST_CHECK([block13])
     110RTEMS_TEST_CHECK([block14])
     111RTEMS_TEST_CHECK([block15])
     112RTEMS_TEST_CHECK([block16])
     113RTEMS_TEST_CHECK([block17])
     114RTEMS_TEST_CHECK([bspcmdline01])
     115RTEMS_TEST_CHECK([calloc])
     116RTEMS_TEST_CHECK([capture01])
     117RTEMS_TEST_CHECK([clock_gettime])
     118RTEMS_TEST_CHECK([close])
     119RTEMS_TEST_CHECK([complex])
     120RTEMS_TEST_CHECK([cpuuse])
     121RTEMS_TEST_CHECK([crypt01])
     122RTEMS_TEST_CHECK([debugger01])
     123RTEMS_TEST_CHECK([defaultconfig01])
     124RTEMS_TEST_CHECK([devfs01])
     125RTEMS_TEST_CHECK([devfs02])
     126RTEMS_TEST_CHECK([devfs03])
     127RTEMS_TEST_CHECK([devfs04])
     128RTEMS_TEST_CHECK([deviceio01])
     129RTEMS_TEST_CHECK([devnullfatal01])
     130RTEMS_TEST_CHECK([dl01])
     131RTEMS_TEST_CHECK([dl02])
     132RTEMS_TEST_CHECK([dl03])
     133RTEMS_TEST_CHECK([dl04])
     134RTEMS_TEST_CHECK([dl05])
     135RTEMS_TEST_CHECK([dumpbuf01])
     136RTEMS_TEST_CHECK([dup2])
     137RTEMS_TEST_CHECK([exit01])
     138RTEMS_TEST_CHECK([exit02])
     139RTEMS_TEST_CHECK([fcntl])
     140RTEMS_TEST_CHECK([flashdisk01])
     141RTEMS_TEST_CHECK([flockfile])
     142RTEMS_TEST_CHECK([fork])
     143RTEMS_TEST_CHECK([free])
     144RTEMS_TEST_CHECK([fstat])
     145RTEMS_TEST_CHECK([ftp01])
     146RTEMS_TEST_CHECK([ftrylockfile])
     147RTEMS_TEST_CHECK([funlockfile])
     148RTEMS_TEST_CHECK([getentropy01])
     149RTEMS_TEST_CHECK([getlogin])
     150RTEMS_TEST_CHECK([getpwnam])
     151RTEMS_TEST_CHECK([getpwuid])
     152RTEMS_TEST_CHECK([gettimeofday])
     153RTEMS_TEST_CHECK([getuid])
     154RTEMS_TEST_CHECK([gxx01])
     155RTEMS_TEST_CHECK([heapwalk])
     156RTEMS_TEST_CHECK([htonl])
     157RTEMS_TEST_CHECK([i2c01])
     158RTEMS_TEST_CHECK([iconv])
     159RTEMS_TEST_CHECK([iconv_close])
     160RTEMS_TEST_CHECK([iconv_open])
     161RTEMS_TEST_CHECK([kill])
     162RTEMS_TEST_CHECK([libfdt01])
     163RTEMS_TEST_CHECK([longjmp])
     164RTEMS_TEST_CHECK([lseek])
     165RTEMS_TEST_CHECK([lstat])
     166RTEMS_TEST_CHECK([malloc])
     167RTEMS_TEST_CHECK([malloc02])
     168RTEMS_TEST_CHECK([malloc03])
     169RTEMS_TEST_CHECK([malloc04])
     170RTEMS_TEST_CHECK([malloctest])
     171RTEMS_TEST_CHECK([math])
     172RTEMS_TEST_CHECK([mathf])
     173RTEMS_TEST_CHECK([mathl])
     174RTEMS_TEST_CHECK([md501])
     175RTEMS_TEST_CHECK([mghttpd01])
     176RTEMS_TEST_CHECK([monitor])
     177RTEMS_TEST_CHECK([monitor02])
     178RTEMS_TEST_CHECK([mouse01])
     179RTEMS_TEST_CHECK([nanosleep])
     180RTEMS_TEST_CHECK([networking01])
     181RTEMS_TEST_CHECK([newlib01])
     182RTEMS_TEST_CHECK([open])
     183RTEMS_TEST_CHECK([pipe])
     184RTEMS_TEST_CHECK([posix_memalign])
     185RTEMS_TEST_CHECK([putenvtest])
     186RTEMS_TEST_CHECK([pwdgrp01])
     187RTEMS_TEST_CHECK([pwdgrp02])
     188RTEMS_TEST_CHECK([rbheap01])
     189RTEMS_TEST_CHECK([read])
     190RTEMS_TEST_CHECK([readv])
     191RTEMS_TEST_CHECK([realloc])
     192RTEMS_TEST_CHECK([rtmonuse])
     193RTEMS_TEST_CHECK([setjmp])
     194RTEMS_TEST_CHECK([sha])
     195RTEMS_TEST_CHECK([shell01])
     196RTEMS_TEST_CHECK([sigaddset])
     197RTEMS_TEST_CHECK([sigdelset])
     198RTEMS_TEST_CHECK([sigemptyset])
     199RTEMS_TEST_CHECK([sigfillset])
     200RTEMS_TEST_CHECK([sigismember])
     201RTEMS_TEST_CHECK([sigprocmask])
     202RTEMS_TEST_CHECK([sparsedisk01])
     203RTEMS_TEST_CHECK([spi01])
     204RTEMS_TEST_CHECK([stackchk])
     205RTEMS_TEST_CHECK([stackchk01])
     206RTEMS_TEST_CHECK([stat])
     207RTEMS_TEST_CHECK([stringto01])
     208RTEMS_TEST_CHECK([syscall01])
     209RTEMS_TEST_CHECK([tar01])
     210RTEMS_TEST_CHECK([tar02])
     211RTEMS_TEST_CHECK([tar03])
     212RTEMS_TEST_CHECK([termios])
     213RTEMS_TEST_CHECK([termios01])
     214RTEMS_TEST_CHECK([termios02])
     215RTEMS_TEST_CHECK([termios03])
     216RTEMS_TEST_CHECK([termios04])
     217RTEMS_TEST_CHECK([termios05])
     218RTEMS_TEST_CHECK([termios06])
     219RTEMS_TEST_CHECK([termios07])
     220RTEMS_TEST_CHECK([termios08])
     221RTEMS_TEST_CHECK([termios09])
     222RTEMS_TEST_CHECK([top])
     223RTEMS_TEST_CHECK([tztest])
     224RTEMS_TEST_CHECK([uid01])
     225RTEMS_TEST_CHECK([unlink])
     226RTEMS_TEST_CHECK([utf8proc01])
     227RTEMS_TEST_CHECK([vfork])
     228RTEMS_TEST_CHECK([wait])
     229RTEMS_TEST_CHECK([waitpid])
     230RTEMS_TEST_CHECK([write])
     231RTEMS_TEST_CHECK([writev])
     232
     233AC_CONFIG_FILES([Makefile])
    189234AC_OUTPUT
  • testsuites/libtests/dl01/init.c

    r32f2629b r5c65b98  
    2828static rtems_task Init(rtems_task_argument argument);
    2929
    30 #include "dl-tar.h"
     30#include "dl01-tar.h"
    3131
    32 #define TARFILE_START dl_tar
    33 #define TARFILE_SIZE  dl_tar_size
     32#define TARFILE_START dl01_tar
     33#define TARFILE_SIZE  dl01_tar_size
    3434
    3535static int test(void)
  • testsuites/libtests/dl02/init.c

    r32f2629b r5c65b98  
    2828static rtems_task Init(rtems_task_argument argument);
    2929
    30 #include "dl-tar.h"
     30#include "dl02-tar.h"
    3131
    32 #define TARFILE_START dl_tar
    33 #define TARFILE_SIZE  dl_tar_size
     32#define TARFILE_START dl02_tar
     33#define TARFILE_SIZE  dl02_tar_size
    3434
    3535static int test(void)
  • testsuites/libtests/dl04/init.c

    r32f2629b r5c65b98  
    2828static rtems_task Init(rtems_task_argument argument);
    2929
    30 #include "dl-tar.h"
     30#include "dl04-tar.h"
    3131
    32 #define TARFILE_START dl_tar
    33 #define TARFILE_SIZE  dl_tar_size
     32#define TARFILE_START dl04_tar
     33#define TARFILE_SIZE  dl04_tar_size
    3434
    3535static int test(void)
  • testsuites/libtests/dl05/init.c

    r32f2629b r5c65b98  
    2828static rtems_task Init(rtems_task_argument argument);
    2929
    30 #include "dl-tar.h"
     30#include "dl05-tar.h"
    3131
    32 #define TARFILE_START dl_tar
    33 #define TARFILE_SIZE  dl_tar_size
     32#define TARFILE_START dl05_tar
     33#define TARFILE_SIZE  dl05_tar_size
    3434
    3535static int test(void)
  • testsuites/libtests/mghttpd01/init.c

    r32f2629b r5c65b98  
    2929#include <rtems/imfs.h>
    3030#include <rtems/error.h>
    31 #include "init_fs.h"
     31#include "mghttpd01_tar.h"
    3232
    3333#include "test-http-client.h"
     
    3535const char rtems_test_name[] = "MGHTTPD 1";
    3636
    37 #define TARFILE_START init_fs_tar
    38 #define TARFILE_SIZE  init_fs_tar_size
     37#define TARFILE_START mghttpd01_tar
     38#define TARFILE_SIZE  mghttpd01_tar_size
    3939
    4040#define CBACKTEST_URI   "/callbacktest.txt"
     
    265265  TEST_END();
    266266
    267   rtems_test_exit(0); 
     267  rtems_test_exit(0);
    268268}
    269269
  • testsuites/libtests/tar01/init.c

    r32f2629b r5c65b98  
    2424#include <unistd.h>
    2525
    26 #include "initial_filesystem_tar.h"
    27 #include "initial_filesystem_tar_gz.h"
     26#include "tar01_tar.h"
     27#include "tar01_tar_gz.h"
    2828#if HAVE_XZ
    29 #include "initial_filesystem_tar_xz.h"
     29#include "tar01_tar_xz.h"
    3030#endif
    3131
     
    4040void test_untar_unzip_txz(void);
    4141
    42 #define TARFILE_START initial_filesystem_tar
    43 #define TARFILE_SIZE  initial_filesystem_tar_size
    44 #define TARFILE_GZ_START initial_filesystem_tar_gz
    45 #define TARFILE_GZ_SIZE  initial_filesystem_tar_gz_size
     42#define TARFILE_START    tar01_tar
     43#define TARFILE_SIZE     tar01_tar_size
     44#define TARFILE_GZ_START tar01_tar_gz
     45#define TARFILE_GZ_SIZE  tar01_tar_gz_size
    4646#if HAVE_XZ
    47 #define TARFILE_XZ_START initial_filesystem_tar_xz
    48 #define TARFILE_XZ_SIZE  initial_filesystem_tar_xz_size
     47#define TARFILE_XZ_START tar01_tar_xz
     48#define TARFILE_XZ_SIZE  tar01_tar_xz_size
    4949#endif
    5050
  • testsuites/libtests/tar02/init.c

    r32f2629b r5c65b98  
    2525#include <string.h>
    2626
    27 #include "initial_filesystem_tar.h"
     27#include "tar02_tar.h"
    2828
    2929const char rtems_test_name[] = "TAR 2";
     
    3333void test_tarfs_load(void);
    3434
    35 #define TARFILE_START initial_filesystem_tar
    36 #define TARFILE_SIZE  initial_filesystem_tar_size
     35#define TARFILE_START tar02_tar
     36#define TARFILE_SIZE  tar02_tar_size
    3737
    3838static const char file[] = "/home/test_file";
Note: See TracChangeset for help on using the changeset viewer.