summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb.test
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/build_farm/basicsmb.test')
-rw-r--r--testsuite/build_farm/basicsmb.test57
1 files changed, 0 insertions, 57 deletions
diff --git a/testsuite/build_farm/basicsmb.test b/testsuite/build_farm/basicsmb.test
deleted file mode 100644
index 27808a434f..0000000000
--- a/testsuite/build_farm/basicsmb.test
+++ /dev/null
@@ -1,57 +0,0 @@
-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
-
-}
-
-test_smbpasswd() {
- ( 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)!"
- return 1
- fi
- return 0
-}
-
-test_sharelist() {
- if $prefix/bin/smbclient -U$whoami% -L $host; then
- echo "smbd listed shares OK"
- else
- echo "listing shares with smbd failed with $?"
- return 1
- fi
- return 0
-}
-
-test_listfiles() {
- if $prefix/bin/smbclient //$host/samba -U$whoami% -c 'ls'; then
- echo "listed files OK"
- else
- echo "listing files with smbd failed with $?"
- return 1
- fi
- return 0
-}
-
-test_listfilesauth() {
- if $prefix/bin/smbclient //$host/samba_2_2 -U$whoami%$password -c 'ls'; then
- echo "listed files OK"
- else
- echo "listing files with smbd failed with $?"
- return 1
- fi
- return 0
-}
-
-
-(test_smb_conf_setup && test_smbpasswd) || exit 1
-
-test_sharelist
-test_listfiles
-test_listfilesauth
-
-