From df8e9c128716c89f5a1d58f032e3d641e033c8b0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Aug 2012 13:46:02 +1000 Subject: s3-selftest: Add a seperate test for ACL tests using vfstest This does not check for consistency or correctness yet, that will be done with python unit tests. The purpose of this test is to ensure that the vfstest wrapper doesn't crash. Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Aug 16 09:32:25 CEST 2012 on sn-devel-104 --- source3/script/tests/vfstest-acl/run.sh | 52 ++++++++++++++++++++++++++++ source3/script/tests/vfstest-acl/vfstest.cmd | 6 ++++ 2 files changed, 58 insertions(+) create mode 100755 source3/script/tests/vfstest-acl/run.sh create mode 100644 source3/script/tests/vfstest-acl/vfstest.cmd (limited to 'source3/script') diff --git a/source3/script/tests/vfstest-acl/run.sh b/source3/script/tests/vfstest-acl/run.sh new file mode 100755 index 0000000000..ea7a4cbb28 --- /dev/null +++ b/source3/script/tests/vfstest-acl/run.sh @@ -0,0 +1,52 @@ +#!/bin/sh +if [ $# -lt 2 ]; then +cat </dev/null 2>&1 + + if [ $? = 0 ] ; then + # got ACCESS_DENIED .. fail + echo vfstest got NT_STATUS_ACCESS_DENIED + false + else + true + fi +} + +testit "vfstest" test_vfstest || failed=`expr $failed + 1` + +exit $failed diff --git a/source3/script/tests/vfstest-acl/vfstest.cmd b/source3/script/tests/vfstest-acl/vfstest.cmd new file mode 100644 index 0000000000..19f5fd6900 --- /dev/null +++ b/source3/script/tests/vfstest-acl/vfstest.cmd @@ -0,0 +1,6 @@ +connect +open x RC 0700 +get_nt_acl x +set_nt_acl x G:DAD:P(A;OICI;0x001f01ff;;;BA)(A;OICI;0x001200a9;;;SO)(A;OICI;0x001f01ff;;;SY)(A;OICI;0x001200a9;;;AU) +get_nt_acl x +sys_acl_get_file x 0 -- cgit