Add devices test to CI + update tests to linux4
This commit is contained in:
parent
a75eb60e45
commit
129269fc14
5
.travis-run-devices.sh
Executable file
5
.travis-run-devices.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
mkdir -p images
|
||||
(cd images && curl --compressed -O https://copy.sh/v86/images/linux4.iso)
|
||||
make devices-test
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
mkdir -p images
|
||||
(cd images && curl --compressed -O https://copy.sh/v86/images/linux3.iso)
|
||||
(cd images && curl --compressed -O https://copy.sh/v86/images/linux4.iso)
|
||||
make jitpagingtests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
mkdir -p images
|
||||
(cd images && curl --compressed -O https://copy.sh/v86/images/linux3.iso)
|
||||
(cd images && curl --compressed -O https://copy.sh/v86/images/linux4.iso)
|
||||
make qemutests
|
||||
|
|
|
@ -18,3 +18,4 @@ env:
|
|||
- TEST_SUITE=jshint
|
||||
- TEST_SUITE=jit-paging
|
||||
- TEST_SUITE=expect
|
||||
- TEST_SUITE=devices
|
||||
|
|
3
Makefile
3
Makefile
|
@ -305,6 +305,9 @@ expect-tests: build/libv86-debug.js build/v86-debug.wasm build/libwabt.js
|
|||
make -C tests/expect/tests
|
||||
./tests/expect/run.js
|
||||
|
||||
devices-test: build/libv86-debug.js build/v86-debug.wasm
|
||||
./tests/devices/virtio_9p.js
|
||||
|
||||
covreport:
|
||||
mkdir -p $(COVERAGE_DIR)/build/
|
||||
$(COVERAGE_DIR)/gen_report.js
|
||||
|
|
|
@ -11,7 +11,7 @@ var test_executable = new Uint8Array(fs.readFileSync(__dirname + "/test-jit"));
|
|||
var emulator = new V86({
|
||||
bios: { url: __dirname + "/../../bios/seabios.bin" },
|
||||
vga_bios: { url: __dirname + "/../../bios/vgabios.bin" },
|
||||
cdrom: { url: __dirname + "/../../images/linux3.iso" },
|
||||
cdrom: { url: __dirname + "/../../images/linux4.iso" },
|
||||
autostart: true,
|
||||
memory_size: 32 * 1024 * 1024,
|
||||
filesystem: {},
|
||||
|
|
|
@ -19,7 +19,7 @@ console.error(qemu_version.stdout.toString("utf8"));
|
|||
const qemu = spawn(QEMU,
|
||||
[
|
||||
"-serial", "stdio",
|
||||
"-cdrom", path.join(__dirname, "/../../images/linux3.iso"),
|
||||
"-cdrom", path.join(__dirname, "/../../images/linux4.iso"),
|
||||
"-device", "virtio-9p-pci,fsdev=fs9p,mount_tag=host9p",
|
||||
"-fsdev", `local,id=fs9p,path=${share_dir_9p},security_model=none`,
|
||||
"-display", "none",
|
||||
|
|
|
@ -11,7 +11,7 @@ var test_executable = new Uint8Array(fs.readFileSync(__dirname + "/test-i386"));
|
|||
var emulator = new V86({
|
||||
bios: { url: __dirname + "/../../bios/seabios.bin" },
|
||||
vga_bios: { url: __dirname + "/../../bios/vgabios.bin" },
|
||||
cdrom: { url: __dirname + "/../../images/linux3.iso" },
|
||||
cdrom: { url: __dirname + "/../../images/linux4.iso" },
|
||||
autostart: true,
|
||||
memory_size: 32 * 1024 * 1024,
|
||||
filesystem: {},
|
||||
|
|
Loading…
Reference in a new issue