Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
add new cascading write tests for #3742
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes99 committed Jun 14, 2023
1 parent 9ef1ffd commit 0bb49d1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/shell/shell_recorder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if (ENABLE_KDB_TESTING)
add_shell_recorder_test (selftest.esr REQUIRED_PLUGINS mini)
add_shell_recorder_test (record.esr REQUIRED_PLUGINS recorder)
add_shell_recorder_test (record_undo.esr REQUIRED_PLUGINS recorder)
add_shell_recorder_test (cascading_writes.esr)

if (ENABLE_REPLAY_TESTS)
file (GLOB REPLAY_TESTS replay_tests/*.esr)
Expand Down
56 changes: 56 additions & 0 deletions tests/shell/shell_recorder/cascading_writes.esr
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Mountpoint: user:/tests/cascadingwrites

RET: 12
< kdb meta-set /tests/cascadingwrites/meta something abc

RET: 0
< kdb meta-set spec:/tests/cascadingwrites/meta something abc

RET: 12
< kdb meta-set /tests/cascadingwrites/meta something xyz

STDOUT: abc
RET: 0
< kdb meta-get spec:/tests/cascadingwrites/meta something

RET: 12
< kdb editor /tests/cascadingwrites/set

RET: 12
< kdb set /tests/cascadingwrites/set lala

RET: 0
< kdb set $Mountpoint/set lala

STDOUT: lala
RET: 0
< kdb get $Mountpoint/set

RET: 12
< kdb mv /tests/cascadingwrites/set $Mountpoint/mv

RET: 12
< kdb mv $Mountpoint/set /tests/cascadingwrites/mv

RET: 0
< kdb mv $Mountpoint/set $Mountpoint/mv

STDOUT: lala
RET: 0
< kdb get $Mountpoint/mv

RET: 12
< kdb rm /tests/cascadingwrites/mv

STDOUT: lala
RET: 0
< kdb get $Mountpoint/mv

RET: 0
< kdb rm $Mountpoint/mv

RET: 0
< kdb rm -rf $Mountpoint

RET: 0
< kdb rm -rf spec:/tests/cascadingwrites

0 comments on commit 0bb49d1

Please sign in to comment.