From 1ca147f9e08202dfbc78692e204adac280f8238b Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 14 Feb 2015 19:15:43 +0100 Subject: Rearrange testing architecture : just type 'make run_tests' --- src/tests/ktests/rules.make | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/tests/ktests/rules.make (limited to 'src/tests/ktests/rules.make') diff --git a/src/tests/ktests/rules.make b/src/tests/ktests/rules.make new file mode 100644 index 0000000..f31ab89 --- /dev/null +++ b/src/tests/ktests/rules.make @@ -0,0 +1,17 @@ +LIB = ../../../kernel/kernel.lib + +OBJ = kmain.o + +CFLAGS = -I . -I ../../../common/include -I ../../../kernel/include -DIS_A_TEST +LDFLAGS = -T ../../../kernel/linker.ld -Xlinker -Map=test_kernel.map + +OUT = test_kernel.bin + +include ../../../rules.make + +kmain.o: ../../../kernel/core/kmain.c test.c + $(CC) -c $< -o $@ $(CFLAGS) + +run_test: all + ../run_qemu_test.sh + -- cgit v1.2.3