crosvm/tools
Dennis Kempin 767e094fb8 tools/run_tests: Use triples for arch
Updates run_tests to use cargo style target triples for specifying
build targets. A simple 'aarch64' or 'armhf' was nice while we just
had linux builds. We now are looking at windows and possibly
different toolchain options (e.g. msvc vs gnu), so our old system
was getting confusing and inconsistent.

We used to have some special handling for adding wrappers to test
runs for emulation (e.g. wine, qemu). That logic has been moved
into TestTarget which now contains not just where to run the test
but also how.

Supported are armhf/aarch64 qemu as well as wine64.

The CLI has been updated to match and now uses the build-target
argument instead of arch.

The following combinations have been tested (though not all
combinations actually pass all tests, which is a separate issue).

./tools/run_tests
./tools/run_tests --target=host --build-target=x86_64-unknown-linux-gnu
./tools/run_tests --target=host --build-target=armhf
./tools/run_tests --target=host --build-target=aarch64
./tools/run_tests --target=host --build-target=mingw64
./tools/run_tests --target=vm:aarch64
./tools/run_tests --target=vm:aarch64 --build-target=armhf

BUG=b:233914170
TEST=See above

Change-Id: Ic6dbb5b39788e2573714606d3bb0e7c712032d91
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3739240
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2022-07-01 19:16:59 +00:00
..
chromeos merge_bot: Enable on luci 2022-06-08 17:20:27 +00:00
contrib base: replace PollToken with EventToken tree-wide 2022-06-02 22:30:38 +00:00
examples examples/baremetal: exit instead of hanging 2022-06-23 22:30:40 +00:00
impl tools/run_tests: Use triples for arch 2022-07-01 19:16:59 +00:00
windows
.vpython3 infra: Small process improvements 2022-05-27 20:59:12 +00:00
aarch64vm
bindgen-all-the-things vm_memory: move udmabuf support to vm_memory 2022-07-01 05:29:23 +00:00
cargo-doc tools/cargo-doc: exclude crosvm-fuzz 2022-05-06 20:47:00 +00:00
cl tools: Add tools/cl script as a helper for uploading to gerrit 2022-06-03 21:35:31 +00:00
clippy tools/run_tests: Use triples for arch 2022-07-01 19:16:59 +00:00
dev_container dev_container: Fix reuse logic and add testing 2022-05-31 21:54:23 +00:00
fmt Document memory layout. 2022-05-06 12:09:40 +00:00
health-check health-check: Add option to run only some checks 2022-05-26 01:03:59 +00:00
install-aarch64-deps tools: install-deps: add ffmpeg libraries as dependencies 2022-06-07 11:44:20 +00:00
install-armhf-deps tools: install-deps: add ffmpeg libraries as dependencies 2022-06-07 11:44:20 +00:00
install-deps tools: install-deps: add libva-dev and libudev-dev as dependencies 2022-06-23 01:12:15 +00:00
install-docs-deps
presubmit tools/run_tests: Use triples for arch 2022-07-01 19:16:59 +00:00
run_tests
test_target
x86vm