diff options
-rwxr-xr-x | source4/script/tests/selftest.pl | 6 | ||||
-rwxr-xr-x | source4/script/tests/test_blackbox.sh | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/script/tests/selftest.pl b/source4/script/tests/selftest.pl index fa4de4dde4..d5576d5767 100755 --- a/source4/script/tests/selftest.pl +++ b/source4/script/tests/selftest.pl @@ -556,7 +556,7 @@ sub setup_env($) } write_clientconf($conffile, $testenv_vars); foreach ("PASSWORD", "DOMAIN", "SERVER", "USERNAME", "NETBIOSNAME", - "KRB5_CONFIG") { + "KRB5_CONFIG", "REALM") { if (defined($testenv_vars->{$_})) { $ENV{$_} = $testenv_vars->{$_}; } else { @@ -564,6 +564,8 @@ sub setup_env($) } } + SocketWrapper::set_default_iface(6); + $running_envs{$envname} = $testenv_vars; return $testenv_vars; } @@ -574,7 +576,7 @@ sub teardown_env($) $target->teardown_env($running_envs{$envname}); delete $running_envs{$envname}; } -SocketWrapper::set_default_iface(6); + if ($opt_testenv) { my $testenv_vars = setup_env("dc"); diff --git a/source4/script/tests/test_blackbox.sh b/source4/script/tests/test_blackbox.sh index 9adafcb332..1cab39c8f7 100755 --- a/source4/script/tests/test_blackbox.sh +++ b/source4/script/tests/test_blackbox.sh @@ -17,4 +17,6 @@ incdir=`dirname $0` . $incdir/test_functions.sh plantest "blackbox.smbclient" dc $incdir/../../../testprogs/blackbox/test_smbclient.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS" +plantest "blackbox.kinit" dc $incdir/../../../testprogs/blackbox/test_kinit.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$REALM" "$PREFIX" "$ADDARGS" + plantest "blackbox.cifsdd" dc $incdir/../../../testprogs/blackbox/test_cifsdd.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS" |