#How to run these tests
This folder contains .json configs that serve as examples for launches of multi-device configurations, where one or more of those devices are a local instance. Some tests mix these local instances with remotely fetched ones as well, but in all cases at least one local image is needed. Hence some steps are needed to create these artifacts locally.
In particular - there needs to be the following artifacts lcoal:
A folder containing Cuttlefish ‘host tools’ - which contains the cvd
binary (among others) that are used to launch the instances.
A device image folder stored locally, which will be run within the VMs created, effectively demonstrating that the local instance was successfully created.
There are a few recommended ways to set up these folders, feel free to use whichever method works best for your use case.
[AOSP checkout folder]
/out/tmp/vsoc_x86_64
, which will be the folder containing the disk images for the local instance to be launched. This will be located under the AOSP out
folder at a path similair to: /out/target/product/vsoc_x86_64
. One way to get this folder is via: env | grep ANDROID_PRODUCT_OUT=
. The 2nd path to update is listed in the .json files as /tmp/linux-x86
, and this is a path containing the Cuttlefish host tools binaries. This can also be obtained after an AOSP build, while in the same shell, via: env | grep ANDROID_HOST_OUT=
.cvd load host/cvd_test_configs/local_mixed_1.json
(ensuring you give the correct path and changing the filename to whichever test you'd like to execute).gen_local_configs.sh
scriptlunch
to init the environment in a shell.)../../../tools/testing/gen_local_configs.sh
.cvd load /tmp/local_mixed_1.json
(changing the filename to whichever test you'd like to execute). The Android image used within the tests (as the local VM) is the same one which you have just compiled.