diff --git a/tests/Makefile b/tests/Makefile index 6be6f330fb..25d9a73a8a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,6 +6,9 @@ CFLAGS ?= -O2 WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral LDFLAGS ?= +# Set this to -v to see the details of failing test cases +TEST_FLAGS ?= $(if $(filter-out 0 OFF Off off NO No no FALSE False false N n,$(CTEST_OUTPUT_ON_FAILURE)),-v,) + # Include public header files from ../include, test-specific header files # from ./include, and private header files (used by some invasive tests) # from ../library. @@ -156,7 +159,7 @@ endif # Test suites caught by SKIP_TEST_SUITES are built but not executed. check: $(BINARIES) - perl scripts/run-test-suites.pl --skip=$(SKIP_TEST_SUITES) + perl scripts/run-test-suites.pl $(TEST_FLAGS) --skip=$(SKIP_TEST_SUITES) test: check diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index fa6791c8a7..6023700d6e 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -168,7 +168,7 @@ pre_initialize_variables () { export MAKEFLAGS="-j" fi - # Include more verbose output for failing tests run by CMake + # Include more verbose output for failing tests run by CMake or make export CTEST_OUTPUT_ON_FAILURE=1 # CFLAGS and LDFLAGS for Asan builds that don't use CMake