aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 12:49:14 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-27 17:59:52 +0200
commite19acf196c518fd7f8fe39a7f64f3febb35b6dfb (patch)
tree99164db2ccd0648fb747f52f5b3b351b538b90e7 /Makefile
parentagain, reorganize test targets (diff)
downloadcimple-e19acf196c518fd7f8fe39a7f64f3febb35b6dfb.tar.gz
cimple-e19acf196c518fd7f8fe39a7f64f3febb35b6dfb.zip
test: add a target to generate an HTML report
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 184060c..57e25cc 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ src_dir := $(abspath .)
build_dir := $(src_dir)/build
cmake_dir := $(build_dir)/cmake
install_dir := $(build_dir)/install
+test_report_dir := $(build_dir)/test_report
coverage_dir := $(build_dir)/coverage
flame_graphs_dir := $(build_dir)/flame_graphs
@@ -41,6 +42,7 @@ build:
-D 'CMAKE_INSTALL_PREFIX=$(call escape,$(INSTALL_PREFIX))' \
-D 'DEFAULT_HOST=$(call escape,$(DEFAULT_HOST))' \
-D 'DEFAULT_PORT=$(call escape,$(DEFAULT_PORT))' \
+ -D 'TEST_REPORT_DIR=$(call escape,$(test_report_dir))' \
-D 'COVERAGE=$(call escape,$(COVERAGE))' \
-D 'FLAME_GRAPHS_DIR=$(call escape,$(flame_graphs_dir))' \
-S '$(call escape,$(src_dir))' \
@@ -63,6 +65,14 @@ test:
ctest --test-dir '$(call escape,$(cmake_dir))' \
--verbose --tests-regex python_tests_default
+.PHONY: test/report
+test/report:
+ @echo -----------------------------------------------------------------
+ @echo Running HTML test report
+ @echo -----------------------------------------------------------------
+ ctest --test-dir '$(call escape,$(cmake_dir))' \
+ --verbose --tests-regex python_tests_report
+
# A subset of tests, excluding long-running stress tests.
.PHONY: test/sanity
test/sanity: