From 82c77b22605d691884be4c4e1e6bae8d66598d02 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 10 Aug 2025 21:37:15 +0300 Subject: make tests actually useful + Apparently quite a few components are currently broken, didn't even remember --- tests/simple_ideal_alloc/source.mk | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests/simple_ideal_alloc/source.mk') 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 $@ -- cgit v1.3