Merge "Rename conditional flag and remove log spam." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-30 18:41:32 +00:00
committed by Android (Google) Code Review
5 changed files with 13 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ fi
# copy files to a specific android device by providing a serial number.
# The default build target is for AIDL service, use "-t hidl" to
# build for HIDL service.
BUILD_TARGET=""
WV_UNITTESTS_BUILD_TARGET=""
NUM_CORES=1
SERIAL_NUM=""
while getopts "j:s:t:" opt; do
@@ -23,7 +23,7 @@ while getopts "j:s:t:" opt; do
SERIAL_NUM="-s $OPTARG"
;;
t)
BUILD_TARGET="BUILD_TARGET=$OPTARG"
WV_UNITTESTS_BUILD_TARGET="WV_UNITTESTS_BUILD_TARGET=$OPTARG"
;;
esac
done
@@ -34,7 +34,7 @@ done
# Build all the targets
# This list is slightly longer than the one in run_all_unit_tests.sh because
# it does not run very long tests or tests needing special setup.
WV_TEST_TARGETS="base64_test \
WV_UNITTESTS="base64_test \
buffer_reader_test \
cdm_coverage_test \
cdm_engine_test \
@@ -80,7 +80,7 @@ WV_TEST_TARGETS="base64_test \
cd $ANDROID_BUILD_TOP
pwd
m -j $NUM_CORES $WV_TEST_TARGETS $BUILD_TARGET
m -j $NUM_CORES $WV_UNITTESTS $WV_UNITTESTS_BUILD_TARGET
# Detect the device and check if Verity is going to stop the script from working
@@ -115,6 +115,6 @@ try_adb_push() {
}
# Push the tests to the device
for f in $WV_TEST_TARGETS; do
for f in $WV_UNITTESTS; do
try_adb_push $f
done