xfs/004: don't fail test due to realtime files
[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 _require_command "$CHECKBASHISMS_PROG" checkbashisms
24
25 test -z "$WORKAREA" && _notrun "Can't find xfsprogs source"
26
27 rm -f $seqres.full
28
29 echo "Silence is golden"
30 find $WORKAREA -type f -name 'xfs*.sh' -print0 | xargs -0 grep '^#!.*/bin/sh' | sed -e 's/:.*$//g' | while read f; do
31         $CHECKBASHISMS_PROG $f
32 done
33
34 status=0