From 354aec239f457cdd708ee5a5f612ccaf436a25b3 Mon Sep 17 00:00:00 2001 From: hsaturn Date: Mon, 31 Oct 2022 02:12:13 +0100 Subject: [PATCH] [tests] Re-added debug mode in tests The EXTRA_FLAGS needs some clean before running tests. This commit allows to compile twice for this situation, but it is not perfect because EXTRA_CFLAGS can still cause some problems. The tests Makefile should be able to detect this and to group builds and tests with each own EXTRA flags. --- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 3bd8496..3457bb4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -11,7 +11,9 @@ debugtest: $(MAKE) -C debug-mode -j; \ debug-mode/debug-tests.out -runtests: clean tests +runtests: debugtest + $(MAKE) clean + $(MAKE) tests set -e; \ for i in *-tests/Makefile; do \ echo '==== Running:' $$(dirname $$i); \