File tree Expand file tree Collapse file tree 1 file changed +41
-41
lines changed
Expand file tree Collapse file tree 1 file changed +41
-41
lines changed Original file line number Diff line number Diff 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
104104delete_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
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
141141fi
142142
You can’t perform that action at this time.
0 commit comments