diff options
-rw-r--r-- | Makefile.in | 11 | ||||
-rw-r--r-- | test/Makefile.in | 10 |
2 files changed, 12 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 7f069db9c..0bf9228ea 100644 --- a/Makefile.in +++ b/Makefile.in @@ -127,15 +127,8 @@ apr.exp: exports.c export_vars.h dox: doxygen $(top_srcdir)/docs/doxygen.conf -test: $(TARGET_LIB) - (cd test; make clean; make; \ - for prog in `find . -type f -perm -u+x -name "test*" -print`; do \ - ./$$prog; \ - if [ $$? -eq 255 ]; then \ - echo "$$prog failed"; \ - break; \ - fi \ - done ) +check: $(TARGET_LIB) + (cd test && $(MAKE) check) # DO NOT REMOVE docs: $(INCDIR)/*.h diff --git a/test/Makefile.in b/test/Makefile.in index d03dd6f7c..2ad52775c 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -59,6 +59,16 @@ CLEAN_TARGETS = testfile.tmp testdso@EXEEXT@ mod_test.slo INCDIR=../include INCLUDES=-I$(INCDIR) +all: $(PROGRAMS) $(NONPORTABLE) + +check: $(PROGRAMS) $(NONPORTABLE) + for prog in $(PROGRAMS) $(NONPORTABLE); do \ + ./$$prog; \ + if test $$i = 255; then \ + echo "$$prog failed"; \ + break; \ + fi \ + done testfile@EXEEXT@: testfile.lo $(LOCAL_LIBS) $(LINK) testfile.lo $(LOCAL_LIBS) $(ALL_LIBS) |