diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-06-24 20:59:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-06-24 21:20:01 +0200 |
commit | 4ef95dbda440e0aeffa26df40cc33d001e77f4c5 (patch) | |
tree | af688e3cc50b7f0485763b9a5cddc877171f0080 | |
parent | 2a057ac0d4053d2306f48bc9e89b0dcb1959b9da (diff) | |
download | qpdf-4ef95dbda440e0aeffa26df40cc33d001e77f4c5.tar.zst |
Suppress showing failed test output by default
Provide option to show test output if requested.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | configure.ac | 11 |
2 files changed, 14 insertions, 1 deletions
@@ -126,7 +126,9 @@ $(TEST_TARGETS): if TC_SRCS="$(foreach T,$(TC_SRCS_$(subst check_,,$@)),../../$(T))" \ $(QTEST) -bindirs .:.. -datadir ../qtest -covdir ..; then \ true; \ - else \ + elif test "$(SHOW_FAILED_TEST_OUTPUT)" = "1"; then \ cat -v qtest.log; \ false; \ + else \ + false; \ fi) diff --git a/configure.ac b/configure.ac index c1cf187c..21481311 100644 --- a/configure.ac +++ b/configure.ac @@ -212,6 +212,17 @@ AC_ARG_ENABLE(test-compare-images, fi], [SKIP_TEST_COMPARE_IMAGES=0]) +AC_SUBST(SHOW_FAILED_TEST_OUTPUT) +AC_ARG_ENABLE(show-failed-test-output, + AS_HELP_STRING([--enable-show-failed-test-output], + [if specified, write failed test output to the console; useful for building on build servers where you can't easily open the test output files]), + [if test "$enableval" = "no"; then + SHOW_FAILED_TEST_OUTPUT=0 + else + SHOW_FAILED_TEST_OUTPUT=1 + fi], + [SHOW_FAILED_TEST_OUTPUT=0]) + AC_ARG_WITH(docbook-xsl, AS_HELP_STRING([--with-docbook-xsl=DIR], [location of docbook 4.x xml stylesheets]), |