summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-22 23:53:57 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-23 00:16:38 +0200
commitc071c53a8fbbed9e5a66ba3e939909bf45296128 (patch)
tree5b0c4f1fd4816bd3ab0b92de08a27949be29e70e /test/script
parent7a0c86835b8bd34c5bbaa0194e298c431d8b2c05 (diff)
Fix parsing statements using innerBlock without new variablesHEADmaster
Changelog: Fixed parsing of disconnect and packet loss commands.
Diffstat (limited to 'test/script')
-rw-r--r--test/script/network.et28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/script/network.et b/test/script/network.et
new file mode 100644
index 0000000..62006ad
--- /dev/null
+++ b/test/script/network.et
@@ -0,0 +1,28 @@
+module network
+
+asset scripts:
+ path: ../asset/network
+
+
+def run_test_from using p (file):
+ guard (file /= "") # TODO: forces (file :: String)
+ send "" to p # TODO: forces (p :: Process)
+
+ with p:
+ send "load $file"
+ expect /load-done/
+
+ send "run Test"
+ expect /run-test-result Test (.*)/ capture result
+ guard (result == "done")
+ expect /run-done/
+
+
+test DisconnectNode:
+ spawn as p
+ run_test_from using p "${scripts.path}/disconnect_node.et"
+
+
+test DisconnectNodes:
+ spawn as p
+ run_test_from using p "${scripts.path}/disconnect_nodes.et"