From c3377b4c02d0eebb1917c5306f9dd6407cadaee0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 4 May 2020 17:08:30 -0700 Subject: [PATCH] s3: torture: Add call to smbtorture smb2.twrp.openroot Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- .../script/tests/test_shadow_copy_torture.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source3/script/tests/test_shadow_copy_torture.sh b/source3/script/tests/test_shadow_copy_torture.sh index 3b05fc50f72..240a0083506 100755 --- a/source3/script/tests/test_shadow_copy_torture.sh +++ b/source3/script/tests/test_shadow_copy_torture.sh @@ -75,6 +75,7 @@ test_shadow_copy_write() failed=`expr $failed + 1` } + test_shadow_copy_stream() { local msg @@ -104,6 +105,25 @@ EOF failed=`expr $failed + 1` } +test_shadow_copy_openroot() +{ + local msg + + msg=$1 + + #delete snapshots from previous tests + find $WORKDIR -name ".snapshots" -exec rm -rf {} \; 1>/dev/null 2>&1 + build_snapshots + + testit "opening shadow copy root of share" \ + $SMBTORTURE \ + -U$USERNAME%$PASSWORD \ + "//$SERVER/shadow_write" \ + --option="torture:twrp_snapshot=$SNAPSHOT" \ + smb2.twrp.openroot || \ + failed=`expr $failed + 1` +} + build_files $WORKDIR # test open for writing and write behaviour of snapshoted files @@ -111,4 +131,6 @@ test_shadow_copy_write "write behaviour of snapshoted files" test_shadow_copy_stream "reading stream of snapshotted file" +test_shadow_copy_openroot "opening root of shadow copy share" + exit $failed -- 2.47.3