aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_riscv64
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_riscv64
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_riscv64')
-rw-r--r--tests/simple_riscv64/source.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/simple_riscv64/source.mk b/tests/simple_riscv64/source.mk
index fbc541d..e61d511 100644
--- a/tests/simple_riscv64/source.mk
+++ b/tests/simple_riscv64/source.mk
@@ -1,6 +1,9 @@
-RV64_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_riscv64/sim.c"
+SIMPLE_RV64 := tests/simple_riscv64
+SIMPLE_RV64_SIM := $(SIMPLE_RV64)/sim.c
-TEST_PROGS += build/tests/simple_riscv64/sim
+TESTS += $(SIMPLE_RV64)/sim
-build/tests/simple_riscv64/sim: $(RV64_TEST_OBJ) $(TEST_OBJS) $(OBJS)
- $(COMPILE) $(RV64_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+$(SIMPLE_RV64)/sim: $(SIMPLE_RV64_SIM) libgran.a
+ mkdir -p build/$(SIMPLE_RV64)
+ $(COMPILE_TEST) $(SIMPLE_RV64_SIM) libgran.a -o build/$@
+ ./scripts/gen-report -d build $@