• Home
Name Date Size #Lines LOC

..--

guest_under_test/03-May-2024-239134

tests/03-May-2024-358269

Cargo.tomlD03-May-2024259 1412

README.mdD03-May-20241 KiB3221

runD03-May-2024427 123

README.md

1# Crosvm Integration Tests
2
3These tests run a crosvm VM on the host to verify end to end behavior. They use
4a prebuilt guest kernel and rootfs, which is downloaded from google cloud
5storage.
6
7## Running with locally built kernel/rootfs
8
9If the test needs to run offline, or you want to make changes to the kernel or
10rootfs, you have to specify the environment variables
11`CROSVM_CARGO_TEST_KERNEL_BINARY` and `CROSVM_CARGO_TEST_ROOTFS_IMAGE` to point
12to the right files.
13
14The use_local_build.sh script does this for you:
15
16```$ source guest_under_test/use_local_build.sh```
17
18## Uploading prebuilts
19
20Note: Only Googlers with access to the crosvm-testing cloud storage bin can
21      upload prebuilts.
22
23To upload the modified rootfs, you will have to uprev the `PREBUILT_VERSION`
24variable in:
25
26- `./guest_under_test/PREBUILT_VERSION`
27- `src/third_party/chromiumos-overlay/chromeos-base/crosvm/crosvm-9999.ebuild`
28
29Then run the upload script to build and upload the new prebuilts. **Never** try
30to modify an existing prebuilt as the new images may break tests in older
31versions.
32