diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-08-18 22:14:56 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-08-18 22:14:56 +0200 |
commit | 52323b89126bef9264801bce37e85fee3a41a0b6 (patch) | |
tree | 6288bf754a4780e6229b5d804468e88e4d51f066 /test/discovery.test | |
parent | f36d74d2e599d3b8bbee9e485c0c262fb068baa5 (diff) |
Test script for simple discovery
Diffstat (limited to 'test/discovery.test')
-rw-r--r-- | test/discovery.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/discovery.test b/test/discovery.test new file mode 100644 index 0000000..26e8eaf --- /dev/null +++ b/test/discovery.test @@ -0,0 +1,13 @@ +test: + spawn on node1 as p1 + spawn on node2 as p2 + send "create-identity Device1" to p1 + send "create-identity Device2" to p2 + send "start-server" to p1 + send "start-server" to p2 + expect /peer [0-9]+ 192.168.0.11:29665/ from p1 + expect /peer [0-9]+ 192.168.0.12:29665/ from p1 + expect /peer [0-9]+ 192.168.0.12:29665/ from p2 + expect /peer [0-9]+ 192.168.0.11:29665/ from p2 + expect /peer [0-9]+ Device2 Device2/ from p1 + expect /peer [0-9]+ Device1 Device1/ from p2 |