diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-29 11:19:36 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-29 11:19:36 +0200 |
| commit | 1bef51d87860f782f687533012167bebb43c093d (patch) | |
| tree | 3c1e8160eadd3b7e5d314d9b1759486783544531 /tests/simple_send_eth0_3s1r | |
| parent | be6d819080fc6c4dccd5b7e56d1da6a1ab930d4f (diff) | |
Debug event processing
Diffstat (limited to 'tests/simple_send_eth0_3s1r')
| -rw-r--r-- | tests/simple_send_eth0_3s1r/out | 14 | ||||
| -rw-r--r-- | tests/simple_send_eth0_3s1r/sender.py | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/simple_send_eth0_3s1r/out b/tests/simple_send_eth0_3s1r/out index 8cf82a6..714a4c8 100644 --- a/tests/simple_send_eth0_3s1r/out +++ b/tests/simple_send_eth0_3s1r/out @@ -2,32 +2,32 @@ [t=0.000,src=n1] Send 1 bytes to n3 on eth0 [t=0.000,src=n2] Send 1 bytes to n3 on eth0 [t=3.000,src=n3] Receive 1 bytes on eth0 -[t=3.000,src=n3] Received: Hello World from 0! [t=3.000,src=n3] Receive 1 bytes on eth0 -[t=3.000,src=n3] Received: Hello World from 1! [t=3.000,src=n3] Receive 1 bytes on eth0 -[t=3.000,src=n3] Received: Hello World from 2! +[t=3.000,src=n3] Received: Hello World from 0! [t=3.000,src=n0] Send 2 bytes to n3 on eth0 [t=3.000,src=n1] Send 1 bytes to n3 on eth0 [t=3.000,src=n2] Send 1 bytes to n3 on eth0 +[t=3.000,src=n3] Received: Hello World from 1! +[t=3.000,src=n3] Received: Hello World from 2! [t=6.000,src=n3] Receive 1 bytes on eth0 -[t=6.000,src=n3] Received: Hello World from 1! [t=6.000,src=n3] Receive 1 bytes on eth0 +[t=6.000,src=n3] Received: Hello World from 1! [t=6.000,src=n3] Received: Hello World from 2! [t=7.000,src=n3] Receive 2 bytes on eth0 -[t=7.000,src=n3] Received: Hello World from 0! +[t=7.000,src=n3] Received: Hello World (2bytes) from 0! [t=7.000,src=n0] Send 2 bytes to n3 on eth0 [t=7.000,src=n1] Send 2 bytes to n3 on eth0 [t=7.000,src=n2] Send 1 bytes to n3 on eth0 [t=10.000,src=n3] Receive 1 bytes on eth0 [t=10.000,src=n3] Received: Hello World from 2! [t=12.000,src=n3] Receive 2 bytes on eth0 -[t=12.000,src=n3] Received: Hello World from 0! [t=12.000,src=n3] Receive 2 bytes on eth0 -[t=12.000,src=n3] Received: Hello World from 1! +[t=12.000,src=n3] Received: Hello World (2bytes) from 0! [t=12.000,src=n0] Send 1 bytes to n3 on eth0 [t=12.000,src=n1] Send 2 bytes to n3 on eth0 [t=12.000,src=n2] Send 3 bytes to n3 on eth0 +[t=12.000,src=n3] Received: Hello World (2bytes) from 1! [t=15.000,src=n3] Receive 1 bytes on eth0 [t=15.000,src=n3] Received: Hello World from 0! [t=17.000,src=n3] Receive 2 bytes on eth0 diff --git a/tests/simple_send_eth0_3s1r/sender.py b/tests/simple_send_eth0_3s1r/sender.py index d3c7bf2..6b8312b 100644 --- a/tests/simple_send_eth0_3s1r/sender.py +++ b/tests/simple_send_eth0_3s1r/sender.py @@ -8,14 +8,14 @@ def execute(api): # These send should start at 3s and be completed at 7s if api.node_id==0: - api.send("eth0","Hello World from {}!".format(api.node_id),2,3) # Should lasts 3s + 1s = 4s + api.send("eth0","Hello World (2bytes) from {}!".format(api.node_id),2,3) # Should lasts 3s + 1s = 4s else: api.send("eth0","Hello World from {}!".format(api.node_id),1,3) # Should lasts 3s api.wait(1) # Sync with node 0 at 7s # Those sends should start at 7s and be completed at 12s if api.node_id<=1: - api.send("eth0","Hello World from {}!".format(api.node_id),2,3) # Should last 3s + 2s = 5s + api.send("eth0","Hello World (2bytes) from {}!".format(api.node_id),2,3) # Should last 3s + 2s = 5s # Completed at 12s since 3 nodes are sharing the bandwidth up to 10s # then the 2 two remaining node send their last byte up to 12s else: |
