diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-06-27 07:59:09 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-06-27 07:59:09 +0000 |
commit | a0b75f7da77673ad1193c6f7e28fd7ae38769ba5 (patch) | |
tree | 7f0e98f747dbbf86a948d380092875fd300f5168 /testsuite/build_farm | |
parent | 39a265ae20a7ffcc264db6ab2838f40e90db5bf4 (diff) | |
download | samba-a0b75f7da77673ad1193c6f7e28fd7ae38769ba5.tar.gz samba-a0b75f7da77673ad1193c6f7e28fd7ae38769ba5.tar.bz2 samba-a0b75f7da77673ad1193c6f7e28fd7ae38769ba5.zip |
Add the generic funcions file for the basicsmb tests
Andrew Bartlett
(This used to be commit b28baf71a7d947cfe8bda546f4e70194da0781da)
Diffstat (limited to 'testsuite/build_farm')
-rw-r--r-- | testsuite/build_farm/basicsmb.fns | 21 |
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 0000000000..0708e2f89a --- /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 +} |