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_uart/source.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/simple_uart') 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 $@ -- cgit v1.3