Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | function vts_multidevice_target_setup { |
| 4 | DEVICE=$1 |
| 5 | |
| 6 | adb root |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 7 | adb shell mkdir -p /data/local/tmp/32 |
| 8 | adb shell mkdir -p /data/local/tmp/64 |
| 9 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/fuzzer32 /data/local/tmp/32/ |
| 10 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/fuzzer64 /data/local/tmp/64/ |
| 11 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_shell_driver32 /data/local/tmp/32/ |
| 12 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_shell_driver64 /data/local/tmp/64/ |
| 13 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_agent32 /data/local/tmp/32/ |
| 14 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/bin/vts_hal_agent64 /data/local/tmp/64/ |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 15 | |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 16 | echo "install vts framework packages" |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 17 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_common.so /data/local/tmp/32/ |
| 18 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_common.so /data/local/tmp/64/ |
| 19 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_interfacespecification.so /data/local/tmp/32/ |
| 20 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_interfacespecification.so /data/local/tmp/64/ |
| 21 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_drivercomm.so /data/local/tmp/32/ |
| 22 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_drivercomm.so /data/local/tmp/64/ |
| 23 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_datatype.so /data/local/tmp/32/ |
| 24 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_datatype.so /data/local/tmp/64/ |
| 25 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_measurement.so /data/local/tmp/32/ |
| 26 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_measurement.so /data/local/tmp/64/ |
| 27 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_codecoverage.so /data/local/tmp/32/ |
| 28 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_codecoverage.so /data/local/tmp/64/ |
| 29 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/libvts_multidevice_proto.so /data/local/tmp/32/ |
| 30 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/libvts_multidevice_proto.so /data/local/tmp/64/ |
| 31 | |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 32 | echo "install hal packages" |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 33 | adb shell mkdir -p /data/local/tmp/32/hw |
| 34 | adb shell mkdir -p /data/local/tmp/64/hw |
| 35 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/hw/lights.vts.so /data/local/tmp/32/hw/ |
| 36 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/hw/lights.vts.so /data/local/tmp/64/hw/ |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 37 | |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 38 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/obj_arm/SHARED_LIBRARIES/android.hardware.tests.libhwbinder@1.0_intermediates/LINKED/android.hardware.tests.libhwbinder@1.0.so /data/local/tmp/32/ |
| 39 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/obj/SHARED_LIBRARIES/android.hardware.tests.libhwbinder@1.0_intermediates/LINKED/android.hardware.tests.libhwbinder@1.0.so /data/local/tmp/64/ |
Keun Soo Yim | 65f98fe | 2016-08-08 17:47:42 -0700 | [diff] [blame] | 40 | |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 41 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/obj_arm/EXECUTABLES/libhwbinder_benchmark_intermediates/LINKED/libhwbinder_benchmark32 /data/local/tmp/32/ |
| 42 | adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/obj/EXECUTABLES/libhwbinder_benchmark_intermediates/LINKED/libhwbinder_benchmark64 /data/local/tmp/64/ |
Keun Soo Yim | d8c2665 | 2016-08-18 19:30:45 -0700 | [diff] [blame] | 43 | |
| 44 | # uncomment for hidl in non-treble devices |
Keun Soo Yim | 1c40365 | 2016-09-17 18:33:01 -0700 | [diff] [blame] | 45 | # adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib/android.hardware.nfc@1.0.so /data/local/tmp/32/hw/android.hardware.nfc@1.0.so |
| 46 | # adb push ${ANDROID_BUILD_TOP}/out/target/product/${DEVICE}/system/lib64/android.hardware.nfc@1.0.so /data/local/tmp/64/hw/android.hardware.nfc@1.0.so |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 47 | # adb push images/${DEVICE}/32/libhwbinder.so /data/local/tmp/32/libhwbinder.so |
| 48 | # adb push images/${DEVICE}/64/libhwbinder.so /data/local/tmp/64/libhwbinder.so |
| 49 | |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 50 | adb shell mkdir -p /data/local/tmp/spec |
| 51 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/CameraHalV2.vts /data/local/tmp/spec/CameraHalV2.vts |
| 52 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/CameraHalV2hw_device_t.vts /data/local/tmp/spec/CameraHalV2hw_device_t.vts |
| 53 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/CameraHalV3.vts /data/local/tmp/spec/CameraHalV3.vts |
| 54 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/CameraHalV3camera3_device_ops_t.vts /data/local/tmp/spec/CameraHalV3camera3_device_ops_t.vts |
| 55 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/GpsHalV1.vts /data/local/tmp/spec/GpsHalV1.vts |
| 56 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/GpsHalV1GpsInterface.vts /data/local/tmp/spec/GpsHalV1GpsInterface.vts |
| 57 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/LightHalV1.vts /data/local/tmp/spec/LightHalV1.vts |
| 58 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/WifiHalV1.vts /data/local/tmp/spec/WifiHalV1.vts |
| 59 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/BluetoothHalV1.vts /data/local/tmp/spec/BluetoothHalV1.vts |
| 60 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/hal_conventional/BluetoothHalV1bt_interface_t.vts /data/local/tmp/spec/BluetoothHalV1bt_interface_t.vts |
Keun Soo Yim | 31c920a | 2016-10-10 17:22:17 -0700 | [diff] [blame] | 61 | adb push ${ANDROID_BUILD_TOP}/hardware/interfaces/nfc/1.0/vts/Nfc.vts /data/local/tmp/spec/Nfc.vts |
| 62 | adb push ${ANDROID_BUILD_TOP}/hardware/interfaces/nfc/1.0/vts/NfcClientCallback.vts /data/local/tmp/spec/NfcClientCallback.vts |
| 63 | adb push ${ANDROID_BUILD_TOP}/hardware/interfaces/nfc/1.0/vts/types.vts /data/local/tmp/spec/types.vts |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 64 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/lib_bionic/libmV1.vts /data/local/tmp/spec/libmV1.vts |
| 65 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/lib_bionic/libcV1.vts /data/local/tmp/spec/libcV1.vts |
| 66 | adb push ${ANDROID_BUILD_TOP}/test/vts/specification/lib_bionic/libcutilsV1.vts /data/local/tmp/spec/libcutilsV1.vts |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 67 | |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 68 | echo "install asan packages" |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 69 | # asan |
Keun Soo Yim | bab7526 | 2016-09-04 18:52:29 -0700 | [diff] [blame] | 70 | adb push ${ANDROID_BUILD_TOP}/prebuilts/clang/host/linux-x86/clang-2812033/lib64/clang/3.8/lib/linux/libclang_rt.asan-aarch64-android.so /data/local/tmp/libclang_rt.asan-aarch64-android.so |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 71 | |
| 72 | adb shell chmod 755 /data/local/tmp/32/fuzzer32 |
| 73 | adb shell chmod 755 /data/local/tmp/64/fuzzer64 |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 74 | adb shell chmod 755 /data/local/tmp/32/vts_shell_driver32 |
| 75 | adb shell chmod 755 /data/local/tmp/64/vts_shell_driver64 |
| 76 | adb shell chmod 755 /data/local/tmp/32/vts_hal_agent32 |
| 77 | adb shell chmod 755 /data/local/tmp/64/vts_hal_agent64 |
Keun Soo Yim | 8f6b769 | 2016-06-02 10:40:51 -0700 | [diff] [blame] | 78 | } |