tools/testing/selftests/ftrace/test.d/selftest/bashisms.tc

Source file repositories/reference/linux-study-clean/tools/testing/selftests/ftrace/test.d/selftest/bashisms.tc

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/ftrace/test.d/selftest/bashisms.tc
Extension
.tc
Size
491 bytes
Lines
22
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/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

Annotation

Implementation Notes