From 49c99d05159fb601ea076824e0f6a64326fdf8d9 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 20 May 2011 23:50:55 +0400 Subject: [PATCH] s4: add blackbox test for rename Autobuild-User: Matthieu Patou Autobuild-Date: Sat May 21 09:50:34 CEST 2011 on sn-devel-104 --- source4/selftest/tests.py | 3 +++ testprogs/blackbox/renamedc.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 testprogs/blackbox/renamedc.sh diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index adb38bbf701..eb36a0c2b12 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -432,3 +432,6 @@ plantestsuite_loadlist("samba4.%s.two" % t, "vampire_dc", [valgrindify(smb4tortu plantestsuite_loadlist("samba4.rpc.echo", "rodc", [smb4torture, "$LISTOPT", 'ncacn_np:$SERVER', "-k", "yes", '-U$USERNAME%$PASSWORD', '-W' '$DOMAIN', 'rpc.echo']) plantestsuite_loadlist("samba4.rpc.echo", "rodc:local", [smb4torture, "$LISTOPT", 'ncacn_np:$SERVER', "-k", "yes", '-P', '-W' '$DOMAIN', 'rpc.echo']) plantestsuite("samba4.blackbox.provision-backend.py", "none", ["PYTHON=%s" % python, os.path.join(samba4srcdir, "setup/tests/blackbox_provision-backend.sh"), '$PREFIX/provision']) + +# Test renaming the DC +plantestsuite("samba4.blackbox.renamedc.sh", "none", ["PYTHON=%s" % python, os.path.join(bbdir, "renamedc.sh"), '$PREFIX/provision']) diff --git a/testprogs/blackbox/renamedc.sh b/testprogs/blackbox/renamedc.sh new file mode 100755 index 00000000000..d0615b319c7 --- /dev/null +++ b/testprogs/blackbox/renamedc.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then +cat <