hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Meta-selftest: Checkbashisms
 
if [ ! -f $FTRACETEST_ROOT/ftracetest ]; then
  echo "Hmm, we can not find ftracetest"
  exit_unresolved
fi
 
if ! which checkbashisms > /dev/null 2>&1 ; then
  echo "No checkbashisms found. skipped."
  exit_unresolved
fi
 
checkbashisms $FTRACETEST_ROOT/ftracetest
checkbashisms $FTRACETEST_ROOT/test.d/functions
for t in $(find $FTRACETEST_ROOT/test.d -name \*.tc); do
  checkbashisms $t
done
 
exit 0