summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 16:06:35 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-03-22 16:17:55 -0600
commit8d3991d6cca1a57ef5c48460313a07f709c89248 (patch)
tree0e2eabd84834c086364bdb707c1254fe71bfa072 /GNUmakefile
parent2774e918b6ced670f80036532052189d568e5c5c (diff)
Enable running tests in parallel
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 1311b6e..bae7357 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -74,6 +74,9 @@ generate-clean:
platforms := rp2040 host # $(shell sed -nE 's/if *\(PICO_PLATFORM STREQUAL "(.*)"\)/\1/p' cmd/*/CMakeLists.txt)
build_types = Debug Release RelWithDebInfo MinSizeRel
+export CTEST_PARALLEL_LEVEL = 0
+export CTEST_OUTPUT_ON_FAILURE = 1
+
build: $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/build))
.PHONY: build
@@ -89,7 +92,7 @@ check: build
.PHONY: check
$(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/check)): build/%/check: build/%/Makefile
- CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C $(<D) test
+ $(MAKE) -C $(<D) test
.PHONY: $(foreach t,$(build_types),$(foreach p,$(platforms),build/$p-$t/check))
# `lint` and `format` ##########################################################