Improve unit test build script
Make the build_and_run_all_unit_tests script push individual tests instead of doing a full sync, makes it easier to run unit tests against release builds. Merge of https://widevine-internal-review.googlesource.com/#/c/8405/ from the widevine cdm repo. Change-Id: I8efda77be9ab863f616fab88c4782b7c9edb8858
This commit is contained in:
@@ -43,5 +43,21 @@ cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine/test/java/src/com/widevine/
|
||||
pwd
|
||||
mm
|
||||
|
||||
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/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/file_store_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 install -r $OUT/system/app/MediaDrmAPITest.apk
|
||||
|
||||
cd $ANDROID_BUILD_TOP/vendor/widevine/libwvdrmengine
|
||||
./run_all_unit_tests.sh
|
||||
|
||||
@@ -6,7 +6,7 @@ if [ -z "$ANDROID_BUILD_TOP" ]; then
|
||||
fi
|
||||
|
||||
echo "waiting for device"
|
||||
adb root && adb wait-for-device remount && adb sync
|
||||
adb root && adb wait-for-device remount
|
||||
|
||||
adb shell /system/bin/oemcrypto_test
|
||||
adb shell /system/bin/request_license_test
|
||||
|
||||
Reference in New Issue
Block a user