diff options
Diffstat (limited to 'testsuite/build_farm')
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 0000000000..bc87723700 --- /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 0000000000..cc34872c5d --- /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 0000000000..5578e7110e --- /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 0000000000..3aac6998bf --- /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 0000000000..d4a85e0a02 --- /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 0000000000..e417d6a017 --- /dev/null +++ b/testsuite/build_farm/preexec.template @@ -0,0 +1,2 @@ +#!/bin/sh +echo "Test worked" > PREFIX/testdir/preexec_touch |