2022-07-01 20:53:13 +02:00
|
|
|
#+TITLE: Test Description
|
|
|
|
#+AUTHOR: Loic Guegan
|
|
|
|
|
|
|
|
Tests folders names convention:
|
|
|
|
- m senders and n receivers is written "<m>s<n>r" (ex: "1s5r")
|
|
|
|
- n nodes is written "<n>n" (ex: "5n")
|
|
|
|
- Tests names follow the following format "<title>_<m>s<n>r" or "<title>_<n>n" (ex: "simple_send_rcv_1s5r", "ping_pong_2n")
|
|
|
|
- Tests that test elementary API functions should start with the "api" keyword
|
|
|
|
|
|
|
|
* api_log_5n [1/1]
|
|
|
|
- [X] Logs are performed in order
|
|
|
|
* api_read_clock_2n [1/1]
|
|
|
|
- [X] Read the current simulated time
|
2022-07-02 09:45:53 +02:00
|
|
|
* api_read_eth0_ncom_2s1r [3/3]
|
2022-07-01 20:53:13 +02:00
|
|
|
- [X] No communication should return 0
|
|
|
|
- [X] Work with 1 communication
|
|
|
|
- [X] Work with 2 communications
|
2022-07-02 09:45:53 +02:00
|
|
|
* api_read_order_ncom_1s2r [2/2]
|
|
|
|
- [X] Check that order of node instanciation (sender before receiver in simulator.py) do not matter on the results
|
|
|
|
if a communication starts while read to ncom is performed
|
|
|
|
- [X] If a communication starts while read to ncom is performed, it should return 0 (deterministic rule)
|
|
|
|
* api_read_wlan0_ncom_2s1r [1/1]
|
|
|
|
- [X] Ensure similar behavior wlan0/eth0 for ncom reads
|
|
|
|
* api_receivet0_eth0_1s1r [1/1]
|
|
|
|
- [X] receivet() with a timeout of 0 should receive the data while not modifying simulated time
|
|
|
|
* api_receivet_eth0_1s1r [3/3]
|
|
|
|
- [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
|
2022-07-02 10:38:11 +02:00
|
|
|
* 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
|
2022-07-02 14:23:38 +02:00
|
|
|
* api_send_eth0_3s1r [5/5]
|
|
|
|
- [X] 3 senders transmit to same node get their bandwidth divided by 3
|
|
|
|
- [X] If 2 of the 3 senders end their communications, the remaining one get its bandwidth divided by 2 to
|
|
|
|
send its remaining amount of data
|
|
|
|
- [X] If 1 of the 3 senders end its communication, the remaining 2 get their bandwidth divided by 2 to
|
|
|
|
send their remaining amount of data
|
|
|
|
- [X] 3 senders get their bandwidth divided by 3, 2 by 2 and 1 get full bandwidth
|
|
|
|
- [X] Ensure that after all these bandwidth sharing, a single send work as expected
|
2022-07-02 14:03:36 +02:00
|
|
|
* 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
|
2022-07-02 13:06:23 +02:00
|
|
|
* api_sendt_wlan0_1s2r [2/2]
|
|
|
|
- [X] Transmission work if timeout do not expire
|
|
|
|
- [X] Transmission does not work if timeout expire
|
|
|
|
* api_send_wlan0_1s2r [3/3]
|
|
|
|
- [X] All reachable receivers get the data
|
|
|
|
- [X] If receiver turned off data is not received
|
|
|
|
- [X] If receiver turned off at least one time during communication it must not receive the data
|
|
|
|
* api_send_wlan0_2s1r [1/1]
|
|
|
|
- [X] If 2 receivers send at the same time to the same receiver, interference should happend on the receiver
|
2022-07-02 10:38:11 +02:00
|
|
|
* 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
|
2022-07-02 13:06:23 +02:00
|
|
|
* breakpoints_auto_1n [1/1]
|
|
|
|
- [X] Simulation is interrupted every 3.3s during a transmission
|
|
|
|
* breakpoints_manual_1n [1/1]
|
|
|
|
- [X] Simulation breaks at 1,2,3 and 10s
|
|
|
|
* breakpoints_manual_no_callback_1n [1/1]
|
|
|
|
- [X] Breakpoints work if no callback specified
|
2022-07-02 14:03:36 +02:00
|
|
|
* 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)
|
2022-07-01 20:53:13 +02:00
|
|
|
* mobility_eth0_bandwidth_1s1r
|
|
|
|
* mobility_eth0_bandwidth_2s1r
|
|
|
|
* mobility_eth0_latency_1s1r
|
|
|
|
* mobility_eth0_latency_2s1r
|
|
|
|
* mobility_wlan0_bandwidth_1s1r
|
|
|
|
* mobility_wlan0_latency_1s1r
|
|
|
|
|