From fa79e14076f5e96142e404e758cf2cc94a6cda1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 12 Jun 2022 23:02:37 +0200 Subject: Improve test flags in makefile. --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cfc45336..ed9e9185 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,11 @@ GUILE_C_FLAGS = -Lmodule \ PO_FILES = $(shell find po -type f -name \*.po -and -not -name new.po -and -not -name .\*) LOCALIZATIONS = $(PO_FILES:po/%.po=localization/%/LC_MESSAGES/calp.mo) +# Limit test to these files +LIMIT_FILES=$(LIMIT:%=--only %) +# Skip these files when testing +SKIP=--skip $(PWD)/tests/test/web-server.scm + all: go_files README static $(LOCALIZATIONS) $(MAKE) -C doc/ref @@ -72,7 +77,7 @@ README: README.in ./main text < README.in | sed "s/<>/`date -I`/" > README lcov.info: $(GO_FILES) - env DEBUG=0 tests/run-tests.scm --coverage=$@ + env DEBUG=0 tests/run-tests.scm --coverage=$@ $(if $(VERBOSE),--verbose) $(SKIP) $(LIMIT_FILES) test: coverage @@ -84,8 +89,5 @@ GENHTML_FLAGS=--show-details \ coverage: lcov.info genhtml $(GENHTML_FLAGS) --output-directory $@ $< - -LIMIT_FILES=$(LIMIT:%=--only %) - check: - tests/run-tests.scm $(if $(VERBOSE),--verbose) --skip $(PWD)/tests/test/web-server.scm $(LIMIT_FILES) + tests/run-tests.scm $(if $(VERBOSE),--verbose) $(SKIP) $(LIMIT_FILES) -- cgit v1.2.3