Included a test target in the main Makefile, to run all tests
This commit is contained in:
parent
8e65a81bfc
commit
eb90ca298b
|
@ -37,4 +37,4 @@ env:
|
|||
|
||||
script:
|
||||
- (cd example-os && make)
|
||||
- xvfb-run ./test/${MODE}.sh
|
||||
- xvfb-run -a ./test/${MODE}.sh
|
|
@ -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
4
test/all.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user