aboutsummaryrefslogtreecommitdiff
path: root/Common.mk
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-22 12:47:51 -0700
committerChristian Cunningham <cc@localhost>2022-02-22 12:47:51 -0700
commitc59fed186238d07557817a752f951471201ba9e0 (patch)
tree56d1e97d276f3a5fb0bdb897f4d65eb4c99d0f24 /Common.mk
parentef262d9a0b4b4d973e3c0fcabc9cdf4d57fc93ce (diff)
Automated testing
Diffstat (limited to 'Common.mk')
-rw-r--r--Common.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/Common.mk b/Common.mk
index 8ef25af..9852b2d 100644
--- a/Common.mk
+++ b/Common.mk
@@ -34,7 +34,7 @@ endif
CFLAGS += -DVERSION="\"0.1b\""
-.PHONY: clean run run-debug debug export tree disk
+.PHONY: clean run run-silent run-debug debug export tree disk test
default: clean build/kernel7.img
@@ -70,6 +70,10 @@ run: build/kernel.elf
@tput setaf 6 2> /dev/null || true; echo Starting QEMU; tput sgr0 2> /dev/null || true
@${QEMU} -kernel $< ${QFLAGS}
+run-silent: build/kernel.elf
+ @tput setaf 6 2> /dev/null || true; echo Starting QEMU; tput sgr0 2> /dev/null || true
+ @${QEMU} -kernel $< -nographic ${QFLAGS}
+
run-debug: build/kernel-g.elf
@echo Starting QEMU in Debug Mode
@${QEMU} -kernel $< -s -S ${QFLAGS}
@@ -88,3 +92,7 @@ clean:
tree:
@tree -a -I obj\|build\|.git\|.gitignore
+
+test: clean build/kernel.elf
+ @tput setaf 6 2> /dev/null || true; echo Running Tests; tput sgr0 2> /dev/null || true
+ @./tests/run.sh