blob: bb66cf89b41e447222205389e944dea7f7c2cd16 (
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
|
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 = \
testflock \
testsock \
testlockperf \
testatomic \
testmutexscope \
testall
STDTEST_NONPORTABLE = \
testshm \
testglobalmutex
OTHER_PROGRAMS = client sendfile \
server
PROGRAMS = $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE) $(OTHER_PROGRAMS)
TARGETS = $(PROGRAMS)
# bring in rules.mk for standard functionality
include /bottlenecks/rubbos/app/httpd-2.0.64/srclib/apr/build/apr_rules.mk
LOCAL_LIBS=../libapr-${APR_MAJOR_VERSION}.la
CLEAN_TARGETS = testfile.tmp mod_test.slo proc_child occhild \
readchild
INCDIR=../include
INCLUDES=-I$(INCDIR)
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
./$$prog; \
if test $$? = 255; then \
echo "$$prog failed"; \
break; \
fi; \
done
testflock: testflock.lo $(LOCAL_LIBS)
$(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
occhild: occhild.lo $(LOCAL_LIBS)
$(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
readchild: readchild.lo $(LOCAL_LIBS)
$(LINK) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
proc_child: proc_child.lo $(LOCAL_LIBS)
$(LINK) 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) --mode=compile $(COMPILE) -prefer-pic -c $(srcdir)/mod_test.c && touch $@
mod_test.la: mod_test.slo $(LOCAL_LIBS)
$(LIBTOOL) --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) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
testlockperf: testlockperf.lo $(LOCAL_LIBS)
$(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
testsock: testsock.lo client server sendfile $(LOCAL_LIBS)
$(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
client: client.lo $(LOCAL_LIBS)
$(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
server: server.lo $(LOCAL_LIBS)
$(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
sendfile: sendfile.lo $(LOCAL_LIBS)
$(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshm: testshm.lo $(LOCAL_LIBS) testshmproducer testshmconsumer
$(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmproducer: testshmproducer.lo $(LOCAL_LIBS)
$(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmconsumer: testshmconsumer.lo $(LOCAL_LIBS)
$(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testprocmutex: testprocmutex.lo $(LOCAL_LIBS)
$(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
testglobalmutex: testglobalmutex.lo $(LOCAL_LIBS)
$(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
testatomic: testatomic.lo $(LOCAL_LIBS)
$(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
testmutexscope: testmutexscope.lo $(LOCAL_LIBS)
$(LINK) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
TESTS = testall.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
testall: $(TESTS) mod_test.la libmod_test.la occhild \
readchild CuTest.lo proc_child $(LOCAL_LIBS)
$(LINK) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)
# DO NOT REMOVE
|