s3-smbldap: remove dependency to secrets subsystem.
[Samba/id10ts.git] / source4 / setup / tests / blackbox_upgradeprovision.sh
bloba3d1838f88791e60e82d92d82bbc1ccec1f60956
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: blackbox_upgradeprovision.sh PREFIX
6 EOF
7 exit 1;
8 fi
10 PREFIX="$1"
11 shift 1
13 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
15 upgradeprovision() {
16 if [ -d $PREFIX/upgradeprovision ]; then
17 rm -fr $PREFIX/upgradeprovision
19 $PYTHON $SRCDIR/source4/setup/provision --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision" --server-role="dc"
20 $PYTHON $SRCDIR/source4/scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision/etc/smb.conf" --debugchange
23 upgradeprovision_full() {
24 if [ -d $PREFIX/upgradeprovision_full ]; then
25 rm -fr $PREFIX/upgradeprovision_full
27 $PYTHON $SRCDIR/source4/setup/provision --host-name=bar --domain=FOO --realm=foo.example.com --targetdir="$PREFIX/upgradeprovision_full" --server-role="dc"
28 $PYTHON $SRCDIR/source4/scripting/bin/upgradeprovision -s "$PREFIX/upgradeprovision_full/etc/smb.conf" --full --debugchange
31 if [ -d $PREFIX/upgradeprovision ]; then
32 rm -fr $PREFIX/upgradeprovision
35 if [ -d $PREFIX/upgradeprovision_full ]; then
36 rm -fr $PREFIX/upgradeprovision_full
39 testit "upgradeprovision" upgradeprovision
40 testit "upgradeprovision_full" upgradeprovision_full
42 exit $failed