This folder contains SDV System tests implemented using the SDV Test Framework.
See Android partner documentation for general information about SDV.
Ensure you are sync and have built most recent version.
. build/envsetup.sh lunch sdv_core_cf-trunk_staging-userdebug
// on sdv_core_cf cvd create --config=sdv_core_instance1 cvd create --config=sdv_core_instance2 cvd create --config=sdv_core_instance3
// on sdv_ivi_cf cvd create --config=sdv_ivi_instance1 cvd create --config=sdv_ivi_instance2 cvd create --config=sdv_ivi_instance3
// on sdv_media_cf cvd create --config=sdv_media_instance1 cvd create --config=sdv_media_instance2 cvd create --config=sdv_media_instance3
atest <testName>
Build catbox: m catbox
The following commands assume you are at the root of the repo
Check available test plans for SDV
./out/host/linux-x86/catbox/android-catbox/tools/catbox-tradefed l p | grep sdv
Execute test
NOTIFY_AS_NATIVE=0.0.0.0:6520 ./out/host/linux-x86/catbox/android-catbox/tools/catbox-tradefed run commandAndExit <test_name> --{device1}serial 0.0.0.0:6520 --mobly-config-file-name sdv_one_device_config_local.yaml
NOTIFY_AS_NATIVE=0.0.0.0:6520,0.0.0.0:6521 ./out/host/linux-x86/catbox/android-catbox/tools/catbox-tradefed run commandAndExit <test_name> --{device1}serial 0.0.0.0:6520 --{device2}serial 0.0.0.0:6521 --mobly-config-file-name sdv_two_devices_config_local.yaml
NOTIFY_AS_NATIVE=0.0.0.0:6520,0.0.0.0:6521,0.0.0.0:6522 ./out/host/linux-x86/catbox/android-catbox/tools/catbox-tradefed run commandAndExit <test_name> --{device1}serial 0.0.0.0:6520 --{device2}serial 0.0.0.0:6521 --{device3}serial 0.0.0.0:6522 --mobly-config-file-name sdv_three_devices_config_local.yaml
User-build tests are designed to run on devices without root access.
To run user-build tests locally using atest, you need to disable the root access requirement by passing force-root:false as a module argument.
atest <moduleName> -- --module-arg <moduleName>:force-root:false
To configure user-build tests for CI/CD, you must create a Tradefed configuration XML file under platform_testing/libraries/sdv/sdv_catbox/res/config/ and use the appropriate noroot device configuration template under /sdv-device-config/userbuild/.