r9834: More tests for the upgrade from Samba3
[samba.git] / source / script / tests / test_s3upgrade.sh
index b0042bed453a558159fd348e73c9ca18db2afd27..e4e5d828e58180952743b13d448e56486b7d0112 100755 (executable)
@@ -3,15 +3,12 @@ PREFIX=$1
 
 if [ -z "$PREFIX" ]
 then
-       print "Usage: test_s3upgrade.sh <prefix"
+       echo "Usage: test_s3upgrade.sh <prefix>"
        exit 1
 fi
 
-DATADIR=$PREFIX/upgrade
+mkdir -p $PREFIX
+rm -f $PREFIX/*
 
-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
+bin/smbscript ../testdata/samba3/verify ../testdata/samba3
+bin/smbscript setup/upgrade --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf