diff options
Diffstat (limited to 'tests/xfs/191')
-rwxr-xr-x | tests/xfs/191 | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/tests/xfs/191 b/tests/xfs/191 new file mode 100755 index 00000000..3120dcb0 --- /dev/null +++ b/tests/xfs/191 @@ -0,0 +1,74 @@ +#!/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` +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>$seq.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 >>$seq.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 |