summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 03:54:01 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 03:54:01 +0000
commitc824597da4a21033ceeda65b909470423519d643 (patch)
treeed9eacf164c62586fd2fe53ebce102b4adb94843 /Makefile.in
parent1b021cd6c580928f64bd648cd9535096df06e1bf (diff)
downloadlibapr-c824597da4a21033ceeda65b909470423519d643.tar.gz
Add a make target for test. This enters the test directory, does a make
clean, and a make. Then it tries to run each test program. This doesn't work yet, because some of the test programs require user input. I will be working on this problem so that 'make test' can correctly tell somebody if APR is working properly on their platform. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 20a0c5a08..94f968a1f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -105,6 +105,17 @@ exports:
docs:
./helpers/scandoc -i./helpers/default.pl -p./docs/ ./include/*.h
+
+test: $(LIBAPR)
+ (cd test; make clean; make; \
+ cd test; \
+ for prog in `find . -type f -perm +u+x -name "test*" -print`; do \
+ ./$$prog; \
+ if [ $$? -eq 255 ]; then \
+ echo "$$prog failed"; \
+ break; \
+ fi \
+ done )
# DO NOT REMOVE
docs: $(INCDIR)/*.h