From 9f17395651bc24008c783f6a9b1bae70066ad969 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 2 Jul 2022 15:28:58 +0200 Subject: [PATCH] Improve tests --- tests/README.org | 18 ++++++++++++------ tests/mobility_eth0_latency_1s1r/simulator.py | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/README.org b/tests/README.org index 1af37b4..401b2ec 100644 --- a/tests/README.org +++ b/tests/README.org @@ -72,10 +72,16 @@ Tests folders names convention: * 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 -* mobility_eth0_latency_2s1r -* mobility_wlan0_bandwidth_1s1r -* mobility_wlan0_latency_1s1r +* mobility_eth0_bandwidth_1s1r [1/1] +- [X] Every 0.5s bandwidth get multiply by 2 +* mobility_eth0_bandwidth_2s1r [1/1] +- [X] Every 0.5s bandwidth get multiply by 2 with 2 senders sending to the same receiver (bandwidth divided by 2) +* mobility_eth0_latency_1s1r [1/1] +- [X] Every 0.5s latency increases by 0.5s +* mobility_eth0_latency_2s1r [1/1] +- [X] Every 0.5s latency increases by 0.5s with 2 senders sending to the same receiver (bandwidth divided by 2) +* mobility_wlan0_bandwidth_1s1r [1/1] +- [X] Every 0.5s bandwidth get multiply by 2 +* mobility_wlan0_latency_1s1r [1/1] +- [X] Every 0.5s latency increases by 0.5s diff --git a/tests/mobility_eth0_latency_1s1r/simulator.py b/tests/mobility_eth0_latency_1s1r/simulator.py index b03c5bc..455a1cb 100755 --- a/tests/mobility_eth0_latency_1s1r/simulator.py +++ b/tests/mobility_eth0_latency_1s1r/simulator.py @@ -14,7 +14,7 @@ import numpy as np # - Bandwidth = BW # - Latency = L # |-------------------+------------+----------------+----------------------+--------------------------+-------------------------| -# | Simulated time(s) | Latency(s) | Bandwidth(bps) | Remaining data (bit) | Communcation duration(s) | Communcation ends at(s) | +# | Simulated time(s) | Latency(s) | Bandwidth(bps) | Remaining data (bit) | Communcation duration(s) | Communication ends at(s) | # |-------------------+------------+----------------+----------------------+--------------------------+-------------------------| # | 0 | 0 | 8 | 8 | 1 | 1 | # | 0.5 | 0.5 | 8 | C/U*D = 4 | R/I * L + R/BW = 0.75 | 1.25 |