4
# PROGRAMS includes all test programs built on this platform.
6
# test programs invoked via standard user interface, run on all platforms
8
# test programs invoked via standard user interface, not portable
10
# programs such as sendfile, that have to be invoked in a special sequence
11
# or with special parameters
14
testlockperf@EXEEXT@ \
15
testshmproducer@EXEEXT@ \
16
testshmconsumer@EXEEXT@ \
17
testmutexscope@EXEEXT@ \
20
OTHER_PROGRAMS = sendfile@EXEEXT@
22
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
26
# bring in rules.mk for standard functionality
29
LOCAL_LIBS=../lib@APR_LIBNAME@.la
31
CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
32
readchild@EXEEXT@ tryread@EXEEXT@ sockchild@EXEEXT@ \
33
globalmutexchild@EXEEXT@ lfstests/large.bin \
34
data/test*.txt data/test*.dat
35
CLEAN_SUBDIRS = internal
38
INCLUDES=-I$(INCDIR) -I$(srcdir)/../include
40
# link programs using -no-install to get real executables not
41
# libtool wrapper scripts which link an executable when first run.
42
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
44
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
45
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
47
if test $$? = 255; then \
48
echo "$$prog failed"; \
53
occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
54
$(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
56
sockchild@EXEEXT@: sockchild.lo $(LOCAL_LIBS)
57
$(LINK_PROG) sockchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
59
readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
60
$(LINK_PROG) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
62
globalmutexchild@EXEEXT@: globalmutexchild.lo $(LOCAL_LIBS)
63
$(LINK_PROG) globalmutexchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
65
tryread@EXEEXT@: tryread.lo $(LOCAL_LIBS)
66
$(LINK_PROG) tryread.lo $(LOCAL_LIBS) $(ALL_LIBS)
68
proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
69
$(LINK_PROG) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
71
# FIXME: -prefer-pic is only supported with libtool-1.4+
72
mod_test.slo: $(srcdir)/mod_test.c
73
$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
75
mod_test.la: mod_test.slo $(LOCAL_LIBS)
76
$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
78
libmod_test.la: mod_test.slo $(LOCAL_LIBS)
79
$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(LOCAL_LIBS) $(ALL_LIBS)
81
testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
82
$(LINK_PROG) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
84
sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
85
$(LINK_PROG) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
87
testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
88
$(LINK_PROG) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
90
testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
91
$(LINK_PROG) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
93
testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
94
$(LINK_PROG) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
96
testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
97
$(LINK_PROG) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
99
TESTS = testutil.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
100
testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
101
testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
102
testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
103
testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
104
testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
105
testenv.lo testprocmutex.lo testrand2.lo testfnmatch.lo \
106
testatomic.lo testflock.lo testshm.lo testsock.lo testglobalmutex.lo \
107
teststrnatcmp.lo testfilecopy.lo testtemp.lo testlfs.lo
109
testall@EXEEXT@: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
110
readchild@EXEEXT@ abts.lo proc_child@EXEEXT@ \
111
tryread@EXEEXT@ sockchild@EXEEXT@ globalmutexchild@EXEEXT@ \
113
$(LINK_PROG) $(TESTS) abts.lo $(LOCAL_LIBS) $(ALL_LIBS)