diff options
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/renamedc.sh | 42 | ||||
-rwxr-xr-x | testprogs/blackbox/test_kinit.sh | 2 | ||||
-rwxr-xr-x | testprogs/blackbox/test_pkinit.sh | 2 |
3 files changed, 44 insertions, 2 deletions
diff --git a/testprogs/blackbox/renamedc.sh b/testprogs/blackbox/renamedc.sh new file mode 100755 index 0000000000..d0615b319c --- /dev/null +++ b/testprogs/blackbox/renamedc.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then +cat <<EOF +Usage: blackbox_upgradeprovision.sh PREFIX +EOF +exit 1; +fi + +PREFIX="$1" +shift 1 + +. `dirname $0`/subunit.sh + +if [ ! -d $PREFIX/upgradeprovision_full ]; then + $PYTHON $SRCDIR/source4/setup/provision --host-name=bar --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision_full" --server-role="dc" +fi + + +testrenamedc() { + $PYTHON $SRCDIR/source4/scripting/bin/renamedc \ + --oldname="BAR" \ + --newname="RAYMONBAR" \ + -s $PREFIX/upgradeprovision_full/etc/smb.conf +} + + +testrenamedc2() { + $PYTHON $SRCDIR/source4/scripting/bin/renamedc \ + --oldname="RAYMONBAR" \ + --newname="BAR" \ + -s $PREFIX/upgradeprovision_full/etc/smb.conf +} + +testit "renamedc" testrenamedc +testit "renamedc2" testrenamedc2 + +if [ $failed -eq 0 ]; then + rm -rf $PREFIX/upgradeprovision_full +fi + +exit $failed diff --git a/testprogs/blackbox/test_kinit.sh b/testprogs/blackbox/test_kinit.sh index a00f67e8c6..5ef92acae5 100755 --- a/testprogs/blackbox/test_kinit.sh +++ b/testprogs/blackbox/test_kinit.sh @@ -29,7 +29,7 @@ ldbmodify="$samba4bindir/ldbmodify$EXEEXT" ldbsearch="$samba4bindir/ldbsearch$EXEEXT" rkpty="$samba4bindir/rkpty$EXEEXT" samba4kpasswd="$samba4bindir/samba4kpasswd$EXEEXT" -enableaccount="$samba_tool enableaccount" +enableaccount="$samba_tool user enable" machineaccountccache="$samba4srcdir/scripting/bin/machineaccountccache" . `dirname $0`/subunit.sh diff --git a/testprogs/blackbox/test_pkinit.sh b/testprogs/blackbox/test_pkinit.sh index 8d5c799403..55cb6e3e5d 100755 --- a/testprogs/blackbox/test_pkinit.sh +++ b/testprogs/blackbox/test_pkinit.sh @@ -29,7 +29,7 @@ ldbmodify="$samba4bindir/ldbmodify$EXEEXT" ldbsearch="$samba4bindir/ldbsearch$EXEEXT" rkpty="$samba4bindir/rkpty$EXEEXT" samba4kpasswd="$samba4bindir/samba4kpasswd$EXEEXT" -enableaccount="$samba_tool enableaccount" +enableaccount="$samba_tool user enable" machineaccountccache="$samba4srcdir/scripting/bin/machineaccountccache" . `dirname $0`/subunit.sh |