From 33d24479dea9e4573e9fdcbf22bb2093c37ea191 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 2 Jul 2022 14:03:36 +0200 Subject: [PATCH] Improve tests --- tests/README.org | 9 +++++++-- tests/api_sendt_eth0_1s1r/sender.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/README.org b/tests/README.org index f510daf..026c703 100644 --- a/tests/README.org +++ b/tests/README.org @@ -38,7 +38,10 @@ Tests folders names convention: * api_send_eth0_2s1r [1/1] - [X] Check send on 2 receivers works * api_send_eth0_3s1r -* api_sendt_eth0_1s1r +* api_sendt_eth0_1s1r [3/3] +- [X] sendt() works if timeout > transmission duration +- [X] sendt() works if timeout = transmission duration +- [X] sendt() do not work if timeout < transmission duration * api_sendt_wlan0_1s2r [2/2] - [X] Transmission work if timeout do not expire - [X] Transmission does not work if timeout expire @@ -59,7 +62,9 @@ Tests folders names convention: - [X] Simulation breaks at 1,2,3 and 10s * breakpoints_manual_no_callback_1n [1/1] - [X] Breakpoints work if no callback specified -* hidden_node_2s1r +* hidden_node_2s1r [2/2] +- [X] Bandwidth is 0 between 2 nodes means unreachable +- [X] Interferences occur on the node in between (hidden node problem) * mobility_eth0_bandwidth_1s1r * mobility_eth0_bandwidth_2s1r * mobility_eth0_latency_1s1r diff --git a/tests/api_sendt_eth0_1s1r/sender.py b/tests/api_sendt_eth0_1s1r/sender.py index ee2ea9d..c7fdb0d 100644 --- a/tests/api_sendt_eth0_1s1r/sender.py +++ b/tests/api_sendt_eth0_1s1r/sender.py @@ -11,4 +11,4 @@ def execute(api): # Should not work sendt(api,0.5) # Should work - sendt(api,2) + sendt(api,1)