mirror of https://github.com/thesofproject/sof.git
Tools: Test: Audio: Convert tabs to spaces in comp_run.sh
No script changes, just unify shell script style to be with indents with spaces instead of both tabs and spaces. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
b4af9d93a1
commit
43b08c62b5
|
@ -50,61 +50,61 @@ parse_args ()
|
||||||
XTRUN=
|
XTRUN=
|
||||||
|
|
||||||
while getopts ":he:t:" opt; do
|
while getopts ":he:t:" opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
e)
|
e)
|
||||||
FN_TRACE="${OPTARG}"
|
FN_TRACE="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
h)
|
h)
|
||||||
usage
|
usage
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
t)
|
t)
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
source "${OPTARG}"
|
source "${OPTARG}"
|
||||||
SOURCED_CONFIG=true
|
SOURCED_CONFIG=true
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
shift $((OPTIND -1))
|
shift $((OPTIND -1))
|
||||||
|
|
||||||
if ! "$SOURCED_CONFIG"; then
|
if ! "$SOURCED_CONFIG"; then
|
||||||
[ $# -eq 8 ] || {
|
[ $# -eq 8 ] || {
|
||||||
usage "$0"
|
usage "$0"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
COMP="$1"
|
COMP="$1"
|
||||||
DIRECTION="$2"
|
DIRECTION="$2"
|
||||||
BITS_IN="$3"
|
BITS_IN="$3"
|
||||||
BITS_OUT="$4"
|
BITS_OUT="$4"
|
||||||
FS_IN="$5"
|
FS_IN="$5"
|
||||||
FS_OUT="$6"
|
FS_OUT="$6"
|
||||||
FN_IN="$7"
|
FN_IN="$7"
|
||||||
FN_OUT="$8"
|
FN_OUT="$8"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $BITS_OUT ]]; then
|
if [[ -z $BITS_OUT ]]; then
|
||||||
BITS_OUT=$BITS_IN
|
BITS_OUT=$BITS_IN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $FS_OUT ]]; then
|
if [[ -z $FS_OUT ]]; then
|
||||||
FS_OUT=$FS_IN
|
FS_OUT=$FS_IN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $CHANNELS_OUT ]]; then
|
if [[ -z $CHANNELS_OUT ]]; then
|
||||||
CHANNELS_OUT=$CHANNELS_IN
|
CHANNELS_OUT=$CHANNELS_IN
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
delete_file_check ()
|
delete_file_check ()
|
||||||
{
|
{
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
rm -f "$1"
|
rm -f "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,11 +113,11 @@ run_testbench ()
|
||||||
delete_file_check "$FN_OUT"
|
delete_file_check "$FN_OUT"
|
||||||
delete_file_check "$FN_TRACE"
|
delete_file_check "$FN_TRACE"
|
||||||
if [ -z "$FN_TRACE" ]; then
|
if [ -z "$FN_TRACE" ]; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
$VALGRIND_CMD $CMD
|
$VALGRIND_CMD $CMD
|
||||||
else
|
else
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
$VALGRIND_CMD $CMD 2> "$FN_TRACE"
|
$VALGRIND_CMD $CMD 2> "$FN_TRACE"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,8 +135,8 @@ else
|
||||||
source "$BUILD_DIR"/xtrun_env.sh
|
source "$BUILD_DIR"/xtrun_env.sh
|
||||||
XTRUN_CMD=$XTENSA_PATH/$XTRUN
|
XTRUN_CMD=$XTENSA_PATH/$XTRUN
|
||||||
if $VALGRIND; then
|
if $VALGRIND; then
|
||||||
>&2 printf "WARNING: Ignoring VALGRIND with xt-run\n"
|
>&2 printf "WARNING: Ignoring VALGRIND with xt-run\n"
|
||||||
VALGRIND=false
|
VALGRIND=false
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue