aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-21 22:04:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-21 22:04:37 -0400
commit2f7105d87f11186b99ecd4bd653420e8e215db76 (patch)
treecfd79c303612aa9fe409cd0ef4dd3c6d18108167
parent30f3c6dcab1d2f696a3b9b4658957cf527587a20 (diff)
Move test results to test/results/*.tm.testresult
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7c8f502b..157a3bce 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ CFLAGS_PLACEHOLDER="$$(echo -e '\033[2m<flags...>\033[m')"
LDLIBS=-lgc -lcord -lm -lunistring -lgmp -ldl
COMPILER_OBJS=$(patsubst %.c,%.o,$(wildcard src/*.c))
STDLIB_OBJS=$(patsubst %.c,%.o,$(wildcard src/stdlib/*.c))
-TESTS=$(patsubst %.tm,%.tm.testresult,$(wildcard test/*.tm))
+TESTS=$(patsubst test/%.tm,test/results/%.tm.testresult,$(wildcard test/*.tm))
all: build/libtomo.so build/tomo
@@ -57,7 +57,8 @@ tags:
%: %.tm
tomo -e $<
-%.tm.testresult: %.tm build/tomo
+test/results/%.tm.testresult: test/%.tm build/tomo
+ @mkdir -p test/results
@printf '\x1b[33;1;4m%s\x1b[m\n' $<
@set -o pipefail; \
if ! VERBOSE=0 COLOR=1 LC_ALL=C CC=gcc ./build/tomo -O 1 $< 2>&1 | tee $@; then \