Merge "Move WV unit/integration tests to /data/nativetest"
This commit is contained in:
@@ -64,19 +64,19 @@ fi
|
|||||||
|
|
||||||
# Push the files to the device
|
# Push the files to the device
|
||||||
|
|
||||||
# Given a local path to a file, this will try to push it to /data/bin.
|
# Given a local path to a file, this will try to push it to /data/nativetest.
|
||||||
# If that fails, an error message will be printed.
|
# If that fails, an error message will be printed.
|
||||||
try_adb_push() {
|
try_adb_push() {
|
||||||
# android-tests.zip requires /data/bin, we should use the same
|
# android-tests.zip requires /data/nativetest, we should use the same
|
||||||
if [ -f $OUT/data/bin/$1 ]; then
|
if [ -f $OUT/data/nativetest/$1 ]; then
|
||||||
test_file=$OUT/data/bin/$1
|
test_file=$OUT/data/nativetest/$1
|
||||||
else
|
else
|
||||||
echo "I cannot find $1"
|
echo "I cannot find $1"
|
||||||
echo "I think it should be in $OUT/data/bin"
|
echo "I think it should be in $OUT/data/nativetest"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
adb $SERIAL_NUM shell mkdir -p /data/bin
|
adb $SERIAL_NUM shell mkdir -p /data/nativetest
|
||||||
adb $SERIAL_NUM push $test_file /data/bin/$1
|
adb $SERIAL_NUM push $test_file /data/nativetest/$1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Push the tests to the device
|
# Push the tests to the device
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ LOCAL_CFLAGS += -DUNIT_TEST
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ LOCAL_CFLAGS += -DUNIT_TEST
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
@@ -116,8 +116,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
@@ -115,8 +115,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
@@ -176,8 +176,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ fi
|
|||||||
adb_shell_run() {
|
adb_shell_run() {
|
||||||
local test_file=$1
|
local test_file=$1
|
||||||
shift
|
shift
|
||||||
if adb $SERIAL_NUM shell ls /data/bin/$test_file &> /dev/null; then
|
if adb $SERIAL_NUM shell ls /data/nativetest/$test_file &> /dev/null; then
|
||||||
test_file=/data/bin/$test_file
|
test_file=/data/nativetest/$test_file
|
||||||
else
|
else
|
||||||
echo "Please install the test on the device in /data/bin, "
|
echo "Please install the test on the device in /data/nativetest, "
|
||||||
echo "or begin execution by running ./build_and_run_all_unit_tests.sh"
|
echo "or begin execution by running ./build_and_run_all_unit_tests.sh"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
@@ -87,8 +87,8 @@ LOCAL_MODULE_TAGS := tests
|
|||||||
LOCAL_MODULE_OWNER := widevine
|
LOCAL_MODULE_OWNER := widevine
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
|
||||||
# When built, explicitly put it in the DATA/bin directory.
|
# When built, explicitly put it in the DATA/nativetest directory.
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/bin
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
||||||
|
|
||||||
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
||||||
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
||||||
|
|||||||
Reference in New Issue
Block a user