From: Michael Adam Date: Wed, 30 May 2012 10:04:30 +0000 (+0200) Subject: s4:selftest: change the blackbox.samba_tool test to use a binary mapping for smbclient X-Git-Tag: samba-4.0.0beta1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df0cadbcc9c3706c8ef86dbc431795b31c1fce70;p=thirdparty%2Fsamba.git s4:selftest: change the blackbox.samba_tool test to use a binary mapping for smbclient --- diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index ba50a933993..23d5f203c61 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -303,7 +303,7 @@ planpythontestsuite("dc", "samba.tests.dns") planpythontestsuite("none", "samba.tests.blackbox.ndrdump") planpythontestsuite("none", "samba.tests.source") -plantestsuite("samba4.blackbox.samba_tool(dc:local)", "dc:local", [os.path.join(samba4srcdir, "utils/tests/test_samba_tool.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN']) +plantestsuite("samba4.blackbox.samba_tool(dc:local)", "dc:local", [os.path.join(samba4srcdir, "utils/tests/test_samba_tool.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$DOMAIN', smbclient]) plantestsuite("samba4.blackbox.pkinit(dc:local)", "dc:local", [os.path.join(bbdir, "test_pkinit.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$PREFIX', "aes256-cts-hmac-sha1-96", configuration]) plantestsuite("samba4.blackbox.kinit(dc:local)", "dc:local", [os.path.join(bbdir, "test_kinit.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$PREFIX', "aes256-cts-hmac-sha1-96", configuration]) plantestsuite("samba4.blackbox.kinit(fl2000dc:local)", "fl2000dc:local", [os.path.join(bbdir, "test_kinit.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$REALM', '$DOMAIN', '$PREFIX', "arcfour-hmac-md5", configuration]) diff --git a/source4/utils/tests/test_samba_tool.sh b/source4/utils/tests/test_samba_tool.sh index 7057312fcbb..289a753b668 100755 --- a/source4/utils/tests/test_samba_tool.sh +++ b/source4/utils/tests/test_samba_tool.sh @@ -6,12 +6,12 @@ SERVER_IP=$2 USERNAME=$3 PASSWORD=$4 DOMAIN=$5 -shift 5 +smbclient=$6 +shift 6 failed=0 samba4bindir="$BINDIR" -smbclient="$samba4bindir/smbclient" samba_tool="$samba4bindir/samba-tool" testit() {