crosvm/tools/impl
Dennis Kempin 97da569f79 tools/run_tests: Split unit tests from integration tests
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>
2022-09-20 18:27:23 +00:00
..
dev_container dev_container: Upgrade to debian bookworm 2022-09-14 22:32:36 +00:00
testvm dev_container: Upgrade to debian bookworm 2022-09-14 22:32:36 +00:00
__init__.py health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
bindgen-common.sh bindgen: update bindings to Linux 5.15 2022-09-14 22:09:30 +00:00
check_code_hygiene.py Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
common.py Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
health_check.py Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
test_config.py tools/run_tests: Split unit tests from integration tests 2022-09-20 18:27:23 +00:00
test_runner.py tools/run_tests: Split unit tests from integration tests 2022-09-20 18:27:23 +00:00
test_target.py Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
testvm.py tools/x86vm: Small fixes to VM 2022-09-19 22:04:20 +00:00