summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_s3upgrade.sh
blob: b0042bed453a558159fd348e73c9ca18db2afd27 (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
	print "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