aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 23:02:37 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 23:02:37 +0200
commitfa79e14076f5e96142e404e758cf2cc94a6cda1b (patch)
treefbf41ba09ee163fb2e9420193c6cab2d48dad945 /Makefile
parentUpdate test-runner to display a tree for groups. (diff)
downloadcalp-fa79e14076f5e96142e404e758cf2cc94a6cda1b.tar.gz
calp-fa79e14076f5e96142e404e758cf2cc94a6cda1b.tar.xz
Improve test flags in makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
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/<<today>>/`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)