mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:selftest Add tests for upgradeprovision
This commit is contained in:
parent
b9f95882f0
commit
6f0f82f7ed
@ -470,5 +470,6 @@ rm -rf $PREFIX/provision
|
||||
mkdir $PREFIX/provision
|
||||
plantest "blackbox.provision.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_provision.sh "$PREFIX/provision"
|
||||
plantest "blackbox.provision-backend.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_provision-backend.sh "$PREFIX/provision"
|
||||
plantest "blackbox.upgradeprovision.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_upgradeprovision.sh "$PREFIX/provision"
|
||||
plantest "blackbox.setpassword.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_setpassword.sh "$PREFIX/provision"
|
||||
plantest "blackbox.newuser.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_newuser.sh "$PREFIX/provision"
|
||||
|
26
source4/setup/tests/blackbox_upgradeprovision.sh
Executable file
26
source4/setup/tests/blackbox_upgradeprovision.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
cat <<EOF
|
||||
Usage: blackbox_upgradeprovision.sh PREFIX
|
||||
EOF
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
PREFIX="$1"
|
||||
shift 1
|
||||
|
||||
. `dirname $0`/../../../testprogs/blackbox/subunit.sh
|
||||
|
||||
upgradeprovision() {
|
||||
$PYTHON ./setup/provision --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision" --server-role="dc"
|
||||
$PYTHON ./scripting/bin/upgradeprovision --targetdir="$PREFIX/upgradeprovision"
|
||||
}
|
||||
|
||||
upgradeprovision_full() {
|
||||
$PYTHON ./setup/provision --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision_full" --server-role="dc"
|
||||
$PYTHON ./scripting/bin/upgradeprovision --targetdir="$PREFIX/upgradeprovision_full" --full
|
||||
}
|
||||
|
||||
testit "upgradeprovision" upgradeprovision
|
||||
testit "upgradeprovision_full" upgradeprovision_full
|
Loading…
Reference in New Issue
Block a user