Loading media/libeffects/lvm/tests/build_and_run_all_unit_tests.sh +60 −34 Original line number Diff line number Diff line Loading @@ -24,9 +24,32 @@ echo "========================================" echo "testing lvm" adb shell mkdir -p $testdir adb push $ANDROID_BUILD_TOP/cts/tests/tests/media/res/raw/sinesweepraw.raw $testdir adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir adb push $OUT/testcases/snr/arm64/snr $testdir E_VAL=1 if [ -z "$1" ] then cmds=("adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir" "adb push $OUT/testcases/lvmtest/arm/lvmtest $testdir" ) elif [ "$1" == "32" ] then cmds="adb push $OUT/testcases/lvmtest/arm/lvmtest $testdir" elif [ "$1" == "64" ] then cmds="adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir" else echo "" echo "Invalid \"val\"" echo "Usage:" echo " "$0" [val]" echo " where, val can be either 32 or 64." echo "" echo " If val is not specified then both 32 bit and 64 bit binaries" echo " are tested." exit $E_VAL fi flags_arr=( "-csE" "-eqE" Loading Loading @@ -61,6 +84,9 @@ fs_arr=( # run multichannel effects at different configs, saving only the stereo channel # pair. error_count=0 for cmd in "${cmds[@]}" do $cmd for flags in "${flags_arr[@]}" do for fs in ${fs_arr[*]} Loading Loading @@ -96,7 +122,7 @@ do echo "error: $shell_ret" ((++error_count)) fi done done done done Loading Loading
media/libeffects/lvm/tests/build_and_run_all_unit_tests.sh +60 −34 Original line number Diff line number Diff line Loading @@ -24,9 +24,32 @@ echo "========================================" echo "testing lvm" adb shell mkdir -p $testdir adb push $ANDROID_BUILD_TOP/cts/tests/tests/media/res/raw/sinesweepraw.raw $testdir adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir adb push $OUT/testcases/snr/arm64/snr $testdir E_VAL=1 if [ -z "$1" ] then cmds=("adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir" "adb push $OUT/testcases/lvmtest/arm/lvmtest $testdir" ) elif [ "$1" == "32" ] then cmds="adb push $OUT/testcases/lvmtest/arm/lvmtest $testdir" elif [ "$1" == "64" ] then cmds="adb push $OUT/testcases/lvmtest/arm64/lvmtest $testdir" else echo "" echo "Invalid \"val\"" echo "Usage:" echo " "$0" [val]" echo " where, val can be either 32 or 64." echo "" echo " If val is not specified then both 32 bit and 64 bit binaries" echo " are tested." exit $E_VAL fi flags_arr=( "-csE" "-eqE" Loading Loading @@ -61,6 +84,9 @@ fs_arr=( # run multichannel effects at different configs, saving only the stereo channel # pair. error_count=0 for cmd in "${cmds[@]}" do $cmd for flags in "${flags_arr[@]}" do for fs in ${fs_arr[*]} Loading Loading @@ -96,7 +122,7 @@ do echo "error: $shell_ret" ((++error_count)) fi done done done done Loading