summaryrefslogtreecommitdiff
path: root/source4/selftest/test_s3upgrade.sh
blob: 692199acda8811efd4ae1eef06ba343fa10267bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
PREFIX=$1

if [ -z "$PREFIX" ]
then
	echo "Usage: test_s3upgrade.sh <prefix>"
	exit 1
fi

mkdir -p $PREFIX
rm -f $PREFIX/*

incdir=`dirname $0`
. $incdir/test_functions.sh

SCRIPTDIR=$samba4srcdir/../testprogs/ejs
DATADIR=$samba4srcdir/../testdata

plantest "parse samba3" none $samba4bindir/smbscript $DATADIR/samba3/verify $CONFIGURATION $DATADIR/samba3
#plantest "upgrade" none $samba4bindir/smbscript setup/upgrade $CONFIGURATION --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf