rbb 00/12/02 19:54:01
Modified: . Makefile.in
Log:
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.
Revision Changes Path
1.31 +11 -0 apr/Makefile.in
Index: Makefile.in
===================================================================
RCS file: /home/cvs/apr/Makefile.in,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- Makefile.in 2000/12/01 15:45:23 1.30
+++ Makefile.in 2000/12/03 03:54:01 1.31
@@ -105,6 +105,17 @@
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