This CL is a merge from the widevine repo of: http://go/wvgerrit/16491 Circular Buffer http://go/wvgerrit/16512 Circular Buffer Tests http://go/wvgerrit/16493 Entry Writer http://go/wvgerrit/16495 Profiled Scope http://go/wvgerrit/16500 Stats Collection http://go/wvgerrit/16543 Disallow Stats Copy or Assign http://go/wvgerrit/16514 Moving OEM Function Enum http://go/wvgerrit/16501 Defining Session Interface http://go/wvgerrit/16502 Session Definitions http://go/wvgerrit/16573 Remove code to num bytes table http://go/wvgerrit/16556 Connecting Profiler to Profiled Scope http://go/wvgerrit/16557 Android Reading Profiler History http://go/wvgerrit/16574 Adding Get Stats Method http://go/wvgerrit/16606 Seperating Session Parsing http://go/wvgerrit/16607 Adding get stats method to DRMPlugin http://go/wvgerrit/16608 Fixing Linux Build Failure http://go/wvgerrit/16612 Stop Clearing History http://go/wvgerrit/16613 Accessing profiler information using session id http://go/wvgerrit/16614 Making All Session Subsets of Global Session BUG: 25123303 BUG: 26027857 Change-Id: Ie2422e644aa631871852ea0e461695aeb7060f88
70 lines
2.1 KiB
Bash
Executable File
70 lines
2.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -z "$ANDROID_BUILD_TOP" ]; then
|
|
echo "Android build environment not set"
|
|
exit -1
|
|
fi
|
|
|
|
. $ANDROID_BUILD_TOP/build/envsetup.sh
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/test/gmock
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/test/unit
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/cdm/test
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/mediacrypto/test
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/mediadrm/test
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/oemcrypto/test
|
|
pwd
|
|
mm || mma
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/test/java/src/com/widevine/test
|
|
pwd
|
|
mm WITH_DEXPREOPT=false || mma WITH_DEXPREOPT=false
|
|
|
|
echo "waiting for device"
|
|
adb root && adb wait-for-device remount
|
|
|
|
|
|
adb push $OUT/system/bin/oemcrypto_test /system/bin
|
|
adb push $OUT/system/bin/request_license_test /system/bin
|
|
adb push $OUT/system/bin/cdm_extended_duration_test /system/bin
|
|
adb push $OUT/system/bin/max_res_engine_unittest /system/bin
|
|
adb push $OUT/system/bin/policy_engine_unittest /system/bin
|
|
adb push $OUT/system/bin/libwvdrmmediacrypto_test /system/bin
|
|
adb push $OUT/system/bin/libwvdrmdrmplugin_test /system/bin
|
|
adb push $OUT/system/bin/cdm_engine_test /system/bin
|
|
adb push $OUT/system/bin/cdm_session_unittest /system/bin
|
|
adb push $OUT/system/bin/file_store_unittest /system/bin
|
|
adb push $OUT/system/bin/license_unittest /system/bin
|
|
adb push $OUT/system/bin/initialization_data_unittest /system/bin
|
|
adb push $OUT/system/bin/device_files_unittest /system/bin
|
|
adb push $OUT/system/bin/timer_unittest /system/bin
|
|
adb push $OUT/system/bin/libwvdrmengine_test /system/bin
|
|
adb push $OUT/system/bin/buffer_reader_test /system/bin
|
|
adb push $OUT/system/bin/circular_buffer_test /system/bin
|
|
adb push $OUT/system/bin/entry_writer_test /system/bin
|
|
adb install -r $OUT/system/app/MediaDrmAPITest/MediaDrmAPITest.apk
|
|
|
|
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine
|
|
./run_all_unit_tests.sh
|