1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Meta-selftest: Checkbashisms 3 # description: Meta-selftest: Checkbashisms 4 4 5 if [ ! -f $FTRACETEST_ROOT/ftracetest ]; then 5 if [ ! -f $FTRACETEST_ROOT/ftracetest ]; then 6 echo "Hmm, we can not find ftracetest" 6 echo "Hmm, we can not find ftracetest" 7 exit_unresolved 7 exit_unresolved 8 fi 8 fi 9 9 10 if ! which checkbashisms > /dev/null 2>&1 ; th 10 if ! which checkbashisms > /dev/null 2>&1 ; then 11 echo "No checkbashisms found. skipped." 11 echo "No checkbashisms found. skipped." 12 exit_unresolved 12 exit_unresolved 13 fi 13 fi 14 14 15 checkbashisms $FTRACETEST_ROOT/ftracetest 15 checkbashisms $FTRACETEST_ROOT/ftracetest 16 checkbashisms $FTRACETEST_ROOT/test.d/function 16 checkbashisms $FTRACETEST_ROOT/test.d/functions 17 for t in $(find $FTRACETEST_ROOT/test.d -name 17 for t in $(find $FTRACETEST_ROOT/test.d -name \*.tc); do 18 checkbashisms $t 18 checkbashisms $t 19 done 19 done 20 20 21 exit 0 21 exit 0
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.