Skip to content

Commit acdc21f

Browse files
committed
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>
1 parent 85dca61 commit acdc21f

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

tools/test/audio/comp_run.sh

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -50,61 +50,61 @@ parse_args ()
5050
XTRUN=
5151

5252
while getopts ":he:t:" opt; do
53-
case "${opt}" in
54-
e)
55-
FN_TRACE="${OPTARG}"
56-
;;
57-
h)
58-
usage
59-
exit
60-
;;
61-
t)
62-
# shellcheck disable=SC1090
63-
source "${OPTARG}"
64-
SOURCED_CONFIG=true
65-
;;
66-
*)
67-
usage
68-
exit 1
69-
;;
70-
esac
53+
case "${opt}" in
54+
e)
55+
FN_TRACE="${OPTARG}"
56+
;;
57+
h)
58+
usage
59+
exit
60+
;;
61+
t)
62+
# shellcheck disable=SC1090
63+
source "${OPTARG}"
64+
SOURCED_CONFIG=true
65+
;;
66+
*)
67+
usage
68+
exit 1
69+
;;
70+
esac
7171
done
7272

7373
shift $((OPTIND -1))
7474

7575
if ! "$SOURCED_CONFIG"; then
76-
[ $# -eq 8 ] || {
77-
usage "$0"
78-
exit 1
79-
}
80-
81-
COMP="$1"
82-
DIRECTION="$2"
83-
BITS_IN="$3"
84-
BITS_OUT="$4"
85-
FS_IN="$5"
86-
FS_OUT="$6"
87-
FN_IN="$7"
88-
FN_OUT="$8"
76+
[ $# -eq 8 ] || {
77+
usage "$0"
78+
exit 1
79+
}
80+
81+
COMP="$1"
82+
DIRECTION="$2"
83+
BITS_IN="$3"
84+
BITS_OUT="$4"
85+
FS_IN="$5"
86+
FS_OUT="$6"
87+
FN_IN="$7"
88+
FN_OUT="$8"
8989
fi
9090

9191
if [[ -z $BITS_OUT ]]; then
92-
BITS_OUT=$BITS_IN
92+
BITS_OUT=$BITS_IN
9393
fi
9494

9595
if [[ -z $FS_OUT ]]; then
96-
FS_OUT=$FS_IN
96+
FS_OUT=$FS_IN
9797
fi
9898

9999
if [[ -z $CHANNELS_OUT ]]; then
100-
CHANNELS_OUT=$CHANNELS_IN
100+
CHANNELS_OUT=$CHANNELS_IN
101101
fi
102102
}
103103

104104
delete_file_check ()
105105
{
106106
if [ -f "$1" ]; then
107-
rm -f "$1"
107+
rm -f "$1"
108108
fi
109109
}
110110

@@ -113,11 +113,11 @@ run_testbench ()
113113
delete_file_check "$FN_OUT"
114114
delete_file_check "$FN_TRACE"
115115
if [ -z "$FN_TRACE" ]; then
116-
# shellcheck disable=SC2086
117-
$VALGRIND_CMD $CMD
116+
# shellcheck disable=SC2086
117+
$VALGRIND_CMD $CMD
118118
else
119-
# shellcheck disable=SC2086
120-
$VALGRIND_CMD $CMD 2> "$FN_TRACE"
119+
# shellcheck disable=SC2086
120+
$VALGRIND_CMD $CMD 2> "$FN_TRACE"
121121
fi
122122
}
123123

@@ -135,8 +135,8 @@ else
135135
source "$BUILD_DIR"/xtrun_env.sh
136136
XTRUN_CMD=$XTENSA_PATH/$XTRUN
137137
if $VALGRIND; then
138-
>&2 printf "WARNING: Ignoring VALGRIND with xt-run\n"
139-
VALGRIND=false
138+
>&2 printf "WARNING: Ignoring VALGRIND with xt-run\n"
139+
VALGRIND=false
140140
fi
141141
fi
142142

0 commit comments

Comments
 (0)