summaryrefslogtreecommitdiff
path: root/tests/simple_wait_2n
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-06-30 12:11:59 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-06-30 12:11:59 +0200
commitd0ae9f329685a19136cfd9a890b305db3bc384b9 (patch)
treeb3c72908b8930db16b1f682bb7119abeaf72fadf /tests/simple_wait_2n
parent1bef51d87860f782f687533012167bebb43c093d (diff)
Improve tests
Diffstat (limited to 'tests/simple_wait_2n')
-rw-r--r--tests/simple_wait_2n/node.py9
-rw-r--r--tests/simple_wait_2n/out9
-rwxr-xr-xtests/simple_wait_2n/simulator.py14
3 files changed, 0 insertions, 32 deletions
diff --git a/tests/simple_wait_2n/node.py b/tests/simple_wait_2n/node.py
deleted file mode 100644
index 86b06de..0000000
--- a/tests/simple_wait_2n/node.py
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env python
-
-def execute(api):
- api.log("Before wait")
- api.wait(2)
- api.log("After wait")
- api.log("Before wait")
- api.wait(3)
- api.log("After wait")
diff --git a/tests/simple_wait_2n/out b/tests/simple_wait_2n/out
deleted file mode 100644
index 8a694cc..0000000
--- a/tests/simple_wait_2n/out
+++ /dev/null
@@ -1,9 +0,0 @@
-[t=0.000,src=n0] Before wait
-[t=0.000,src=n1] Before wait
-[t=2.000,src=n0] After wait
-[t=2.000,src=n0] Before wait
-[t=2.000,src=n1] After wait
-[t=2.000,src=n1] Before wait
-[t=5.000,src=n0] After wait
-[t=5.000,src=n1] After wait
-[t=5.000,src=esds] Simulation ends
diff --git a/tests/simple_wait_2n/simulator.py b/tests/simple_wait_2n/simulator.py
deleted file mode 100755
index fc0e80d..0000000
--- a/tests/simple_wait_2n/simulator.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-
-# Load ESDS
-import esds
-import numpy as np
-
-B=np.full((2,2),2)
-L=np.full((2,2),0)
-s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}, "eth0":{"bandwidth":B, "latency":L, "is_wired":True}})
-
-s.create_node("node")
-s.create_node("node")
-
-s.run()