Files
apfstests/tests/xfs/191
T
Rich Johnston 0efd4f4d48 xfstests: cleanup duplicates in all tests
There are duplicate blank lines, comment hash and lines
containing duplicate seqres= declarations, remove them.

Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
2013-04-04 06:55:21 -05:00

76 lines
1.8 KiB
Bash
Executable File

#!/bin/bash
# FS QA Test No. 191
#
# To call into the nfs4acl qa suite of Andreas Gruenbacher.
#
#-----------------------------------------------------------------------
# Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#-----------------------------------------------------------------------
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# get standard environment, filters and checks
. ./common/rc
. ./common/filter
# real QA test starts here
# Modify as appropriate.
_supported_fs xfs
_supported_os Linux
_require_scratch
_scratch_mkfs_xfs -i nfs4acl 1>$tmp.mkfs 2>$seqres.full
if [ $? -ne 0 ]
then
_notrun "no mkfs support for NFS v4 ACLs"
fi
_scratch_mount 2>/dev/null
if [ $? -ne 0 ]
then
_notrun "no kernel mount support for NFS v4 ACLs"
fi
set_prog_path nfs4acl >>$seqres.full
if [ $? -ne 0 ]
then
_notrun "no nfs4acl utility found"
fi
cd $SCRATCH_MNT
for file in $here/nfs4acl/*.test
do
print_file=`echo $file | sed 's/.*nfs4acl/nfs4acl/'`
echo ""
echo "*** $print_file ***"
echo ""
$here/nfs4acl/run $file
done
# success, all done
status=0
exit