fix number of arguments to AC_DEFINE
[xfstests-dev.git] / 191
1 #!/bin/sh
2 # FS QA Test No. 191
3 #
4 # To call into the nfs4acl qa suite of Andreas Gruenbacher.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2008 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=tes@emu.melbourne.sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.filter
24
25 # real QA test starts here
26
27 # Modify as appropriate.
28 _supported_fs xfs
29 _supported_os Linux
30
31 _require_scratch
32 _scratch_mkfs_xfs -i nfs4acl 1>$tmp.mkfs 2>$seq.full
33 if [ $? -ne 0 ]
34 then
35         _notrun "no mkfs support for NFS v4 ACLs"
36 fi
37
38 _scratch_mount 2>/dev/null
39 if [ $? -ne 0 ]
40 then
41         _notrun "no kernel mount support for NFS v4 ACLs"
42 fi
43
44 set_prog_path nfs4acl >>$seq.full
45 if [ $? -ne 0 ]
46 then
47         _notrun "no nfs4acl utility found"
48 fi
49
50 cd $SCRATCH_MNT
51 for file in $here/nfs4acl/*.test
52 do
53         print_file=`echo $file | sed 's/.*nfs4acl/nfs4acl/'`
54         echo ""
55         echo "*** $print_file ***"
56         echo ""
57         $here/nfs4acl/run $file
58 done
59
60 # success, all done
61 status=0
62 exit