fstests: convert remaining tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 446
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc.
4 #
5 # FS QA Test No. 446
6 #
7 # checkbashisms on all /bin/sh scripts.  This is a maintainer script.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=1        # failure is the default!
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17
18 # get standard environment
19 . ./common/rc
20
21 # real QA test starts here
22 _supported_fs xfs
23 _supported_os Linux
24 _require_command "$CHECKBASHISMS_PROG" checkbashisms
25
26 test -z "$WORKAREA" && _notrun "Can't find xfsprogs source"
27
28 rm -f $seqres.full
29
30 echo "Silence is golden"
31 find $WORKAREA -type f -name 'xfs*.sh' -print0 | xargs -0 grep '^#!.*/bin/sh' | sed -e 's/:.*$//g' | while read f; do
32         $CHECKBASHISMS_PROG $f
33 done
34
35 status=0