chiark / gitweb /
test-common: Cope if argv0 starts with ./
[secnet.git] / test-common.make.in
index 8864bf504995c6df6fa311a985bc0b4e70a2d448..d862480cae7df6d4883078db14f27613ccaaa97f 100644 (file)
@@ -21,8 +21,9 @@ d-%/ok: $(srcdir)/t-% $(DEPS)
        @rm -rf d-$*; mkdir d-$*
        @export SECNET_TEST_BUILDDIR=$(topbuilddir); \
         cd $(topdir) && \
-        $(TESTDIR)/t-$* >$(topbuilddir)/$(TESTDIR)/d-$*/log 2>&1
-       @printf "$* "
+        $(TESTDIR)/t-$* >$(topbuilddir)/$(TESTDIR)/d-$*/log 2>&1 \
+        || { cat $(topbuilddir)/$(TESTDIR)/d-$*/log >&2; false; }
+       @printf "$(TESTDIR)/$* "
        @touch $@
 
 clean: