aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_ideal_alloc/source.mk
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-10 21:37:15 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-10 21:37:15 +0300
commit82c77b22605d691884be4c4e1e6bae8d66598d02 (patch)
tree040a9e97c12abc14b2ecda6bd16662b6908c083e /tests/simple_ideal_alloc/source.mk
parent489beadf61d05f40dd4ac40e4e5290502f7ad078 (diff)
downloadgran-82c77b22605d691884be4c4e1e6bae8d66598d02.tar.gz
gran-82c77b22605d691884be4c4e1e6bae8d66598d02.zip
make tests actually useful
+ Apparently quite a few components are currently broken, didn't even remember
Diffstat (limited to 'tests/simple_ideal_alloc/source.mk')
-rw-r--r--tests/simple_ideal_alloc/source.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/simple_ideal_alloc/source.mk b/tests/simple_ideal_alloc/source.mk
index f797cdd..450c866 100644
--- a/tests/simple_ideal_alloc/source.mk
+++ b/tests/simple_ideal_alloc/source.mk
@@ -1,7 +1,9 @@
-ALLOC_TB_OBJ != ./scripts/gen-deps --sources "tests/simple_ideal_alloc/testbench.c"
-IDEAL_ALLOC_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_ideal_alloc/sim.c"
+SIMPLE_IDEAL_ALLOC := tests/simple_ideal_alloc
+SIMPLE_IDEAL_ALLOC_SIM := $(SIMPLE_IDEAL_ALLOC)/testbench.c $(SIMPLE_IDEAL_ALLOC)/sim.c
-TEST_PROGS += build/tests/simple_ideal_alloc/sim
+TESTS += $(SIMPLE_IDEAL_ALLOC)/sim
-build/tests/simple_ideal_alloc/sim: $(ALLOC_TB_OBJ) $(IDEAL_ALLOC_TEST_OBJ) $(OBJS)
- $(COMPILE) $(ALLOC_TB_OBJ) $(IDEAL_ALLOC_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+$(SIMPLE_IDEAL_ALLOC)/sim: $(SIMPLE_IDEAL_ALLOC_SIM) libgran.a
+ mkdir -p build/$(SIMPLE_IDEAL_ALLOC)
+ $(COMPILE_TEST) $(SIMPLE_IDEAL_ALLOC_SIM) libgran.a -o build/$@
+ ./scripts/gen-report -d build $@