summaryrefslogtreecommitdiffstats
path: root/special
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2014-08-12 12:33:37 -0400
committerSteve Dickson <steved@redhat.com>2014-08-12 14:39:55 -0400
commit53cddd8d4c52a1566d3dcb8eedd316413da6f5ad (patch)
treeef9024f82dadb388eeaeb0575757dff0cf8fabfe /special
parent99eb35e09db27e797fbb0c0a0ab385ed683b0f9b (diff)
downloadcthon04-53cddd8d4c52a1566d3dcb8eedd316413da6f5ad.tar.gz
cthon04-53cddd8d4c52a1566d3dcb8eedd316413da6f5ad.tar.xz
cthon04-53cddd8d4c52a1566d3dcb8eedd316413da6f5ad.zip
Add capability to test SMB 2.0 and higher verions
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'special')
-rw-r--r--special/runtests.wrk9
1 files changed, 7 insertions, 2 deletions
diff --git a/special/runtests.wrk b/special/runtests.wrk
index a941d33..8f099fa 100644
--- a/special/runtests.wrk
+++ b/special/runtests.wrk
@@ -25,7 +25,12 @@ TMPDIR= ./op_unlk
echo ""
echo "check for proper open/rename operation"
-TMPDIR= ./op_ren
+if [ "$CIFS" = "yes" ] && echo $MNTOPTIONS | grep -E "vers=2|vers=3" > /dev/null
+then
+ echo "skipping test; not supported by SMB 2.0 and higher versions"
+else
+ TMPDIR= ./op_ren
+fi
echo ""
echo "check for proper open/chmod 0 operation"
@@ -93,7 +98,7 @@ echo "write/read" $size "MB file"
echo ""
echo "write/read at 2GB, 4GB edges"
-if echo $MNTOPTIONS | grep vers=2 > /dev/null
+if [ "$CIFS" != "yes" ] && echo $MNTOPTIONS | grep vers=2 > /dev/null
then
echo "skipping test; not supported with v2"
else