Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/host-testbench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# ./scripts/host-testbench.sh
#

# stop on most errors
set -e

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the same comments as below ' fail on errors'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done except I changed it to "stop on most errors". For legacy reasons set -e doesn't catch all errors, it catches most of them.


function filesize() {
du -b "$1" | awk '{print $1}'
}
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions scripts/xtensa-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions tools/test/audio/comp_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tools/test/audio/eqiir_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand All @@ -14,7 +17,7 @@ main ()

if [ $# -ne 5 ]; then
usage "$0"
exit
exit 1
fi

COMP=eq-iir
Expand Down
5 changes: 4 additions & 1 deletion tools/test/audio/src_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand All @@ -14,7 +17,7 @@ main()

if [ $# -ne 6 ]; then
usage "$0"
exit
exit 1
fi

COMP=src
Expand Down
5 changes: 4 additions & 1 deletion tools/test/audio/volume_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand All @@ -14,7 +17,7 @@ main ()

if [ $# -ne 5 ]; then
usage "$0"
exit
exit 1
fi

COMP=volume
Expand Down