diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 2002-11-15 13:53:03 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 2002-11-15 13:53:03 +0000 |
commit | 2662e351f2f8802a3bf13df3e7e3f0c1497fdb1c (patch) | |
tree | 757235b37841c9d4219193d9e1c83f3556deb5fb /testsuite | |
parent | 72e0cfbb42b474404a2f8040f84d3136d8abc97c (diff) | |
parent | 36441899e61a711b8fe03ec7b6f95973b1e69fc5 (diff) | |
download | samba-2662e351f2f8802a3bf13df3e7e3f0c1497fdb1c.tar.gz samba-2662e351f2f8802a3bf13df3e7e3f0c1497fdb1c.tar.xz samba-2662e351f2f8802a3bf13df3e7e3f0c1497fdb1c.zip |
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
Diffstat (limited to 'testsuite')
6 files changed, 36 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb-preexec.test b/testsuite/build_farm/basicsmb-preexec.test new file mode 100644 index 00000000000..bc87723700f --- /dev/null +++ b/testsuite/build_farm/basicsmb-preexec.test @@ -0,0 +1,28 @@ +. basicsmb.fns + +password=samba +(test_smb_conf_setup && test_smbpasswd $password ) || exit 1 + +rm -f $prefix/testdir/preexec_touch + +mode=PREEXEC +(test_listfilesauth $mode) || exit 1 + +if [ -f $prefix/testdir/preexec_touch ]; then + rm -f $prefix/testdir/preexec_touch +else + exit 1; +fi + +mode=PREEXEC_close +(test_listfilesauth $mode) || exit 1 + +if [ -f $prefix/testdir/preexec_touch ]; then + rm -f $prefix/testdir/preexec_touch +else + exit 1; +fi + +mode=PREEXEC_cl_fail +(test_listfilesauth_should_deny $mode) || exit 1 + diff --git a/testsuite/build_farm/basicsmb.smb.conf.preexec.template b/testsuite/build_farm/basicsmb.smb.conf.preexec.template new file mode 100644 index 00000000000..cc34872c5df --- /dev/null +++ b/testsuite/build_farm/basicsmb.smb.conf.preexec.template @@ -0,0 +1 @@ +preexec = /bin/sh PREFIX/lib/preexec diff --git a/testsuite/build_farm/basicsmb.smb.conf.preexec_cl_fail.template b/testsuite/build_farm/basicsmb.smb.conf.preexec_cl_fail.template new file mode 100644 index 00000000000..5578e7110e1 --- /dev/null +++ b/testsuite/build_farm/basicsmb.smb.conf.preexec_cl_fail.template @@ -0,0 +1,2 @@ +preexec close = yes +preexec = /bin/sh PREFIX/lib/preexec_does_not_exist
\ No newline at end of file diff --git a/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template b/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template new file mode 100644 index 00000000000..3aac6998bfc --- /dev/null +++ b/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template @@ -0,0 +1,2 @@ +preexec close = yes +preexec = /bin/sh PREFIX/lib/preexec diff --git a/testsuite/build_farm/basicsmb.smb.conf.validusers.template b/testsuite/build_farm/basicsmb.smb.conf.validusers.template new file mode 100644 index 00000000000..d4a85e0a028 --- /dev/null +++ b/testsuite/build_farm/basicsmb.smb.conf.validusers.template @@ -0,0 +1 @@ + valid users = WHOAMI diff --git a/testsuite/build_farm/preexec.template b/testsuite/build_farm/preexec.template new file mode 100644 index 00000000000..e417d6a0170 --- /dev/null +++ b/testsuite/build_farm/preexec.template @@ -0,0 +1,2 @@ +#!/bin/sh +echo "Test worked" > PREFIX/testdir/preexec_touch |