aboutsummaryrefslogtreecommitdiff
path: root/tests/simple_uart
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_uart
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_uart')
-rw-r--r--tests/simple_uart/source.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/simple_uart/source.mk b/tests/simple_uart/source.mk
index a42a447..70f26a7 100644
--- a/tests/simple_uart/source.mk
+++ b/tests/simple_uart/source.mk
@@ -1,6 +1,8 @@
-UART_TEST_OBJ != ./scripts/gen-deps --sources "tests/simple_uart/sim.c"
+SIMPLE_UART := tests/simple_uart
+SIMPLE_UART_SIM := $(SIMPLE_UART)/sim.c
-TEST_PROGS += build/tests/simple_uart/sim
+TEST += $(SIMPLE_UART)/sim
-build/tests/simple_uart/sim: $(UART_TEST_OBJ) $(OBJS)
- $(COMPILE) $(UART_TEST_OBJ) $(TEST_OBJS) $(OBJS) -o $@
+$(SIMPLE_UART)/sim: $(SIMPLE_UART_SIM) libgran.a
+ $(COMPILE_TEST) $(SIMPLE_UART_SIM) libran.a -o build/$@
+ ./scripts/gen-report -d build $@