mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-08 19:33:07 +00:00
Changes how unit tests are executed. Instead of running all tests on a selected target (i.e. host or a VM), we will select a platform to test and run_tests will use a separate target for unit tests than for integration tests. e.g. instead of running all tests in the aarch64 vm: ./tools/run_tests --target=vm:aarch64 We can now run ./tools/run_tests --platform=aarch64 to run unit tests via user-space emulation on the host, and only integration tests on the VM. This will eventually apply to x86 testing as well, so tests can be run in an unprivileged environment (e.g. podman). A new TestOption has been added to mark unit tests that have system interactions that require them to be run like integration tests in a VM. These should be fixed. You can also use --unit-tests and --integration-tests to run just one type of tests. Running unit tests only takes a few seconds on most platforms since we can use user-space emulation. BUG=b:247139912 TEST=./tools/run_tests ./tools/run_tests -p aarch64 ./tools/run_tests -p mingw64 ./tools/run_tests -p armhf Change-Id: Icd0c502623f1889906d199e752b3eccb7de76dc0 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3902688 Reviewed-by: Zihan Chen <zihanchen@google.com> Commit-Queue: Dennis Kempin <denniskempin@google.com> |
||
---|---|---|
.. | ||
dev_container | ||
testvm | ||
__init__.py | ||
bindgen-common.sh | ||
check_code_hygiene.py | ||
common.py | ||
health_check.py | ||
test_config.py | ||
test_runner.py | ||
test_target.py | ||
testvm.py |