1*d57664e9SAndroid Build Coastguard Worker## CDM Multi-device Tests 2*d57664e9SAndroid Build Coastguard Worker 3*d57664e9SAndroid Build Coastguard Worker### Device Setup 4*d57664e9SAndroid Build Coastguard WorkerTo test on physical devices, connect _two_ devices locally and enable USB debugging setting on both devices. 5*d57664e9SAndroid Build Coastguard Worker 6*d57664e9SAndroid Build Coastguard WorkerWhen running on a cloudtop or other remote setups, use pontis to connect the devices on remote set up by running `pontis start`. 7*d57664e9SAndroid Build Coastguard WorkerVerify that pontis client is connected via `pontis status` and confirm that both devices are in "connected" state via `adb devices`. 8*d57664e9SAndroid Build Coastguard Worker 9*d57664e9SAndroid Build Coastguard WorkerSee go/pontis for more details regarding this workflow. 10*d57664e9SAndroid Build Coastguard Worker 11*d57664e9SAndroid Build Coastguard WorkerTo test on virtual devices, follow instructions to [set up netsim on cuttlefish](https://g3doc.corp.google.com/ambient/d2di/sim/g3doc/guide/cuttlefish.md?cl=head). 12*d57664e9SAndroid Build Coastguard WorkerLaunch _two_ instances of virtual devices by specifying `--num_instances=2` parameter. 13*d57664e9SAndroid Build Coastguard Worker 14*d57664e9SAndroid Build Coastguard Worker### Running the Test 15*d57664e9SAndroid Build Coastguard Worker``` 16*d57664e9SAndroid Build Coastguard Workeratest CompanionDeviceManagerMultiDeviceTestCases 17*d57664e9SAndroid Build Coastguard Worker``` 18