At file:///home/jelmer/bzr.samba/SAMBA_4_0/ ------------------------------------------------------------ revno: 11750 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij <[EMAIL PROTECTED]> branch nick: SAMBA_4_0 timestamp: Wed 2007-03-21 17:26:00 +0100 message: Clean up some unused functions. modified: source/script/tests/mktestdc.sh svn-v2:[EMAIL PROTECTED] source/script/tests/selftest.pl svn-v2:[EMAIL PROTECTED] source/script/tests/test_binding_string.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_blackbox.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_echo.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ejs.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_functions.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_ldap.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_local.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_nbt.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_net.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_pidl.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_rpc_quick.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_s3upgrade.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_session_key.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_simple.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_swig.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_w2k3_file.sh svn-v2:[EMAIL PROTECTED] source/script/tests/tests_win.sh svn-v2:[EMAIL PROTECTED] === modified file 'source/script/tests/mktestdc.sh' --- a/source/script/tests/mktestdc.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/mktestdc.sh 2007-03-21 16:26:00 +0000 @@ -70,7 +70,7 @@ [global] iconv:native = $nativeiconv netbios name = $NETBIOSNAME - netbios aliases = $SERVER + netbios aliases = $SERVER workgroup = $DOMAIN realm = $REALM private dir = $PRIVATEDIR @@ -80,10 +80,10 @@ share backend = $SHARE_BACKEND setup directory = $SRCDIR/setup js include = $SRCDIR/scripting/libjs - winbindd socket directory = $WINBINDD_SOCKET_DIR + winbindd socket directory = $WINBINDD_SOCKET_DIR name resolve order = bcast interfaces = 127.0.0.1/8 - tls dh params file = $DHFILE + tls dh params file = $DHFILE panic action = $SRCDIR/script/gdb_backtrace %PID% %PROG% wins support = yes server role = domain controller @@ -91,14 +91,12 @@ server max protocol = SMB2 notify:inotify = false ldb:nosync = true - torture:subunitdir = $SRCDIR/bin/torture torture:basedir = $TEST_DATA_PREFIX system:anonymous = true #We don't want to pass our self-tests if the PAC code is wrong - gensec:require_pac = true - - log level = $SMBD_LOGLEVEL + gensec:require_pac = true + log level = $SMBD_LOGLEVEL [tmp] path = $TMPDIR @@ -297,4 +295,4 @@ echo "SMBD_LOGLEVEL=$SMBD_LOGLEVEL" echo "LDAPDIR=$LDAPDIR" echo "PROVISION_OPTIONS=$PROVISION_OPTIONS" -echo "PROVISION_ACI=$PROVISION_ACI" \ No newline at end of file +echo "PROVISION_ACI=$PROVISION_ACI"
=== modified file 'source/script/tests/selftest.pl' --- a/source/script/tests/selftest.pl 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/selftest.pl 2007-03-21 16:26:00 +0000 @@ -313,7 +313,7 @@ --one abort when the first test fails --immediate print test output for failed tests during run --verbose be verbose - --analyse-cmd CMD command to run after each test + --analyse-cmd CMD command to run after each test "; exit(0); } @@ -346,6 +346,7 @@ # quick hack to disable rpc validation when using valgrind - its way too slow unless (defined($ENV{VALGRIND})) { $ENV{VALIDATE} = "validate"; + $ENV{MALLOC_CHECK_} = 2; } my $old_pwd = "$RealBin/../.."; === modified file 'source/script/tests/test_binding_string.sh' --- a/source/script/tests/test_binding_string.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_binding_string.sh 2007-03-21 16:26:00 +0000 @@ -16,7 +16,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0; for I in "ncacn_np:$server" \ "ncacn_ip_tcp:$server" \ "ncacn_np:$server[rpcecho]" \ @@ -28,7 +27,5 @@ "[EMAIL PROTECTED]:$server" \ "[EMAIL PROTECTED]:$server" do - testit "$I" rpc bin/smbtorture $TORTURE_OPTIONS "$I" -U"$username"%"$password" -W $domain --option=torture:quick=yes RPC-ECHO "$*" + plantest "$I" rpc bin/smbtorture $TORTURE_OPTIONS "$I" -U"$username"%"$password" -W $domain --option=torture:quick=yes RPC-ECHO "$*" done - -testok $0 $failed === modified file 'source/script/tests/test_blackbox.sh' --- a/source/script/tests/test_blackbox.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_blackbox.sh 2007-03-21 16:26:00 +0000 @@ -20,7 +20,5 @@ incdir=`dirname $0` . $incdir/test_functions.sh -testit "smbclient" smb $incdir/../../../testprogs/blackbox/test_smbclient.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$PREFIX" "$ADDARGS" -testit "cifsdd" smb $incdir/../../../testprogs/blackbox/test_cifsdd.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$ADDARGS" - -testok $0 $failed +plantest "blackbox.smbclient" smb $incdir/../../../testprogs/blackbox/test_smbclient.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$PREFIX" "$ADDARGS" +plantest "blackbox.cifsdd" smb $incdir/../../../testprogs/blackbox/test_cifsdd.sh "$SERVER" "$USERNAME" "$PASSWORD" "$DOMAIN" "$ADDARGS" === modified file 'source/script/tests/test_echo.sh' --- a/source/script/tests/test_echo.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_echo.sh 2007-03-21 16:26:00 +0000 @@ -24,13 +24,12 @@ transports="ncalrpc $transports" fi -failed=0 for transport in $transports; do for bindoptions in connect spnego spnego,sign spnego,seal $VALIDATE padcheck bigendian bigendian,seal; do for ntlmoptions in \ "--option=socket:testnonblock=True --option=torture:quick=yes"; do name="RPC-ECHO on $transport with $bindoptions and $ntlmoptions" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $ntlmoptions -U"$username"%"$password" -W $domain RPC-ECHO "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $ntlmoptions -U"$username"%"$password" -W $domain RPC-ECHO "$*" done done done @@ -49,12 +48,10 @@ "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \ ; do name="RPC-ECHO on $transport with $bindoptions and $ntlmoptions" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $ntlmoptions -U"$username"%"$password" -W $domain RPC-ECHO "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $ntlmoptions -U"$username"%"$password" -W $domain RPC-ECHO "$*" done done done name="RPC-ECHO on ncacn_np over smb2" -testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_np:"$server[smb2]" -U"$username"%"$password" -W $domain RPC-ECHO "$*" - -testok $0 $failed +plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_np:"$server[smb2]" -U"$username"%"$password" -W $domain RPC-ECHO "$*" === modified file 'source/script/tests/test_ejs.sh' --- a/source/script/tests/test_ejs.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_ejs.sh 2007-03-21 16:26:00 +0000 @@ -23,12 +23,10 @@ PATH=bin:$PATH export PATH -testit "base.js" rpc "$SCRIPTDIR/base.js" $CONFIGURATION -testit "samr.js" rpc "$SCRIPTDIR/samr.js" $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD -testit "echo.js" rpc "$SCRIPTDIR/echo.js" $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD -testit "ejsnet.js" rpc "$SCRIPTDIR/ejsnet.js" $CONFIGURATION -U$USERNAME%$PASSWORD $DOMAIN ejstestuser -testit "ldb.js" none "$SCRIPTDIR/ldb.js" `pwd` $CONFIGURATION -testit "samba3sam.js" none $SCRIPTDIR/samba3sam.js $CONFIGURATION `pwd` $DATADIR/samba3/ -testit "winreg" rpc scripting/bin/winreg $CONFIGURATION ncalrpc: 'HKLM' -U$USERNAME%$PASSWORD - -testok $0 $failed +plantest "base.js" rpc "$SCRIPTDIR/base.js" $CONFIGURATION +plantest "samr.js" rpc "$SCRIPTDIR/samr.js" $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD +plantest "echo.js" rpc "$SCRIPTDIR/echo.js" $CONFIGURATION ncalrpc: -U$USERNAME%$PASSWORD +plantest "ejsnet.js" rpc "$SCRIPTDIR/ejsnet.js" $CONFIGURATION -U$USERNAME%$PASSWORD $DOMAIN ejstestuser +plantest "ldb.js" none "$SCRIPTDIR/ldb.js" `pwd` $CONFIGURATION +plantest "samba3sam.js" none $SCRIPTDIR/samba3sam.js $CONFIGURATION `pwd` $DATADIR/samba3/ +plantest "winreg" rpc scripting/bin/winreg $CONFIGURATION ncalrpc: 'HKLM' -U$USERNAME%$PASSWORD === modified file 'source/script/tests/test_functions.sh' --- a/source/script/tests/test_functions.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_functions.sh 2007-03-21 16:26:00 +0000 @@ -1,6 +1,6 @@ #!/bin/sh -testit() { +plantest() { name=$1 env=$2 shift 2 @@ -10,39 +10,3 @@ echo $env echo $cmdline } - -testok() { - name=`basename $1` - failed=$2 - - if [ x"$failed" = x"0" ];then - : - else - echo "$failed TESTS FAILED or SKIPPED ($name)"; - fi - exit $failed -} - -teststatus() { - name=`basename $1` - failed=$2 - - echo "TEST STATUS: $failed failures"; - test x"$failed" = x"0" || { -cat <<EOF -************************ -*** TESTSUITE FAILED *** -************************ -EOF - } - exit $failed -} - -if [ -z "$VALGRIND" ]; then - MALLOC_CHECK_=2 - export MALLOC_CHECK_ -fi - -# initialise the local failed variable to zero when starting each of the tests -failed=0 - === modified file 'source/script/tests/test_ldap.sh' --- a/source/script/tests/test_ldap.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_ldap.sh 2007-03-21 16:26:00 +0000 @@ -17,18 +17,18 @@ p=ldap for options in "" "--option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD --option=socket:testnonblock=true" "-U$USERNAME%$PASSWORD"; do - testit "TESTING PROTOCOL $p with options $options" ldap ../testprogs/blackbox/test_ldb.sh $p $SERVER $options + plantest "TESTING PROTOCOL $p with options $options" ldap ../testprogs/blackbox/test_ldb.sh $p $SERVER $options done # see if we support ldaps if grep ENABLE_GNUTLS.1 include/config.h > /dev/null; then p=ldaps for options in "" "-U$USERNAME%$PASSWORD"; do - testit "TESTING PROTOCOL $p with options $options" ldap ../testprogs/blackbox/test_ldb.sh $p $SERVER $options + plantest "TESTING PROTOCOL $p with options $options" ldap ../testprogs/blackbox/test_ldb.sh $p $SERVER $options done fi for t in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATENESS do - testit "$t" ldap bin/smbtorture $TORTURE_OPTIONS "-U$USERNAME%$PASSWORD" //$SERVER/_none_ $t + plantest "$t" ldap bin/smbtorture $TORTURE_OPTIONS "-U$USERNAME%$PASSWORD" //$SERVER/_none_ $t done # only do the ldb tests when not in quick mode - they are quite slow, and ldb @@ -36,11 +36,9 @@ test "$TORTURE_QUICK" = "yes" || { LDBDIR=lib/ldb export LDBDIR - testit "ldb" ldap $LDBDIR/tests/test-tdb.sh + plantest "ldb" ldap $LDBDIR/tests/test-tdb.sh } SCRIPTDIR=../testprogs/ejs -testit "ejs ldap" ldap $SCRIPTDIR/ldap.js $CONFIGURATION $SERVER -U$USERNAME%$PASSWORD - -testok $0 $failed +plantest "ejs ldap" ldap $SCRIPTDIR/ldap.js $CONFIGURATION $SERVER -U$USERNAME%$PASSWORD === modified file 'source/script/tests/test_local.sh' --- a/source/script/tests/test_local.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_local.sh 2007-03-21 16:26:00 +0000 @@ -22,11 +22,8 @@ SMBD_TEST_FIFO="" export SMBD_TEST_FIFO -failed=0 for t in $local_tests; do - testit "$t" none $VALGRIND bin/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*" + plantest "$t" none $VALGRIND bin/smbtorture $TORTURE_OPTIONS ncalrpc: $t "$*" done -testit "tdb stress" none $VALGRIND bin/tdbtorture - -testok $0 $failed +plantest "tdb stress" none $VALGRIND bin/tdbtorture === modified file 'source/script/tests/test_nbt.sh' --- a/source/script/tests/test_nbt.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_nbt.sh 2007-03-21 16:26:00 +0000 @@ -20,13 +20,11 @@ PATH=bin:$PATH export PATH -testit "nmblookup -U $SERVER $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS -U $SERVER $SERVER -testit "nmblookup $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS $SERVER +plantest "nmblookup -U $SERVER $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS -U $SERVER $SERVER +plantest "nmblookup $SERVER" netbios bin/nmblookup $TORTURE_OPTIONS $SERVER NBT_TESTS=`bin/smbtorture --list | grep ^NBT` for f in $NBT_TESTS; do - testit "$f" netbios bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f -U$USERNAME%$PASSWORD + plantest "$f" netbios bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f -U$USERNAME%$PASSWORD done - -testok $0 $failed === modified file 'source/script/tests/test_net.sh' --- a/source/script/tests/test_net.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_net.sh 2007-03-21 16:26:00 +0000 @@ -22,7 +22,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 for bindoptions in seal,padcheck $VALIDATE bigendian; do for transport in ncalrpc ncacn_np ncacn_ip_tcp; do case $transport in @@ -32,9 +31,7 @@ esac for t in $tests; do name="$t on $transport with $bindoptions" - testit "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" + plantest "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" done done done - -testok $0 $failed === modified file 'source/script/tests/test_pidl.sh' --- a/source/script/tests/test_pidl.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_pidl.sh 2007-03-21 16:26:00 +0000 @@ -7,14 +7,10 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 - if $PERL -e 'eval require Test::More;' > /dev/null 2>&1; then for f in pidl/tests/*.pl; do - testit "$f" none $PERL $f + plantest "$f" none $PERL $f done else echo "Skipping pidl tests - Test::More not installed" fi - -testok $0 $failed === modified file 'source/script/tests/test_posix.sh' --- a/source/script/tests/test_posix.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_posix.sh 2007-03-21 16:26:00 +0000 @@ -30,5 +30,5 @@ continue; fi start="" - testit "$t" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t + plantest "$t" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t done === modified file 'source/script/tests/test_quick.sh' --- a/source/script/tests/test_quick.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_quick.sh 2007-03-21 16:26:00 +0000 @@ -25,15 +25,11 @@ tests="$tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL RAW-RENAME" tests="$tests RAW-EAS RAW-STREAMS" -failed=0 for t in $tests; do if [ ! -z "$start" -a "$start" != $t ]; then continue; fi start="" name="$t" - testit "$name" base $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t + plantest "$name" base $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t done - -testok $0 $failed - === modified file 'source/script/tests/test_rpc.sh' --- a/source/script/tests/test_rpc.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_rpc.sh 2007-03-21 16:26:00 +0000 @@ -25,7 +25,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 for bindoptions in seal,padcheck $VALIDATE bigendian; do for transport in ncalrpc ncacn_np ncacn_ip_tcp; do case $transport in @@ -35,7 +34,7 @@ esac for t in $tests; do name="$t on $transport with $bindoptions" - testit "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" + plantest "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" done done done @@ -49,10 +48,7 @@ esac for t in $tests; do name="$t on $transport with $bindoptions" - testit "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" + plantest "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" done done done - -testok $0 $failed - === modified file 'source/script/tests/test_rpc_quick.sh' --- a/source/script/tests/test_rpc_quick.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_rpc_quick.sh 2007-03-21 16:26:00 +0000 @@ -22,7 +22,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 for bindoptions in seal,padcheck $VALIDATE bigendian; do for transport in ncalrpc ncacn_np ncacn_ip_tcp; do case $transport in @@ -32,9 +31,7 @@ esac for t in $tests; do name="$t on $transport with $bindoptions" - testit "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" + plantest "$name" rpc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*" done done done - -testok $0 $failed === modified file 'source/script/tests/test_s3upgrade.sh' --- a/source/script/tests/test_s3upgrade.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_s3upgrade.sh 2007-03-21 16:26:00 +0000 @@ -18,5 +18,5 @@ . script/tests/test_functions.sh -testit "parse samba3" none bin/smbscript ../testdata/samba3/verify $CONFIGURATION ../testdata/samba3 -#testit "upgrade" none bin/smbscript setup/upgrade $CONFIGURATION --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf +plantest "parse samba3" none bin/smbscript ../testdata/samba3/verify $CONFIGURATION ../testdata/samba3 +#plantest "upgrade" none bin/smbscript setup/upgrade $CONFIGURATION --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf === modified file 'source/script/tests/test_session_key.sh' --- a/source/script/tests/test_session_key.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_session_key.sh 2007-03-21 16:26:00 +0000 @@ -17,7 +17,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 transport="ncacn_np" for bindoptions in bigendian seal; do for keyexchange in "yes" "no"; do @@ -37,18 +36,17 @@ "-k no --option=gensec:spnego=no --option=clientntlmv2auth=yes" \ "-k no --option=usespnego=no"; do name="RPC-SECRETS on $transport with $bindoptions with NTLM2:$ntlm2 KEYEX:$keyexchange LM_KEY:$lm_key $ntlmoptions" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" --option=ntlmssp_client:keyexchange=$keyexchange --option=ntlmssp_client:ntlm2=$ntlm2 --option=ntlmssp_client:lm_key=$lm_key $ntlmoptions -U"$username"%"$password" -W $domain --option=gensec:target_hostname=$netbios_name RPC-SECRETS "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" --option=ntlmssp_client:keyexchange=$keyexchange --option=ntlmssp_client:ntlm2=$ntlm2 --option=ntlmssp_client:lm_key=$lm_key $ntlmoptions -U"$username"%"$password" -W $domain --option=gensec:target_hostname=$netbios_name RPC-SECRETS "$*" done done done done name="RPC-SECRETS on $transport with $bindoptions with Kerberos" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -k yes -U"$username"%"$password" -W $domain "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -k yes -U"$username"%"$password" -W $domain "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" name="RPC-SECRETS on $transport with $bindoptions with Kerberos - use target principal" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -k yes -U"$username"%"$password" -W $domain "--option=clientusespnegoprincipal=yes" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" -k yes -U"$username"%"$password" -W $domain "--option=clientusespnegoprincipal=yes" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" done name="RPC-SECRETS on $transport with Kerberos - use Samba3 style login" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server" -k yes -U"$username"%"$password" -W $domain "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server" -k yes -U"$username"%"$password" -W $domain "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" name="RPC-SECRETS on $transport with Kerberos - use Samba3 style login, use target principal" - testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server" -k yes -U"$username"%"$password" -W $domain "--option=clientusespnegoprincipal=yes" "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" -testok $0 $failed + plantest "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server" -k yes -U"$username"%"$password" -W $domain "--option=clientusespnegoprincipal=yes" "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=$netbios_name" RPC-SECRETS "$*" === modified file 'source/script/tests/test_simple.sh' --- a/source/script/tests/test_simple.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_simple.sh 2007-03-21 16:26:00 +0000 @@ -20,15 +20,11 @@ tests="BASE-RW1" -failed=0 for t in $tests; do if [ ! -z "$start" -a "$start" != $t ]; then continue; fi start="" name="$t" - testit "$name" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t + plantest "$name" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t done - -testok $0 $failed - === modified file 'source/script/tests/test_swig.sh' --- a/source/script/tests/test_swig.sh 2007-01-26 13:33:06 +0000 +++ b/source/script/tests/test_swig.sh 2007-03-21 16:26:00 +0000 @@ -10,8 +10,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh -failed=0 - export PYTHONPATH=lib/tdb/swig:lib/ldb/swig:scripting/swig:$PYTHONPATH export LD_LIBRARY_PATH=bin:$LD_LIBRARY_PATH @@ -20,5 +18,3 @@ echo Testing ldb wrappers scripting/swig/torture/torture_ldb.py - -testok $0 $failed === modified file 'source/script/tests/test_w2k3.sh' --- a/source/script/tests/test_w2k3.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_w2k3.sh 2007-03-21 16:26:00 +0000 @@ -26,8 +26,6 @@ OPTIONS="-U$username%$password -W $domain --option realm=$realm" -failed=0 - name="RPC-SPOOLSS on ncacn_np" testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_np:"$server" $OPTIONS RPC-SPOOLSS "$*" @@ -48,5 +46,3 @@ testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal]" $OPTIONS RPC-DRSUAPI "$*" name="RPC-DRSUAPI on ncacn_ip_tcp with seal,bigendian" testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal,bigendian]" $OPTIONS RPC-DRSUAPI "$*" - -testok $0 $failed === modified file 'source/script/tests/test_w2k3_file.sh' --- a/source/script/tests/test_w2k3_file.sh 2007-03-21 15:57:07 +0000 +++ b/source/script/tests/test_w2k3_file.sh 2007-03-21 16:26:00 +0000 @@ -39,7 +39,6 @@ echo "Skipping tests expected to fail: $fail" -failed=0 for t in $tests; do if [ ! -z "$start" -a "$start" != $t ]; then continue; @@ -48,5 +47,3 @@ name="$t" testit "$name" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t done - -testok $0 $failed === modified file 'source/script/tests/tests_win.sh' --- a/source/script/tests/tests_win.sh 2007-02-21 22:50:55 +0000 +++ b/source/script/tests/tests_win.sh 2007-03-21 16:26:00 +0000 @@ -1,7 +1,7 @@ #!/bin/sh if [ `whoami` != "root" ]; then - echo "Windows tests will not run without root privilages." + echo "Windows tests will not run without root privileges." exit 1 fi