makefile: be more explicit what to build for tests

This commit is contained in:
Fabian 2025-03-15 17:30:03 +07:00
parent eb5630db32
commit 34f11af226

View file

@ -21,7 +21,7 @@ WASM_OPT ?= false
default: build/v86-debug.wasm
all: build/v86_all.js build/libv86.js build/libv86.mjs build/v86.wasm
all-debug: build/libv86-debug.js build/libv86-debug.mjs build/v86-debug.wasm
all-debug: build/libv86-debug.js build/libv86-debug.mjs build/v86-debug.wasm
browser: build/v86_all.js
# Used for nodejs builds and in order to profile code.
@ -293,27 +293,27 @@ build/integration-test-fs/fs.json: images/buildroot-bzimage68.bin
./tools/copy-to-sha256.py build/integration-test-fs/fs.tar build/integration-test-fs/flat
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: build/libv86-debug.js build/v86-debug.wasm build/integration-test-fs/fs.json
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
nasmtests: all-debug
nasmtests: build/libv86-debug.js build/v86-debug.wasm
$(NASM_TEST_DIR)/create_tests.js
$(NASM_TEST_DIR)/gen_fixtures.js
$(NASM_TEST_DIR)/run.js
nasmtests-force-jit: all-debug
nasmtests-force-jit: build/libv86-debug.js build/v86-debug.wasm
$(NASM_TEST_DIR)/create_tests.js
$(NASM_TEST_DIR)/gen_fixtures.js
$(NASM_TEST_DIR)/run.js --force-jit
jitpagingtests: all-debug
jitpagingtests: build/libv86-debug.js build/v86-debug.wasm
$(MAKE) -C tests/jit-paging test-jit
./tests/jit-paging/run.js
qemutests: all-debug
qemutests: build/libv86-debug.js build/v86-debug.wasm
$(MAKE) -C tests/qemu test-i386
LOG_LEVEL=3 ./tests/qemu/run.js build/qemu-test-result
./tests/qemu/run-qemu.js > build/qemu-test-reference
@ -325,7 +325,7 @@ qemutests-release: build/libv86.js build/v86.wasm
./tests/qemu/run-qemu.js > build/qemu-test-reference
diff build/qemu-test-result build/qemu-test-reference
kvm-unit-test: all-debug
kvm-unit-test: build/libv86-debug.js build/v86-debug.wasm
(cd tests/kvm-unit-tests && ./configure && make x86/realmode.flat)
tests/kvm-unit-tests/run.js tests/kvm-unit-tests/x86/realmode.flat
@ -333,11 +333,11 @@ kvm-unit-test-release: build/libv86.js build/v86.wasm
(cd tests/kvm-unit-tests && ./configure && make x86/realmode.flat)
TEST_RELEASE_BUILD=1 tests/kvm-unit-tests/run.js tests/kvm-unit-tests/x86/realmode.flat
expect-tests: all-debug build/libwabt.js
expect-tests: build/libv86-debug.js build/v86-debug.wasm build/libwabt.js
make -C tests/expect/tests
./tests/expect/run.js
devices-test: all-debug
devices-test: build/libv86-debug.js build/v86-debug.wasm
./tests/devices/virtio_9p.js
./tests/devices/virtio_console.js
./tests/devices/fetch_network.js
@ -352,7 +352,7 @@ rust-test: $(RUST_FILES)
rust-test-intensive:
QUICKCHECK_TESTS=100000000 make rust-test
api-tests: all-debug
api-tests: build/libv86-debug.js build/v86-debug.wasm
./tests/api/clean-shutdown.js
./tests/api/state.js
./tests/api/reset.js