diff options
-rw-r--r-- | config/conclude.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/config/conclude.in b/config/conclude.in index 8965987..bba94a1 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -19,6 +19,8 @@ TAGS: $(LIB_SRC) -etags $(LIB_SRC) ## Runs each test in order, passing $(TEST_FLAGS) to the program. +## Since tests are done in a shell loop, "make -i" does apply inside it. +## Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. tests: $(TEST_PROGS) $(LIB) check test _test: tests @for test in $(TEST_PROGS) dummy; do \ @@ -28,10 +30,12 @@ check test _test: tests echo "============================"; \ PATH=".:$$PATH" srcdir=$(srcdir) \ $(RUNTEST) $$test $(TEST_FLAGS) || \ - exit 1; \ + (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ + break; \ echo ""; \ fi; \ - done; + done; \ + test $$test = dummy || false @for test in $(TEST_SCRIPTS) dummy; do \ if test $$test != dummy; then \ echo "============================"; \ @@ -40,10 +44,12 @@ check test _test: tests RUNSERIAL="$(RUNSERIAL)" RUNPARALLEL="$(RUNPARALLEL)" \ srcdir=$(srcdir) \ /bin/sh $$test $(TEST_FLAGS) || \ - exit 1; \ + (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \ + break; \ echo ""; \ fi; \ - done; + done; \ + test $$test = dummy || false ## Make installation directories directories if they don't exist. $(libdir): |