From 71bb4e8744e733477b9584443adbe8f920458be1 Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Mon, 20 Apr 2026 10:52:39 +0100 Subject: refinement --- Makefile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'Makefile') 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 ` directly when you want quiet. +# expose Q. Use `TEST_QUIET=1 $(CSI) $(CSI_FLAGS) -s ` when you want quiet. filter: @if [ -z "$(FILE)" ]; then echo "usage: make filter FILE= [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) -- cgit v1.2.3