From: Jeremy Allison Date: Tue, 5 May 2020 00:08:30 +0000 (-0700) Subject: s3: torture: Add call to smbtorture smb2.twrp.openroot X-Git-Tag: ldb-2.2.0~650 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3377b4c02d0eebb1917c5306f9dd6407cadaee0;p=thirdparty%2Fsamba.git s3: torture: Add call to smbtorture smb2.twrp.openroot Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- 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