diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-15 15:12:08 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-15 21:40:37 -0700 |
commit | 5704de985cff1d40359ecd15211cece0fbe79067 (patch) | |
tree | 5c172a6ea91716f4f8023e58d580e4b08fbd7fc1 /GNUmakefile | |
parent | f753128b22b61d4f85a74ba2694b8f9a576fc238 (diff) |
Add tests to libmisc
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 1e77534..dc94e46 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -58,7 +58,7 @@ generate-clean: rm -f -- $(generate/files) .PHONY: generate-clean -# `build` ###################################################################### +# `build` and `check` ########################################################## platforms := $(shell sed -nE 's/if *\(PICO_PLATFORM STREQUAL "(.*)"\)/\1/p' cmd/*/CMakeLists.txt) @@ -72,6 +72,14 @@ $(foreach p,$(platforms),build/$p/build): build/%/build: build/%/Makefile genera $(MAKE) -C $(<D) .PHONY: $(foreach p,$(platforms),build/$p/build) +check: build + $(MAKE) -j1 -k $(foreach p,$(platforms),build/$p/check) +.PHONY: check + +$(foreach p,$(platforms),build/$p/check): build/%/check: build/%/Makefile + CTEST_OUTPUT_ON_FAILURE=1 $(MAKE) -C $(<D) test +.PHONY: $(foreach p,$(platforms),build/$p/check) + # `lint` and `format` ########################################################## -include build-aux/sources.mk |