Skip to content

Commit

Permalink
s3: torture: Add call to smbtorture smb2.twrp.openroot
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
jrasamba committed May 5, 2020
1 parent 2b8ea97 commit c3377b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions source3/script/tests/test_shadow_copy_torture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ test_shadow_copy_write()
failed=`expr $failed + 1`
}


test_shadow_copy_stream()
{
local msg
Expand Down Expand Up @@ -104,11 +105,32 @@ 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
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

0 comments on commit c3377b4

Please sign in to comment.