mirror of https://github.com/thesofproject/sof.git
scripts/testbench: add set -e
Let's stop ignoring build and test failures. Start gradually with the
scripts involved in testbench, more files later.
Follow-up to to bug #2752 "host-testbench.sh ignores errors" and commit
ab421466af
("CI: Travis: enable host testbnech again") and
ab421466aff826~1
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
4b8cb6edc7
commit
19745de6e3
|
@ -11,6 +11,9 @@
|
|||
# ./scripts/host-testbench.sh
|
||||
#
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
function filesize() {
|
||||
du -b "$1" | awk '{print $1}'
|
||||
}
|
||||
|
@ -46,7 +49,7 @@ SOF_DIR=$SCRIPTS_DIR/../
|
|||
TESTBENCH_DIR=${SOF_DIR}/tools/test/audio
|
||||
INPUT_FILE_SIZE=10240
|
||||
|
||||
cd "$TESTBENCH_DIR" || exit 2
|
||||
cd "$TESTBENCH_DIR"
|
||||
rm -rf ./*.raw
|
||||
|
||||
# create input zeros raw file
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2018 Intel Corporation. All rights reserved.
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
SUPPORTED_PLATFORMS=(byt cht bdw hsw apl skl kbl cnl sue icl jsl \
|
||||
imx8 imx8x imx8m)
|
||||
BUILD_ROM=no
|
||||
|
@ -55,7 +58,7 @@ for arg in "$@"; do
|
|||
if [ x"$i" = x"$arg" ]; then
|
||||
PLATFORMS=("${PLATFORMS[@]}" "$i")
|
||||
platform=$i
|
||||
shift
|
||||
shift || true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
@ -84,9 +87,6 @@ then
|
|||
PRIVATE_KEY_OPTION="-DRIMAGE_PRIVATE_KEY=${RIMAGE_PRIVATE_KEY}"
|
||||
fi
|
||||
|
||||
# fail on any errors
|
||||
set -e
|
||||
|
||||
OLDPATH=$PATH
|
||||
WORKDIR="$pwd"
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2018-2020 Intel Corporation. All rights reserved.
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
COMP=$1
|
||||
DIRECTION=$2
|
||||
BITS_IN=$3
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2020 Intel Corporation. All rights reserved.
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
usage ()
|
||||
{
|
||||
echo "Usage: $0 <bits in> <bits out> <rate> <input> <output>"
|
||||
|
@ -14,7 +17,7 @@ main ()
|
|||
|
||||
if [ $# -ne 5 ]; then
|
||||
usage "$0"
|
||||
exit
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMP=eq-iir
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2018-2020 Intel Corporation. All rights reserved.
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
usage ()
|
||||
{
|
||||
echo "Usage: $1 <bits in> <bits out> <rate in> <rate out> <input> <output>"
|
||||
|
@ -14,7 +17,7 @@ main()
|
|||
|
||||
if [ $# -ne 6 ]; then
|
||||
usage "$0"
|
||||
exit
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMP=src
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2020 Intel Corporation. All rights reserved.
|
||||
|
||||
# stop on most errors
|
||||
set -e
|
||||
|
||||
usage ()
|
||||
{
|
||||
echo "Usage: $0 <bits in> <bits out> <rate> <input> <output>"
|
||||
|
@ -14,7 +17,7 @@ main ()
|
|||
|
||||
if [ $# -ne 5 ]; then
|
||||
usage "$0"
|
||||
exit
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMP=volume
|
||||
|
|
Loading…
Reference in New Issue