Commit d07f3337 authored by Petr Špaček's avatar Petr Špaček

tests: make check V=1 prints log from failed test runs

parent cba5e77a
......@@ -52,8 +52,13 @@ keystore_pkcs11_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR='"$(libdir)"'
check-compile: $(check_PROGRAMS)
AM_V_RUNTESTS = $(am__v_RUNTESTS_@AM_V@)
am__v_RUNTESTS_ = $(am__v_RUNTESTS_@AM_DEFAULT_V@)
am__v_RUNTESTS_0 =
am__v_RUNTESTS_1 = RET=$$?; if [ "$$RET" != "0" ]; then cat "$(builddir)/runtests.log"; exit $$RET; fi
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests -s $(srcdir) \
-b $(builddir) \
-L $(builddir)/runtests.log \
$(check_PROGRAMS)
$(check_PROGRAMS); \
$(AM_V_RUNTESTS)
......@@ -26,11 +26,18 @@ tests/unittests:
check-compile: $(check_SCRIPTS) $(check_PROGRAMS)
AM_V_RUNTESTS = $(am__v_RUNTESTS_@AM_V@)
am__v_RUNTESTS_ = $(am__v_RUNTESTS_@AM_DEFAULT_V@)
am__v_RUNTESTS_0 =
am__v_RUNTESTS_1 = RET=$$?; if [ "$$RET" != "0" ]; then cat "$(top_builddir)/src/zscanner/tests/runtests.log"; exit $$RET; fi
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests \
-s $(top_srcdir)/src/zscanner/tests \
-b $(top_builddir)/src/zscanner/tests \
$(top_builddir)/src/zscanner/tests/unittests
-L $(top_builddir)/src/zscanner/tests/runtests.log \
$(top_builddir)/src/zscanner/tests/unittests; \
$(AM_V_RUNTESTS)
EXTRA_DIST += \
tests/unittests.in \
......
......@@ -106,11 +106,16 @@ include $(srcdir)/semantic_check_data/Makefile.inc
check-compile: $(check_PROGRAMS) $(check_SCRIPTS)
AM_V_RUNTESTS = $(am__v_RUNTESTS_@AM_V@)
am__v_RUNTESTS_ = $(am__v_RUNTESTS_@AM_DEFAULT_V@)
am__v_RUNTESTS_0 =
am__v_RUNTESTS_1 = RET=$$?; if [ "$$RET" != "0" ]; then cat "$(builddir)/runtests.log"; exit $$RET; fi
check-local: $(check_PROGRAMS) $(check_SCRIPTS)
$(top_builddir)/libtap/runtests -s $(top_srcdir)/tests \
-b $(top_builddir)/tests \
-L $(top_builddir)/tests/runtests.log \
$(check_PROGRAMS) $(check_SCRIPTS)
$(top_builddir)/libtap/runtests -s $(srcdir) \
-b $(builddir) \
-L $(builddir)/runtests.log \
$(check_PROGRAMS) $(check_SCRIPTS); \
$(AM_V_RUNTESTS)
test_acl_SOURCES = test_acl.c test_conf.h
test_conf_SOURCES = test_conf.c test_conf.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment