crosvm/tools
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
..
audio_streams_conformance_test Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
chromeos Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
contrib Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
examples Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
impl tools/run_tests: Split unit tests from integration tests 2022-09-20 18:27:23 +00:00
tests Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
windows Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
.vpython3 infra: Small process improvements 2022-05-27 20:59:12 +00:00
aarch64vm Update copyright header check to cover all files 2022-09-13 18:41:29 +00:00
bindgen-all-the-things Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
cargo-doc Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
cl Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
clippy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
dev_container dev_container: Always pass tty to docker if available 2022-09-14 19:07:16 +00:00
fmt Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
health-check health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
install-aarch64-deps Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
install-armhf-deps Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
install-deps dev_container: Upgrade to debian bookworm 2022-09-14 22:32:36 +00:00
install-docs-deps Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
presubmit tools/run_tests: Split unit tests from integration tests 2022-09-20 18:27:23 +00:00
run_tests Update copyright header check to cover all files 2022-09-13 18:41:29 +00:00
test_target Update copyright header check to cover all files 2022-09-13 18:41:29 +00:00
x86vm Update copyright header check to cover all files 2022-09-13 18:41:29 +00:00