aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 12:24:49 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 12:24:49 +0200
commit6b74dab3c0ebe13390ca0e15825b6dd98a0f8240 (patch)
tree0e00807d0f8199d2a89183e8cfa816901d395ad2 /Makefile
parentMakefile: reorder targets, add comments (diff)
downloadcimple-6b74dab3c0ebe13390ca0e15825b6dd98a0f8240.tar.gz
cimple-6b74dab3c0ebe13390ca0e15825b6dd98a0f8240.zip
again, reorganize test targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 16 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 6c80198..184060c 100644
--- a/Makefile
+++ b/Makefile
@@ -55,31 +55,24 @@ release: build
install: build
cmake --install '$(call escape,$(cmake_dir))'
-.PHONY: test/sanity
-test/sanity:
+.PHONY: test
+test:
@echo -----------------------------------------------------------------
- @echo Running sanity tests
+ @echo Running tests
@echo -----------------------------------------------------------------
ctest --test-dir '$(call escape,$(cmake_dir))' \
- --verbose --tests-regex python_tests_sanity
+ --verbose --tests-regex python_tests_default
-.PHONY: test/stress
-test/stress:
+# A subset of tests, excluding long-running stress tests.
+.PHONY: test/sanity
+test/sanity:
@echo -----------------------------------------------------------------
- @echo Running stress tests
+ @echo Running sanity tests
@echo -----------------------------------------------------------------
ctest --test-dir '$(call escape,$(cmake_dir))' \
- --verbose --tests-regex python_tests_stress
-
-# Run the basic "sanity" tests & the stress tests by default.
-.PHONY: test
-test: test/sanity test/stress
-
-# When building for a Docker image for a different platform, exclude stress
-# tests: they simply take way too long.
-.PHONY: test/docker
-test/docker: test/sanity
+ --verbose --tests-regex python_tests_sanity
+# Same, but run under Valgrind.
.PHONY: test/valgrind
test/valgrind:
@echo -----------------------------------------------------------------
@@ -88,11 +81,16 @@ test/valgrind:
ctest --test-dir '$(call escape,$(cmake_dir))' \
--verbose --tests-regex python_tests_valgrind
+# When building a Docker image for a different platform, exclude stress tests:
+# they simply take way too long.
+.PHONY: test/docker
+test/docker: test/sanity
+
+# Force a rebuild for a coverage report, since it depends on GCC debug data.
.PHONY: coverage
coverage: COMPILER := gcc
coverage: CONFIGURATION := Debug
coverage: COVERAGE := 1
-# Force a rebuild for a coverage report, since it depends on the GCC debug data.
coverage: clean build test
@echo -----------------------------------------------------------------
@echo Generating code coverage report