From ff3fc403f14c4f052c02dd9211df2e1db3d58d91 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Sat, 4 Nov 2017 08:13:22 +0000 Subject: [PATCH] Improve testing --- Makefile | 24 +++++++++++++++++++----- test/Makefile | 14 ++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 test/Makefile diff --git a/Makefile b/Makefile index 8e2d591..44bbe39 100644 --- a/Makefile +++ b/Makefile @@ -11,12 +11,20 @@ clean: clean-kernel clean-iso clean-libk clean-test test: run-test +########## +# Kernel # +########## + all-kernel: all-libk make all -C arch clean-kernel: make clean -C arch +####### +# ISO # +####### + run-iso: all-iso make run -C iso @@ -26,19 +34,25 @@ all-iso: all-kernel clean-iso: make clean -C iso +######## +# libk # +######## + all-libk: make all -C libk clean-libk: make clean -C libk -test-libk: all-test - make run -C test/libk +######### +# Tests # +######### -run-test: test-libk +run-test: all-test + make run -C test all-test: all-libk - make all -C test/libk + make all -C test clean-test: - make clean -C test/libk + make clean -C test diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..7971148 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,14 @@ +SUITES = libk + +run: $(addprefix run-, $(SUITES)) +all: $(addprefix all-, $(SUITES)) +clean: $(addprefix clean-, $(SUITES)) + +run-%: all-% + make run -C $* + +all-%: + make all -C $* + +clean-%: + make clean -C $*