summaryrefslogtreecommitdiff
path: root/source4/script/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-14 01:33:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:36 -0500
commitd9665a737b978d0fcca1fd23ab04858e2fa81284 (patch)
treead48d7d5f6a48e40db5608a52e77b8b4cc4d89f5 /source4/script/tests
parent1d1315adcd429cdfcecc1bfa2df554481ba60b5f (diff)
downloadsamba-d9665a737b978d0fcca1fd23ab04858e2fa81284.tar.gz
samba-d9665a737b978d0fcca1fd23ab04858e2fa81284.tar.bz2
samba-d9665a737b978d0fcca1fd23ab04858e2fa81284.zip
r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests. (This used to be commit 7e6357f21350d264ebedabd34f2b8f42fc0427ff)
Diffstat (limited to 'source4/script/tests')
-rwxr-xr-xsource4/script/tests/test_smbclient.sh90
-rwxr-xr-xsource4/script/tests/tests_all.sh2
2 files changed, 1 insertions, 91 deletions
diff --git a/source4/script/tests/test_smbclient.sh b/source4/script/tests/test_smbclient.sh
deleted file mode 100755
index 08f5cad618..0000000000
--- a/source4/script/tests/test_smbclient.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-
-if [ $# -lt 5 ]; then
-cat <<EOF
-Usage: test_smbclient.sh SERVER USERNAME PASSWORD DOMAIN PREFIX
-EOF
-exit 1;
-fi
-
-SERVER=$1
-USERNAME=$2
-PASSWORD=$3
-DOMAIN=$4
-PREFIX=$5
-shift 5
-failed=0
-
-runcmd() {
- name="$1"
- shift
- testit "$name" $VALGRIND bin/smbclient $CONFIGURATION //$SERVER/tmp -W "$DOMAIN "-U"$USERNAME"%"$PASSWORD" $@
-}
-
-incdir=`dirname $0`
-. $incdir/test_functions.sh
-
-# Generate random file
-cat >tmpfile<<EOF
-foo
-bar
-bloe
-blah
-EOF
-
-
-# put that file
-echo mput tmpfile | runcmd "MPutting file" || failed=`expr $failed + 1`
-# check file info
-echo altname tmpfile | runcmd "Getting alternative name" || failed=`expr $failed + 1`
-# run allinfo on that file
-echo allinfo tmpfile | runcmd "Checking info on file" || failed=`expr $failed + 1`
-# get that file
-mv tmpfile tmpfile-old
-echo mget tmpfile | runcmd "MGetting file" || failed=`expr $failed + 1`
-# remove that file
-echo rm tmpfile | runcmd "Removing file" || failed=`expr $failed + 1`
-# compare locally
-testit "Comparing files" diff tmpfile-old tmpfile || failed=`expr $failed + 1`
-# create directory
-echo mkdir bla | runcmd "Creating directory" || failed=`expr $failed + 1`
-# cd to directory
-echo cd bla | runcmd "Changing directory" || failed=`expr $failed + 1`
-# cd to top level directory
-echo cd .. | runcmd "Going back" || failed=`expr $failed + 1`
-# remove directory
-echo rmdir bla | runcmd "Removing directory" || failed=`expr $failed + 1`
-# enable recurse, create nested directory
-echo "recurse; echo mkdir bla/bloe; exit" | runcmd "Creating nested directory" || failed=`expr $failed + 1`
-# remove parent directory
-echo rmdir bla/bloe | runcmd "Removing directory" || failed=`expr $failed + 1`
-# remove child directory
-echo rmdir bla | runcmd "Removing directory" || failed=`expr $failed + 1`
-# run fsinfo
-echo fsinfo objectid | runcmd "Getting file system info" || failed=`expr $failed + 1`
-
-# put that file
-echo put tmpfile | runcmd "Putting file" || failed=`expr $failed + 1`
-# get that file
-mv tmpfile tmpfile-old
-echo get tmpfile | runcmd "Getting file" || failed=`expr $failed + 1`
-# remove that file
-echo rm tmpfile | runcmd "Removing file" || failed=`expr $failed + 1`
-# compare locally
-testit "Comparing files" diff tmpfile-old tmpfile || failed=`expr $failed + 1`
-# put that file
-echo put tmpfile tmpfilex | runcmd "Putting file with different name" || failed=`expr $failed + 1`
-# get that file
-echo get tmpfilex | runcmd "Getting file again" || failed=`expr $failed + 1`
-# compare locally
-testit "Comparing files" diff tmpfilex tmpfile || failed=`expr $failed + 1`
-# remove that file
-echo rm tmpfilex | runcmd "Removing file" || failed=`expr $failed + 1`
-
-# do some simple operations using old protocol versions
-echo ls | runcmd "List directory with LANMAN1" -m LANMAN1 || failed=`expr $failed + 1`
-echo ls | runcmd "List directory with LANMAN2" -m LANMAN2 || failed=`expr $failed + 1`
-
-rm -f tmpfile tmpfile-old tmpfilex
-
-testok $0 $failed
diff --git a/source4/script/tests/tests_all.sh b/source4/script/tests/tests_all.sh
index aecaf8ac8e..9fde15f4de 100755
--- a/source4/script/tests/tests_all.sh
+++ b/source4/script/tests/tests_all.sh
@@ -11,6 +11,6 @@
$SRCDIR/script/tests/test_posix.sh //$SERVER/tmp $USERNAME $PASSWORD "" || totalfailed=`expr $totalfailed + $?`
$SRCDIR/script/tests/test_local.sh || totalfailed=`expr $totalfailed + $?`
$SRCDIR/script/tests/test_pidl.sh || totalfailed=`expr $totalfailed + $?`
- $SRCDIR/script/tests/test_smbclient.sh $SERVER $USERNAME $PASSWORD $DOMAIN $PREFIX || totalfailed=`expr $totalfailed + $?`
+ $SRCDIR/script/tests/test_blackbox.sh $SERVER $USERNAME $PASSWORD $DOMAIN $PREFIX || totalfailed=`expr $totalfailed + $?`
$SRCDIR/script/tests/test_cifsdd.sh $SERVER $USERNAME $PASSWORD $DOMAIN || totalfailed=`expr $totalfailed + $?`
$SRCDIR/script/tests/test_simple.sh //$SERVER/simple $USERNAME $PASSWORD "" || totalfailed=`expr $totalfailed + $?`