Verify OEMCrypto supports Level 1
Merge from widevine repo of http://go/wvgerrit/14708 This CL adds a test to verify that oemcrypto is a level 1 device. It is part of oemcrypto_test_android.cpp, so it only applies to android devices and to the widevine buildbot which also runs the android tests. bug: 21814204 Change-Id: Icbcdd3496fb8a656891bd7c873c60cba23c9666a
This commit is contained in:
@@ -3,8 +3,16 @@
|
||||
final_result=0
|
||||
failed_tests=()
|
||||
|
||||
# Below, we will append filters to the exclusion portion of GTEST_FILTER, so we
|
||||
# need to guarantee it has one.
|
||||
if [ -z "$GTEST_FILTER" ]; then
|
||||
GTEST_FILTER="*"
|
||||
# If it wasn't set, make it add all tests, and remove none.
|
||||
GTEST_FILTER="*-"
|
||||
# if GTEST_FILTER already has a negative sign, we leave it alone.
|
||||
elif [ 0 -eq `expr index "$GTEST_FILTER" "-"` ]; then
|
||||
# If GTEST_FILTER was set, but does not have a negative sign, add one. This
|
||||
# gives gtest an empty list of tests to skip.
|
||||
GTEST_FILTER="$GTEST_FILTER-"
|
||||
fi
|
||||
|
||||
# Execute a command in "adb shell" and capture the result.
|
||||
@@ -28,7 +36,8 @@ fi
|
||||
echo "waiting for device"
|
||||
adb root && adb wait-for-device remount
|
||||
|
||||
adb_shell_run FORCE_LEVEL3_OEMCRYPTO=yes /system/bin/oemcrypto_test
|
||||
adb_shell_run GTEST_FILTER="$GTEST_FILTER:*Level1Required" FORCE_LEVEL3_OEMCRYPTO=yes \
|
||||
/system/bin/oemcrypto_test
|
||||
adb_shell_run /system/bin/oemcrypto_test
|
||||
adb_shell_run /system/bin/request_license_test
|
||||
# cdm_extended_duration_test takes >30 minutes to run.
|
||||
|
||||
Reference in New Issue
Block a user