summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-06-27 07:59:09 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-06-27 07:59:09 +0000
commitb28baf71a7d947cfe8bda546f4e70194da0781da (patch)
tree8f573159c34ba5bf7a1a14b788c90c6324163d0a /testsuite
parent9874df0c2242ee46182744eabae14829c3b5f21e (diff)
downloadsamba-b28baf71a7d947cfe8bda546f4e70194da0781da.tar.gz
samba-b28baf71a7d947cfe8bda546f4e70194da0781da.tar.xz
samba-b28baf71a7d947cfe8bda546f4e70194da0781da.zip
Add the generic funcions file for the basicsmb tests
Andrew Bartlett
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/build_farm/basicsmb.fns21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb.fns b/testsuite/build_farm/basicsmb.fns
new file mode 100644
index 00000000000..0708e2f89a2
--- /dev/null
+++ b/testsuite/build_farm/basicsmb.fns
@@ -0,0 +1,21 @@
+test_smb_conf_setup() {
+ cat basicsmb.smb.conf.template | sed "s|PREFIX|$prefix|g" | sed "s|BUILD_FARM|$pwd|g" > $prefix/lib/smb.conf
+ echo "Setting up smb.conf:"
+ cat $prefix/lib/smb.conf
+
+ echo "127.0.0.1 localhost">$prefix/lib/lmhosts
+
+}
+
+test_smbpasswd() {
+ echo "( echo $password ; echo $password; ) | $prefix/bin/smbpasswd -L -s -a $whoami"
+ ( echo $password ; echo $password; ) | $prefix/bin/smbpasswd -L -s -a $whoami
+ status=$?
+ if [ $status = 0 ]; then
+ echo "smbpasswd correctly set inital password ($password)"
+ else
+ echo "smbpasswd failed to set inital password ($password)! (status $status)"
+ return 1
+ fi
+ return 0
+}