VFSTEST_PREFIX=vfstest
VFSTEST_TMPDIR=$(mktemp -d ${PREFIX}/${VFSTEST_PREFIX}_XXXXXX)
+# We could pass in the --option=... via tests.py as ADDARGS
+# Atm i've choosen to specify them here:
+
+MYARGS1="--option=vfsobjects=catia"
+MYARGS2="--option=catia:mappings=0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6,0x20:0xb1"
+
# vars for the translation test:
# a) here for unix-to-windows test
UNIX_FILE="a\\a:a*a?a<a>a|a"
# test "translate" unix-to-windows
test_vfstest()
{
- cmd='$VFSTEST -f $TESTBASE/vfstest.cmd $ADDARGS '
+ cmd='$VFSTEST -f $TESTBASE/vfstest.cmd $MYARGS1 $MYARGS2 $ADDARGS '
out=`eval $cmd`
ret=$?
# and then check the created unix directory name
test_vfstest_dir()
{
- cmd='$VFSTEST -f $TESTBASE/vfstest1.cmd $ADDARGS '
+ cmd='$VFSTEST -f $TESTBASE/vfstest1.cmd $MYARGS1 $MYARGS2 $ADDARGS '
out=`eval $cmd`
ret=$?
if [ $NUM -ne 1 ] ; then
echo "Cannot find $UNIX_DIR"
false
- else
+ else
true
fi
}
-testit "vfstest" test_vfstest || failed=`expr $failed + 1`
+testit "vfstest_catia" test_vfstest || failed=`expr $failed + 1`
if [ $failed = 0 ] ; then
- testit "vfstest1" test_vfstest_dir || failed=`expr $failed + 1`
+ testit "vfstest1_catia" test_vfstest_dir || failed=`expr $failed + 1`
fi
# Cleanup: remove tempdir
plantestsuite("samba.vfstest.stream_depot", "s3dc:local", [os.path.join(samba3srcdir, "script/tests/stream-depot/run.sh"), binpath("vfstest"), "$PREFIX", configuration])
plantestsuite("samba.vfstest.xattr-tdb-1", "s3dc:local", [os.path.join(samba3srcdir, "script/tests/xattr-tdb-1/run.sh"), binpath("vfstest"), "$PREFIX", configuration])
plantestsuite("samba.vfstest.acl", "s3dc:local", [os.path.join(samba3srcdir, "script/tests/vfstest-acl/run.sh"), binpath("vfstest"), "$PREFIX", configuration])
+plantestsuite("samba.vfstest.catia", "s3dc:local", [os.path.join(samba3srcdir, "script/tests/vfstest-catia/run.sh"), binpath("vfstest"), "$PREFIX", configuration])
for options in ["--option=clientusespnego=no", " --option=clientntlmv2auth=no --option=clientlanmanauth=yes --max-protocol=LANMAN2", ""]:
env = "s3dc"