summaryrefslogtreecommitdiff
path: root/source4/selftest/test_s3upgrade.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/selftest/test_s3upgrade.sh')
-rwxr-xr-xsource4/selftest/test_s3upgrade.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/selftest/test_s3upgrade.sh b/source4/selftest/test_s3upgrade.sh
new file mode 100755
index 0000000000..1ed43cb8eb
--- /dev/null
+++ b/source4/selftest/test_s3upgrade.sh
@@ -0,0 +1,22 @@
+#!/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