r9816: Work on testsuite for upgrade
[jra/samba/.git] / source4 / script / tests / test_s3upgrade.sh
1 #!/bin/sh
2 PREFIX=$1
3
4 if [ -z "$PREFIX" ]
5 then
6         print "Usage: test_s3upgrade.sh <prefix"
7         exit 1
8 fi
9
10 DATADIR=$PREFIX/upgrade
11
12 mkdir -p $DATADIR
13 rm -f $DATADIR/*
14
15 bin/smbscript setup/upgrade --targetdir=$DATADIR ../testdata/samba3 ../testdata/samba3/smb.conf
16
17 # FIXME: Do some sanity checks on the output files