Browse Source

Update test scripts

copy 6 years ago
parent
commit
e764ca213a
3 changed files with 8 additions and 8 deletions
  1. 1 3
      .travis-run-nasm.sh
  2. 1 5
      .travis-run-unit-qemu.sh
  3. 6 0
      Makefile

+ 1 - 3
.travis-run-nasm.sh

@@ -1,5 +1,3 @@
 #!/usr/bin/env bash
 set -e
-make build/libv86.js
-make -C tests/nasm/
-./tests/nasm/run.js
+make nasmtests

+ 1 - 5
.travis-run-unit-qemu.sh

@@ -2,8 +2,4 @@
 set -e
 mkdir -p images
 (cd images && curl --compressed -O https://copy.sh/v86/images/linux3.iso)
-make build/libv86.js
-(cd tests/qemu && make test-i386)
-./tests/qemu/run.js > result
-./tests/qemu/test-i386 > reference
-diff result reference
+make qemutests

+ 6 - 0
Makefile

@@ -157,3 +157,9 @@ tests: build/libv86.js
 nasmtests: build/libv86.js
 	$(MAKE) -C $(NASM_TEST_DIR) all
 	$(NASM_TEST_DIR)/run.js
+
+qemutests: build/libv86.js
+	make -C tests/qemu test-i386
+	./tests/qemu/run.js > result
+	./tests/qemu/test-i386 > reference
+	diff result reference