crosvm/ci/vm_tools
Dennis Kempin 3f63661afc Run integration_tests by calling crosvm binary
Instead of instanciating crosvm directly, we can start the binary as
a sub-process.
This includes parsing of crosvm options in the tests, and makes the
test cases closer to real-world usage.

To make make this possible, we need to make sure that the crosvm binary
is uploaded to the VM before running the test, which is done by the
sync_so script, which is baked into the builder container.
We prevent future container re-builds for just maintaining the script,
I have removed them from the container, and call the scripts from the
local source directly.

The test runner is also updated to ensure all package binaries are
built (currently only tests are built).

BUG=b:182841358
TEST=./test_all passes

Change-Id: I7dfd21abcb2b90fe125eb43f85572fbf645b888a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2744280
Tested-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2021-03-19 20:35:53 +00:00
..
exec_binary_in_vm Run integration_tests by calling crosvm binary 2021-03-19 20:35:53 +00:00
README.md Run integration_tests by calling crosvm binary 2021-03-19 20:35:53 +00:00
sync_deps Run integration_tests by calling crosvm binary 2021-03-19 20:35:53 +00:00
wait_for_vm Run integration_tests by calling crosvm binary 2021-03-19 20:35:53 +00:00
wait_for_vm_with_timeout Run integration_tests by calling crosvm binary 2021-03-19 20:35:53 +00:00

VM Tools

The scripts in this directory are used to make it easier to work with the test VM.

The VM is expected to be accessible via ssh vm without a password prompt, this is set up by the builders, so it'll work out-of-the-box when running inside the builder shell.