blob: 99080815c87aa8b5f71a24d2d64cc842ebfce3c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
srcdir = @srcdir@
VPATH = @srcdir@
# PROGRAMS includes all test programs built on this platform.
# STDTEST_PORTABLE
# test programs invoked via standard user interface, run on all platforms
# STDTEST_NONPORTABLE
# test programs invoked via standard user interface, not portable
# OTHER_PROGRAMS
# programs such as sendfile, that have to be invoked in a special sequence
# or with special parameters
STDTEST_PORTABLE = \
testlockperf@EXEEXT@ \
testmutexscope@EXEEXT@ \
testall@EXEEXT@
OTHER_PROGRAMS = \
sendfile@EXEEXT@ \
echod@EXEEXT@ \
sockperf@EXEEXT@
TESTALL_COMPONENTS = \
globalmutexchild@EXEEXT@ \
libmod_test.la \
mod_test.la \
occhild@EXEEXT@ \
proc_child@EXEEXT@ \
readchild@EXEEXT@ \
sockchild@EXEEXT@ \
testshmproducer@EXEEXT@ \
testshmconsumer@EXEEXT@ \
tryread@EXEEXT@
PROGRAMS = $(TESTALL_COMPONENTS) $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
TARGETS = $(PROGRAMS)
# bring in rules.mk for standard functionality
@INCLUDE_RULES@
LOCAL_LIBS=../lib@APR_LIBNAME@.la
CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child@EXEEXT@ occhild@EXEEXT@ \
readchild@EXEEXT@ tryread@EXEEXT@ sockchild@EXEEXT@ \
globalmutexchild@EXEEXT@ lfstests/*.bin \
data/test*.txt data/test*.dat data/apr.testshm.shm
CLEAN_SUBDIRS = internal
INCDIR=../include
INCLUDES=-I$(INCDIR) -I$(srcdir)/../include
# link programs using -no-install to get real executables not
# libtool wrapper scripts which link an executable when first run.
LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
check: $(TESTALL_COMPONENTS) $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
teststatus=0; \
progfailed=""; \
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
./$$prog; \
status=$$?; \
if test $$status != 0; then \
teststatus=$$status; \
progfailed="$$progfailed $$prog"; \
fi; \
done; \
if test $$teststatus != 0; then \
echo "Programs failed:$$progfailed"; \
fi; \
exit $$teststatus
occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
$(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
sockchild@EXEEXT@: sockchild.lo $(LOCAL_LIBS)
$(LINK_PROG) sockchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
$(LINK_PROG) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
globalmutexchild@EXEEXT@: globalmutexchild.lo $(LOCAL_LIBS)
$(LINK_PROG) globalmutexchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
tryread@EXEEXT@: tryread.lo $(LOCAL_LIBS)
$(LINK_PROG) tryread.lo $(LOCAL_LIBS) $(ALL_LIBS)
proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
$(LINK_PROG) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
# FIXME: -prefer-pic is only supported with libtool-1.4+
mod_test.slo: $(srcdir)/mod_test.c
$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
mod_test.la: mod_test.slo $(LOCAL_LIBS)
$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version -module mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
libmod_test.la: mod_test.slo $(LOCAL_LIBS)
$(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(LOCAL_LIBS) $(ALL_LIBS)
testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
$(LINK_PROG) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
$(LINK_PROG) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
$(LINK_PROG) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
$(LINK_PROG) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
$(LINK_PROG) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
$(LINK_PROG) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
echod@EXEEXT@: echod.lo $(LOCAL_LIBS)
$(LINK_PROG) echod.lo $(LOCAL_LIBS) $(ALL_LIBS)
sockperf@EXEEXT@: sockperf.lo $(LOCAL_LIBS)
$(LINK_PROG) sockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
TESTS = testutil.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
testfmt.lo testfile.lo testdir.lo testfileinfo.lo testrand.lo \
testdso.lo testoc.lo testdup.lo testsockets.lo testproc.lo \
testpoll.lo testlock.lo testsockopt.lo testpipe.lo testthread.lo \
testhash.lo testargs.lo testnames.lo testuser.lo testpath.lo \
testenv.lo testprocmutex.lo testfnmatch.lo testatomic.lo testflock.lo \
testshm.lo testsock.lo testglobalmutex.lo teststrnatcmp.lo testfilecopy.lo \
testtemp.lo testlfs.lo testcond.lo
testall@EXEEXT@: $(TESTS) abts.lo
$(LINK_PROG) $(TESTS) abts.lo $(LOCAL_LIBS) $(ALL_LIBS)
# DO NOT REMOVE
|