From c95a50cce5b3dbe6eaca819f9477d6f7275762d6 Mon Sep 17 00:00:00 2001 From: Paul Green Date: Wed, 23 Apr 2003 11:11:55 +0000 Subject: Move build farm template files to their own subdirectory so that their names can be shortened to 30 characters. Helps Stratus VOS, which has a 32-character file name limit. (This used to be commit 58a4be041ee92434672959b9df888cf1366bb02e) --- testsuite/build_farm/basicsmb.fns | 7 +++- .../basicsmb.smb.conf.hostsequiv.template | 3 -- .../basicsmb.smb.conf.invalidusers.template | 1 - .../build_farm/basicsmb.smb.conf.preexec.template | 1 - .../basicsmb.smb.conf.preexec_cl_fail.template | 2 - .../basicsmb.smb.conf.preexec_close.template | 2 - testsuite/build_farm/basicsmb.smb.conf.template | 49 ---------------------- .../basicsmb.smb.conf.validusers.template | 1 - testsuite/build_farm/preexec.template | 2 - testsuite/build_farm/template/basicsmb.smb.conf | 49 ++++++++++++++++++++++ .../template/basicsmb.smb.conf.hostsequiv | 3 ++ .../template/basicsmb.smb.conf.invalidusers | 1 + .../build_farm/template/basicsmb.smb.conf.preexec | 1 + .../template/basicsmb.smb.conf.preexec_cl_fl | 2 + .../template/basicsmb.smb.conf.preexec_close | 2 + .../template/basicsmb.smb.conf.validusers | 1 + testsuite/build_farm/template/preexec | 2 + 17 files changed, 66 insertions(+), 63 deletions(-) delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.hostsequiv.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.invalidusers.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.preexec.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.preexec_cl_fail.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.preexec_close.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.template delete mode 100644 testsuite/build_farm/basicsmb.smb.conf.validusers.template delete mode 100644 testsuite/build_farm/preexec.template create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.hostsequiv create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.invalidusers create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.preexec create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.preexec_cl_fl create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.preexec_close create mode 100644 testsuite/build_farm/template/basicsmb.smb.conf.validusers create mode 100644 testsuite/build_farm/template/preexec (limited to 'testsuite') diff --git a/testsuite/build_farm/basicsmb.fns b/testsuite/build_farm/basicsmb.fns index bb177704ef..4410feff3a 100644 --- a/testsuite/build_farm/basicsmb.fns +++ b/testsuite/build_farm/basicsmb.fns @@ -22,7 +22,7 @@ # says it's not done consistently. template_setup() { - cat $1.template | \ + cat template/$1 | \ sed "s|PREFIX|$prefix|g" | \ sed "s|BUILD_FARM|$test_root|g" | \ sed "s|WHOAMI|$whoami|g" | \ @@ -52,13 +52,16 @@ test_smb_conf_setup() { exit 1 esac +# Please keep these names under 15 characters, +# so that the final name is 31 characters or fewer. + template_smb_conf_setup template_smb_conf_setup .hostsequiv template_smb_conf_setup .validusers template_smb_conf_setup .invalidusers template_smb_conf_setup .preexec template_smb_conf_setup .preexec_close - template_smb_conf_setup .preexec_cl_fail + template_smb_conf_setup .preexec_cl_fl template_setup preexec lib/preexec diff --git a/testsuite/build_farm/basicsmb.smb.conf.hostsequiv.template b/testsuite/build_farm/basicsmb.smb.conf.hostsequiv.template deleted file mode 100644 index 750af74f59..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.hostsequiv.template +++ /dev/null @@ -1,3 +0,0 @@ - hostname lookups = no - hosts equiv=PREFIX/lib/hosts.equiv - auth methods = hostsequiv diff --git a/testsuite/build_farm/basicsmb.smb.conf.invalidusers.template b/testsuite/build_farm/basicsmb.smb.conf.invalidusers.template deleted file mode 100644 index a96a316db9..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.invalidusers.template +++ /dev/null @@ -1 +0,0 @@ - invalid users = WHOAMI diff --git a/testsuite/build_farm/basicsmb.smb.conf.preexec.template b/testsuite/build_farm/basicsmb.smb.conf.preexec.template deleted file mode 100644 index cc34872c5d..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.preexec.template +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 4a6fae57bc..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.preexec_cl_fail.template +++ /dev/null @@ -1,2 +0,0 @@ -preexec close = yes -preexec = PREFIX/lib/preexec_does_not_exist diff --git a/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template b/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template deleted file mode 100644 index 3aac6998bf..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.preexec_close.template +++ /dev/null @@ -1,2 +0,0 @@ -preexec close = yes -preexec = /bin/sh PREFIX/lib/preexec diff --git a/testsuite/build_farm/basicsmb.smb.conf.template b/testsuite/build_farm/basicsmb.smb.conf.template deleted file mode 100644 index 9b8483db16..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.template +++ /dev/null @@ -1,49 +0,0 @@ -[global] - netbios name = BUILDFARM - workgroup = TESTWG - log level = LOGLEVEL - debug timestamp = no - encrypt passwords = yes - server string = Samba %v Build Farm Tests - name resolve order = lmhosts - guest account = WHOAMI - domain logons = yes - - strict locking = yes - - include = PREFIX/lib/smb.conf.%L - - add machine script = useradd %u -d /dev/null -s /bin/false - - panic action = /bin/sh BUILD_FARM/samba/testsuite/build_farm/backtrace %d - - passdb backend = smbpasswd_nua - - non unix account range = 10000-200000 - map hidden = yes - create mask = 0777 - -[test] - path = PREFIX/testdir - read only = no - -[samba] - path = BUILD_FARM/samba - read only = yes - comment = Samba HEAD Sources - -[samba_2_2] - path = BUILD_FARM/samba_2_2 - read only = yes - comment = Samba 2.2. Sources - -[rsync] - path = BUILD_FARM/rsync - read only = yes - comment = Rsync Sources - -[guest_share] - path = PREFIX - guest ok = yes - read only = yes - comment = Unauthenticated share for use in share level test diff --git a/testsuite/build_farm/basicsmb.smb.conf.validusers.template b/testsuite/build_farm/basicsmb.smb.conf.validusers.template deleted file mode 100644 index d4a85e0a02..0000000000 --- a/testsuite/build_farm/basicsmb.smb.conf.validusers.template +++ /dev/null @@ -1 +0,0 @@ - valid users = WHOAMI diff --git a/testsuite/build_farm/preexec.template b/testsuite/build_farm/preexec.template deleted file mode 100644 index e417d6a017..0000000000 --- a/testsuite/build_farm/preexec.template +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -echo "Test worked" > PREFIX/testdir/preexec_touch diff --git a/testsuite/build_farm/template/basicsmb.smb.conf b/testsuite/build_farm/template/basicsmb.smb.conf new file mode 100644 index 0000000000..9b8483db16 --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf @@ -0,0 +1,49 @@ +[global] + netbios name = BUILDFARM + workgroup = TESTWG + log level = LOGLEVEL + debug timestamp = no + encrypt passwords = yes + server string = Samba %v Build Farm Tests + name resolve order = lmhosts + guest account = WHOAMI + domain logons = yes + + strict locking = yes + + include = PREFIX/lib/smb.conf.%L + + add machine script = useradd %u -d /dev/null -s /bin/false + + panic action = /bin/sh BUILD_FARM/samba/testsuite/build_farm/backtrace %d + + passdb backend = smbpasswd_nua + + non unix account range = 10000-200000 + map hidden = yes + create mask = 0777 + +[test] + path = PREFIX/testdir + read only = no + +[samba] + path = BUILD_FARM/samba + read only = yes + comment = Samba HEAD Sources + +[samba_2_2] + path = BUILD_FARM/samba_2_2 + read only = yes + comment = Samba 2.2. Sources + +[rsync] + path = BUILD_FARM/rsync + read only = yes + comment = Rsync Sources + +[guest_share] + path = PREFIX + guest ok = yes + read only = yes + comment = Unauthenticated share for use in share level test diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.hostsequiv b/testsuite/build_farm/template/basicsmb.smb.conf.hostsequiv new file mode 100644 index 0000000000..750af74f59 --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.hostsequiv @@ -0,0 +1,3 @@ + hostname lookups = no + hosts equiv=PREFIX/lib/hosts.equiv + auth methods = hostsequiv diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.invalidusers b/testsuite/build_farm/template/basicsmb.smb.conf.invalidusers new file mode 100644 index 0000000000..a96a316db9 --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.invalidusers @@ -0,0 +1 @@ + invalid users = WHOAMI diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.preexec b/testsuite/build_farm/template/basicsmb.smb.conf.preexec new file mode 100644 index 0000000000..cc34872c5d --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.preexec @@ -0,0 +1 @@ +preexec = /bin/sh PREFIX/lib/preexec diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.preexec_cl_fl b/testsuite/build_farm/template/basicsmb.smb.conf.preexec_cl_fl new file mode 100644 index 0000000000..4a6fae57bc --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.preexec_cl_fl @@ -0,0 +1,2 @@ +preexec close = yes +preexec = PREFIX/lib/preexec_does_not_exist diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.preexec_close b/testsuite/build_farm/template/basicsmb.smb.conf.preexec_close new file mode 100644 index 0000000000..3aac6998bf --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.preexec_close @@ -0,0 +1,2 @@ +preexec close = yes +preexec = /bin/sh PREFIX/lib/preexec diff --git a/testsuite/build_farm/template/basicsmb.smb.conf.validusers b/testsuite/build_farm/template/basicsmb.smb.conf.validusers new file mode 100644 index 0000000000..d4a85e0a02 --- /dev/null +++ b/testsuite/build_farm/template/basicsmb.smb.conf.validusers @@ -0,0 +1 @@ + valid users = WHOAMI diff --git a/testsuite/build_farm/template/preexec b/testsuite/build_farm/template/preexec new file mode 100644 index 0000000000..e417d6a017 --- /dev/null +++ b/testsuite/build_farm/template/preexec @@ -0,0 +1,2 @@ +#!/bin/sh +echo "Test worked" > PREFIX/testdir/preexec_touch -- cgit