aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-20 10:52:39 +0100
committerGene Pasquet <dev@etenil.net>2026-04-20 10:52:39 +0100
commit71bb4e8744e733477b9584443adbe8f920458be1 (patch)
treeef0d688400bd56decd2c5fd19421076f1c608859 /Makefile
parente0683e0463ea5664f846154bf0478ff0712e0e71 (diff)
refinement
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 17 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 4bd284a..ba0ce31 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
.DEFAULT_GOAL := engine
+CSI ?= csi
+CSI_FLAGS := -I $(CURDIR) -I $(CURDIR)/bin
+
# Canonical release string for the tree — keep in sync with downstroke.egg and
# README v… markers (see bump-version).
VERSION := 1.0.0rc1
@@ -63,18 +66,18 @@ clean:
test:
@echo "Running unit tests..."
- @csi -s tests/entity-test.scm
- @csi -s tests/world-test.scm
- @csi -s tests/tilemap-test.scm
- @csi -s tests/physics-test.scm
- @csi -s tests/input-test.scm
- @csi -s tests/renderer-test.scm
- @csi -s tests/assets-test.scm
- @csi -s tests/engine-test.scm
- @csi -s tests/animation-test.scm
- @csi -s tests/prefabs-test.scm
- @csi -s tests/scene-loader-test.scm
- @csi -s tests/tween-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/entity-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/world-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/tilemap-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/physics-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/input-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/renderer-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/assets-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/engine-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/animation-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/prefabs-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/scene-loader-test.scm
+ @$(CSI) $(CSI_FLAGS) -s tests/tween-test.scm
# Run a single test file with optional name/group filtering (pytest -k style).
# make filter FILE=tests/physics-test.scm # whole file
@@ -82,10 +85,10 @@ test:
# make filter FILE=tests/physics-test.scm G=apply # groups matching regex
# Note: combining K/G with TEST_QUIET=1 hits a known bug in the `test` egg
# (modulo error in summary timing), so this target intentionally doesn't
-# expose Q. Use `TEST_QUIET=1 csi -s <file>` directly when you want quiet.
+# expose Q. Use `TEST_QUIET=1 $(CSI) $(CSI_FLAGS) -s <file>` when you want quiet.
filter:
@if [ -z "$(FILE)" ]; then echo "usage: make filter FILE=<test.scm> [K=name-regex] [G=group-regex]"; exit 2; fi
- @$(if $(K),TEST_FILTER='$(K)') $(if $(G),TEST_GROUP_FILTER='$(G)') csi -s $(FILE)
+ @$(if $(K),TEST_FILTER='$(K)') $(if $(G),TEST_GROUP_FILTER='$(G)') $(CSI) $(CSI_FLAGS) -s $(FILE)
demos: engine $(DEMO_BINS)