From a271cccc66698754612a46164ecbea66c4296d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 7 Sep 2026 21:39:17 +0200 Subject: (test) Test: commands working with custom shared state --- state.et | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 state.et diff --git a/state.et b/state.et new file mode 100644 index 0000000..ab8703d --- /dev/null +++ b/state.et @@ -0,0 +1,26 @@ +module state + +import common + +test SharedStateLocal: + spawn as p + with p: + send "create-identity Device Owner" + expect /create-identity-done ref $refpat extref ($refpat).*/ capture device + send "identity-info $device" + expect /identity-info ref $device base $refpat owner ($refpat).*/ capture owner + + send "shared-state-val-get 0c6c1fe0-f2d7-4891-926b-c332449f7871" + expect /shared-state-val-get 0c6c1fe0-f2d7-4891-926b-c332449f7871 $owner/ + + for i in [ 1 .. 10 ]: + send: + "store rec" + "i:i $i" + "" + expect /store-done ($refpat)/ capture r + + send "shared-state-val-set ffffffff-0000-0000-0000-000000000001 $r" + + send "shared-state-val-get ffffffff-0000-0000-0000-000000000001" + expect /shared-state-val-get ffffffff-0000-0000-0000-000000000001 $r/ -- cgit v1.2.3