summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_s3upgrade.sh
blob: 50aa52f0679a7159bc19ae392c8b6d3b252ec2d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
PREFIX=$1

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

DATADIR=$PREFIX/upgrade

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

bin/smbscript setup/upgrade --targetdir=$DATADIR ../testdata/samba3 ../testdata/samba3/smb.conf

# FIXME: Do some sanity checks on the output files