summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-07-02 10:38:11 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-07-02 10:38:11 +0200
commit988237bbd5d01379433bd22e99fba06837b359f9 (patch)
tree751639ee92ad5e456200182b349618d73c34f292 /tests
parentb1b59d5fe607049439fe14754b067a61c9cfa055 (diff)
Improve tests
Diffstat (limited to 'tests')
-rw-r--r--tests/README.org21
-rw-r--r--tests/api_wait_end_3n/node.py3
-rw-r--r--tests/api_wait_end_3n/out3
3 files changed, 20 insertions, 7 deletions
diff --git a/tests/README.org b/tests/README.org
index ae648fe..fdb12f4 100644
--- a/tests/README.org
+++ b/tests/README.org
@@ -27,17 +27,26 @@ Tests folders names convention:
- [X] If timeout not expire receivet() should receive the data in the queue
- [X] If timeout expire receivet() should return -1
- [X] If data received when timeout expire (same simulated time), data should be received
-* api_send0_eth0_1s1r
-* api_send_4interfaces_1s2r
-* api_send_eth0_1s1r
-* api_send_eth0_2s1r
+* api_send0_eth0_1s1r [1/1]
+- [X] Whatever the simulated time, instantaneous send() works as expected
+* api_send_4interfaces_1s2r [1/1]
+- [X] Perform send with 4 interfaces: 2 wireless and 2 wired
+* api_send_eth0_1s1r [3/3]
+- [X] Proper duration for 1 communication with latency=0
+- [X] No data receive on eth0 when receiver is turned off
+- [X] Communications on eth0 is created and performed (simulated time increase) even if receiver is turned off
+* api_send_eth0_2s1r [1/1]
+- [X] Check send on 2 receivers works
* api_send_eth0_3s1r
* api_sendt_eth0_1s1r
* api_sendt_wlan0_1s2r
* api_send_wlan0_1s2r
* api_send_wlan0_2s1r
-* api_wait_2n
-* api_wait_end_3n
+* api_wait_2n [1/1]
+- [X] Wait works as expected on 2 nodes
+* api_wait_end_3n [2/2]
+- [X] Wait for 0s works as expected
+- [X] wait_end() works as expected
* breakpoints_auto_1n
* breakpoints_manual_1n
* breakpoints_manual_no_callback_1n
diff --git a/tests/api_wait_end_3n/node.py b/tests/api_wait_end_3n/node.py
index a8fbcd7..eddc408 100644
--- a/tests/api_wait_end_3n/node.py
+++ b/tests/api_wait_end_3n/node.py
@@ -4,7 +4,8 @@ def execute(api):
wait=api.node_id
api.log("Before wait for "+str(wait)+"s")
api.wait(wait) # Since 3 nodes max(wait)==2
-
+ api.log("First wait end")
+
# Ensure that wait end return back when simulation ends
api.wait_end()
api.log("Terminated")
diff --git a/tests/api_wait_end_3n/out b/tests/api_wait_end_3n/out
index 321b0c2..54656da 100644
--- a/tests/api_wait_end_3n/out
+++ b/tests/api_wait_end_3n/out
@@ -1,6 +1,9 @@
[t=0.000,src=n0] Before wait for 0s
+[t=0.000,src=n0] First wait end
[t=0.000,src=n1] Before wait for 1s
[t=0.000,src=n2] Before wait for 2s
+[t=1.000,src=n1] First wait end
+[t=2.000,src=n2] First wait end
[t=2.000,src=n0] Terminated
[t=2.000,src=n1] Terminated
[t=2.000,src=n2] Terminated