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
16 testlockperf@EXEEXT@ \
18 testmutexscope@EXEEXT@ \
21 STDTEST_NONPORTABLE = \
23 testglobalmutex@EXEEXT@
25 OTHER_PROGRAMS = client@EXEEXT@ sendfile@EXEEXT@ \
28 PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
32 # bring in rules.mk for standard functionality
35 LOCAL_LIBS=../lib@APR_LIBNAME@.la
37 CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
43 check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
44 for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
46 if test $$? = 255; then \
47 echo "$$prog failed"; \
52 testflock@EXEEXT@: testflock.lo $(LOCAL_LIBS)
53 $(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
55 occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
56 $(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
58 readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
59 $(LINK) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
61 proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
62 $(LINK) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
64 # FIXME: -prefer-pic is only supported with libtool-1.4+
65 mod_test.slo: $(srcdir)/mod_test.c
66 $(LIBTOOL) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
68 mod_test.la: mod_test.slo $(LOCAL_LIBS)
69 $(LIBTOOL) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
71 libmod_test.la: mod_test.slo $(LOCAL_LIBS)
72 $(LIBTOOL) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
74 testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
75 $(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
77 testsock@EXEEXT@: testsock.lo client@EXEEXT@ server@EXEEXT@ sendfile@EXEEXT@ $(LOCAL_LIBS)
78 $(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
80 client@EXEEXT@: client.lo $(LOCAL_LIBS)
81 $(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
83 server@EXEEXT@: server.lo $(LOCAL_LIBS)
84 $(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
86 sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
87 $(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
89 testshm@EXEEXT@: testshm.lo $(LOCAL_LIBS) testshmproducer@EXEEXT@ testshmconsumer@EXEEXT@
90 $(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
92 testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
93 $(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
95 testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
96 $(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
98 testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
99 $(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
101 testglobalmutex@EXEEXT@: testglobalmutex.lo $(LOCAL_LIBS)
102 $(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
104 testatomic@EXEEXT@: testatomic.lo $(LOCAL_LIBS)
105 $(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
107 testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
108 $(LINK) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
110 TESTS = testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
111 testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
112 testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
113 testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
114 testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
115 testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
116 testenv.lo testprocmutex.lo
118 testall: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
119 readchild@EXEEXT@ CuTest.lo proc_child@EXEEXT@ $(LOCAL_LIBS)
120 $(LINK) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)