If the syscall for acl_get/acl_set returns ENOSYS and
authorTim Shimmin <tes@sgi.com>
Wed, 31 Jan 2001 07:08:16 +0000 (07:08 +0000)
committerTim Shimmin <tes@sgi.com>
Wed, 31 Jan 2001 07:08:16 +0000 (07:08 +0000)
hence the ACLs have been config'ed off,
then don't run the test.

051
common.rc

diff --git a/051 b/051
index 8b2796f229c65402502303ed923a05528d761682..a67869e434bb0acc4184fb81ae0d609dff4dbfe7 100755 (executable)
--- a/051
+++ b/051
@@ -40,7 +40,6 @@
 owner=tes@sgi.com
 
 seq=`basename $0`
-echo "QA output created by $seq"
 
 here=`pwd`
 tmp=/tmp/$$
@@ -86,6 +85,9 @@ _ls()
 #   -> this would be done by simultaneously matching on ACEs
 #   -> interesting if it allows user to specify ACEs in any order
 #
+_need_to_be_root
+
+rm -f $seq.full
 
 acl1=1001;acl2=1002;acl3=1003
 
@@ -98,8 +100,18 @@ rm -rf $seq.dir1
 mkdir $seq.dir1
 cd $seq.dir1
 
+# test if acl_get syscall is operational
+# and hence the ACL config has been turned on  
+touch syscalltest
+if chacl -l syscalltest 2>&1 | tee -a $here/$seq.full | grep 'Function not implemented' >/dev/null
+then
+  cd $here
+  _notrun "requires kernel ACL support"
+fi
+
 #-------------------------------------------------------
 # real QA test starts here
+echo "QA output created by $seq"
 
 echo ""
 echo "=== Test minimal ACE ==="
index 0cca139f3096d6702ea166374ff5f064185ebb21..82cea6a679246464c56341e309f9bb2a76956945 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -267,6 +267,7 @@ _is_block_dev()
 _notrun()
 {
     echo "$*" >$seq.notrun
+    echo "$seq not run: $*"
     status=0
     exit
 }