From eb5630db327da75f3ad63c7b0f2a70f874aeced3 Mon Sep 17 00:00:00 2001 From: Fabian Date: Sat, 15 Mar 2025 17:26:36 +0700 Subject: [PATCH] qemutests, integrationtests: enable cpu logging by default --- Makefile | 4 ++-- tests/full/run.js | 2 +- tests/qemu/run.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e6a77546..fa3da9c8 100644 --- a/Makefile +++ b/Makefile @@ -294,7 +294,7 @@ build/integration-test-fs/fs.json: images/buildroot-bzimage68.bin rm build/integration-test-fs/fs.tar build/integration-test-fs/bzImage build/integration-test-fs/initrd tests: all-debug build/integration-test-fs/fs.json - ./tests/full/run.js + LOG_LEVEL=3 ./tests/full/run.js tests-release: build/libv86.js build/v86.wasm build/integration-test-fs/fs.json TEST_RELEASE_BUILD=1 ./tests/full/run.js @@ -315,7 +315,7 @@ jitpagingtests: all-debug qemutests: all-debug $(MAKE) -C tests/qemu test-i386 - ./tests/qemu/run.js build/qemu-test-result + LOG_LEVEL=3 ./tests/qemu/run.js build/qemu-test-result ./tests/qemu/run-qemu.js > build/qemu-test-reference diff build/qemu-test-result build/qemu-test-reference diff --git a/tests/full/run.js b/tests/full/run.js index 4685166e..c65986d3 100755 --- a/tests/full/run.js +++ b/tests/full/run.js @@ -1017,7 +1017,7 @@ function run_test(test, done) vga_bios: { url: vga_bios }, autostart: true, memory_size: test.memory_size || 128 * 1024 * 1024, - log_level: 0, + log_level: +process.env.LOG_LEVEL || 0, cmdline: test.cmdline, }; diff --git a/tests/qemu/run.js b/tests/qemu/run.js index ef195453..44d540d3 100755 --- a/tests/qemu/run.js +++ b/tests/qemu/run.js @@ -22,7 +22,7 @@ var emulator = new V86({ memory_size: 32 * 1024 * 1024, filesystem: {}, disable_jit: +process.env.DISABLE_JIT, - log_level: 3, + log_level: +process.env.LOG_LEVEL || 0, }); emulator.bus.register("emulator-started", function()