mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
Suppress showing failed test output by default
Provide option to show test output if requested.
This commit is contained in:
parent
2a057ac0d4
commit
4ef95dbda4
4
Makefile
4
Makefile
@ -126,7 +126,9 @@ $(TEST_TARGETS):
|
|||||||
if TC_SRCS="$(foreach T,$(TC_SRCS_$(subst check_,,$@)),../../$(T))" \
|
if TC_SRCS="$(foreach T,$(TC_SRCS_$(subst check_,,$@)),../../$(T))" \
|
||||||
$(QTEST) -bindirs .:.. -datadir ../qtest -covdir ..; then \
|
$(QTEST) -bindirs .:.. -datadir ../qtest -covdir ..; then \
|
||||||
true; \
|
true; \
|
||||||
else \
|
elif test "$(SHOW_FAILED_TEST_OUTPUT)" = "1"; then \
|
||||||
cat -v qtest.log; \
|
cat -v qtest.log; \
|
||||||
false; \
|
false; \
|
||||||
|
else \
|
||||||
|
false; \
|
||||||
fi)
|
fi)
|
||||||
|
11
configure.ac
11
configure.ac
@ -212,6 +212,17 @@ AC_ARG_ENABLE(test-compare-images,
|
|||||||
fi],
|
fi],
|
||||||
[SKIP_TEST_COMPARE_IMAGES=0])
|
[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,
|
AC_ARG_WITH(docbook-xsl,
|
||||||
AS_HELP_STRING([--with-docbook-xsl=DIR],
|
AS_HELP_STRING([--with-docbook-xsl=DIR],
|
||||||
[location of docbook 4.x xml stylesheets]),
|
[location of docbook 4.x xml stylesheets]),
|
||||||
|
Loading…
Reference in New Issue
Block a user