summaryrefslogtreecommitdiff
path: root/test/script/network.et
blob: 7403c21f4110cd760d6ebfd32638f4d7f6886a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module network

asset scripts:
    path: ../asset/network


def run_test_from using (p : Process) (file : String):
    with p:
        send "load $file"
        expect /load-done/

        send "run Test"
        expect /run-test-result Test (.*)/ capture result
        guard (result == "done")
        expect /run-done 1 1 0 0/


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"