Skip to content

Commit eb5630d

Browse files
committed
qemutests, integrationtests: enable cpu logging by default
1 parent 528451e commit eb5630d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ build/integration-test-fs/fs.json: images/buildroot-bzimage68.bin
294294
rm build/integration-test-fs/fs.tar build/integration-test-fs/bzImage build/integration-test-fs/initrd
295295

296296
tests: all-debug build/integration-test-fs/fs.json
297-
./tests/full/run.js
297+
LOG_LEVEL=3 ./tests/full/run.js
298298

299299
tests-release: build/libv86.js build/v86.wasm build/integration-test-fs/fs.json
300300
TEST_RELEASE_BUILD=1 ./tests/full/run.js
@@ -315,7 +315,7 @@ jitpagingtests: all-debug
315315

316316
qemutests: all-debug
317317
$(MAKE) -C tests/qemu test-i386
318-
./tests/qemu/run.js build/qemu-test-result
318+
LOG_LEVEL=3 ./tests/qemu/run.js build/qemu-test-result
319319
./tests/qemu/run-qemu.js > build/qemu-test-reference
320320
diff build/qemu-test-result build/qemu-test-reference
321321

tests/full/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ function run_test(test, done)
10171017
vga_bios: { url: vga_bios },
10181018
autostart: true,
10191019
memory_size: test.memory_size || 128 * 1024 * 1024,
1020-
log_level: 0,
1020+
log_level: +process.env.LOG_LEVEL || 0,
10211021
cmdline: test.cmdline,
10221022
};
10231023

tests/qemu/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var emulator = new V86({
2222
memory_size: 32 * 1024 * 1024,
2323
filesystem: {},
2424
disable_jit: +process.env.DISABLE_JIT,
25-
log_level: 3,
25+
log_level: +process.env.LOG_LEVEL || 0,
2626
});
2727

2828
emulator.bus.register("emulator-started", function()

0 commit comments

Comments
 (0)