Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
guest_under_test/ | 03-May-2024 | - | 239 | 134 | ||
tests/ | 03-May-2024 | - | 358 | 269 | ||
Cargo.toml | D | 03-May-2024 | 259 | 14 | 12 | |
README.md | D | 03-May-2024 | 1 KiB | 32 | 21 | |
run | D | 03-May-2024 | 427 | 12 | 3 |
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