18c2ecf20Sopenharmony_ci#!/bin/sh 28c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 38c2ecf20Sopenharmony_ci# description: Meta-selftest: Checkbashisms 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciif [ ! -f $FTRACETEST_ROOT/ftracetest ]; then 68c2ecf20Sopenharmony_ci echo "Hmm, we can not find ftracetest" 78c2ecf20Sopenharmony_ci exit_unresolved 88c2ecf20Sopenharmony_cifi 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciif ! which checkbashisms > /dev/null 2>&1 ; then 118c2ecf20Sopenharmony_ci echo "No checkbashisms found. skipped." 128c2ecf20Sopenharmony_ci exit_unresolved 138c2ecf20Sopenharmony_cifi 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cicheckbashisms $FTRACETEST_ROOT/ftracetest 168c2ecf20Sopenharmony_cicheckbashisms $FTRACETEST_ROOT/test.d/functions 178c2ecf20Sopenharmony_cifor t in $(find $FTRACETEST_ROOT/test.d -name \*.tc); do 188c2ecf20Sopenharmony_ci checkbashisms $t 198c2ecf20Sopenharmony_cidone 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciexit 0 22