From 50e3f4e0cc313828aa6682ebd270e2abbfef422a 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: commands working with custom shared state --- test/state.et | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/state.et (limited to 'test') diff --git a/test/state.et b/test/state.et new file mode 100644 index 0000000..ab8703d --- /dev/null +++ b/test/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