summaryrefslogtreecommitdiff
path: root/tests/xfs/446
blob: 2481bbaf1e5be572d316d53052a7d247e76d9ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2018 Oracle, Inc.
#
# FS QA Test No. 446
#
# checkbashisms on all /bin/sh scripts.  This is a maintainer script.
#
. ./common/preamble
_begin_fstest auto quick

# get standard environment

# real QA test starts here
_supported_fs xfs
_require_command "$CHECKBASHISMS_PROG" checkbashisms

test -z "$WORKAREA" && _notrun "Can't find xfsprogs source"

echo "Silence is golden"
find $WORKAREA -type f -name 'xfs*.sh' -print0 | xargs -0 grep '^#!.*/bin/sh' | sed -e 's/:.*$//g' | while read f; do
	$CHECKBASHISMS_PROG $f
done

status=0