Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ec75ad4 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "libeffects: Added support to test effects using 32 and 64 bit binaries" into qt-dev

parents 85ff8851 6bdd081e
Loading
Loading
Loading
Loading
+60 −34
Original line number Diff line number Diff line
@@ -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"
@@ -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[*]}
@@ -96,7 +122,7 @@ do
                    echo "error: $shell_ret"
                    ((++error_count))
                fi

            done
        done
    done
done