Included a test target in the main Makefile, to run all tests

This commit is contained in:
Georges Dupéron 2018-06-26 02:16:12 +02:00
parent 8e65a81bfc
commit eb90ca298b
3 changed files with 24 additions and 1 deletions

View File

@ -37,4 +37,4 @@ env:
script:
- (cd example-os && make)
- xvfb-run ./test/${MODE}.sh
- xvfb-run -a ./test/${MODE}.sh

View File

@ -1,5 +1,24 @@
.PHONY: all
all: os.sh
os.sh: os.asm Makefile
nasm -o $@ $<
chmod a+x $@
.PHONY: test
test: test-qemu-system-i386 test-qemu-system-arm test-virtualbox test-bochs
.PHONY: test-qemu-system-i386
test-qemu-system-i386:
(cd .. && xvfb-run -a ./test/qemu-system-i386.sh)
.PHONY: test-qemu-system-arm
test-qemu-system-arm:
(cd .. && xvfb-run -a ./test/qemu-system-arm.sh)
.PHONY: test-virtualbox
test-virtualbox:
(cd .. && xvfb-run -a ./test/virtualbox.sh)
.PHONY: test-bochs
(cd .. && xvfb-run -a ./test/bochs.sh)

4
test/all.sh Executable file
View File

@ -0,0 +1,4 @@
xvfb-run ./test/qemu-system-i386.sh
xvfb-run ./test/qemu-system-arm.sh
xvfb-run ./test/virtualbox.sh
xvfb-run ./test/bochs.sh