1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source4/selftest/test_s3upgrade.sh
Stefan Metzmacher 1e84e4026e r22575: move script/tests/ -> selftest/
as discussed with jelmer and abartlet

metze
(This used to be commit e9fe3c40e1)
2007-10-10 14:51:46 -05:00

23 lines
487 B
Bash
Executable File

#!/bin/sh
PREFIX=$1
if [ -z "$PREFIX" ]
then
echo "Usage: test_s3upgrade.sh <prefix>"
exit 1
fi
SCRIPTDIR=../testprogs/ejs
DATADIR=../testdata
PATH=bin:$PATH
export PATH
mkdir -p $PREFIX
rm -f $PREFIX/*
. selftest/test_functions.sh
plantest "parse samba3" none bin/smbscript ../testdata/samba3/verify $CONFIGURATION ../testdata/samba3
#plantest "upgrade" none bin/smbscript setup/upgrade $CONFIGURATION --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf