diff options
-rwxr-xr-x | source3/script/tests/test_net_cred_change.sh | 16 | ||||
-rwxr-xr-x | source3/selftest/tests.py | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/source3/script/tests/test_net_cred_change.sh b/source3/script/tests/test_net_cred_change.sh new file mode 100755 index 0000000000..9013d079d3 --- /dev/null +++ b/source3/script/tests/test_net_cred_change.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then +cat <<EOF +Usage: test_net_cred_change.sh CONFIGURATION +EOF +exit 1; +fi + +incdir=`dirname $0`/../../../testprogs/blackbox +. $incdir/subunit.sh +testit "first change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1` +testit "first join" $VALGRIND $BINDIR/net rpc testjoin $@ || failed =`expr $failed + 1` +testit "second change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1` + +testok $0 $failed diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index d9d2f91166..254e9428b4 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -167,6 +167,9 @@ for env in ["s3dc", "member", "s3member"]: plantestsuite("samba3.ntlm_auth.(%s:local)" % env, "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_ntlm_auth_s3.sh"), valgrindify(python), samba3srcdir, ntlm_auth3, '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', configuration]) +for env in ["member", "s3member"]: + plantestsuite("samba3.blackbox.net_cred_change.(%s:local)" % env, "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_net_cred_change.sh"), configuration]) + env = "s3member" t = "--krb5auth=$DOMAIN\\\\$DC_USERNAME%$DC_PASSWORD" plantestsuite("samba3.wbinfo_s3.(%s:local).%s" % (env, t), "%s:local" % env, [os.path.join(samba3srcdir, "script/tests/test_wbinfo_s3.sh"), t]) |