Suppress showing failed test output by default

Provide option to show test output if requested.
This commit is contained in:
Jay Berkenbilt 2012-06-24 14:59:44 -04:00
parent 2a057ac0d4
commit 4ef95dbda4
2 changed files with 14 additions and 1 deletions

View File

@ -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)

View File

@ -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]),