Enable run of tests on devices and emulators This CL updates the DexVm enum to add add an information about the kind of runtime used to run the tests, whether it's a host version of the runtime or a target one (device or emulator). It adds also the DeviceRunner class which drives the target device for the tests. Change-Id: I10666951f083a4f1da2efe3e9d368803a223a1b2 Bug:
diff --git a/build.gradle b/build.gradle index e10d9e0..1ad9b98 100644 --- a/build.gradle +++ b/build.gradle
@@ -140,6 +140,7 @@ testCompile group: 'org.smali', name: 'smali', version: '2.2b4' testCompile files('third_party/jasmin/jasmin-2.4.jar') testCompile files('third_party/jdwp-tests/apache-harmony-jdwp-tests-host.jar') + testCompile files('third_party/ddmlib/ddmlib.jar') jctfCommonCompile 'junit:junit:4.12' jctfTestsCompile 'junit:junit:4.12' jctfTestsCompile sourceSets.jctfCommon.output @@ -202,6 +203,7 @@ "kotlin", "android_cts_baseline", "shadow", + "ddmlib", ], // All dex-vms have a fixed OS of Linux, as they are only supported on Linux, and will be run in a Docker // container on other platforms where supported.