diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-14 19:15:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-14 19:15:43 +0100 |
commit | 1ca147f9e08202dfbc78692e204adac280f8238b (patch) | |
tree | 70cf40c14aae874bae814a9dcddbfdf5aba52079 /src/tests/ktests/rules.make | |
parent | 74ea640f40285220dfa93492a143a35426b867d1 (diff) | |
download | kogata-1ca147f9e08202dfbc78692e204adac280f8238b.tar.gz kogata-1ca147f9e08202dfbc78692e204adac280f8238b.zip |
Rearrange testing architecture : just type 'make run_tests'
Diffstat (limited to 'src/tests/ktests/rules.make')
-rw-r--r-- | src/tests/ktests/rules.make | 17 |
1 files changed, 17 insertions, 0 deletions
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 + |