diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-30 12:11:59 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-06-30 12:11:59 +0200 |
| commit | d0ae9f329685a19136cfd9a890b305db3bc384b9 (patch) | |
| tree | b3c72908b8930db16b1f682bb7119abeaf72fadf /tests/simple_breakpoints_manual_1n | |
| parent | 1bef51d87860f782f687533012167bebb43c093d (diff) | |
Improve tests
Diffstat (limited to 'tests/simple_breakpoints_manual_1n')
| -rw-r--r-- | tests/simple_breakpoints_manual_1n/node.py | 4 | ||||
| -rw-r--r-- | tests/simple_breakpoints_manual_1n/out | 7 | ||||
| -rwxr-xr-x | tests/simple_breakpoints_manual_1n/simulator.py | 18 |
3 files changed, 0 insertions, 29 deletions
diff --git a/tests/simple_breakpoints_manual_1n/node.py b/tests/simple_breakpoints_manual_1n/node.py deleted file mode 100644 index f8c5633..0000000 --- a/tests/simple_breakpoints_manual_1n/node.py +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env python - -def execute(api): - api.log("Running") diff --git a/tests/simple_breakpoints_manual_1n/out b/tests/simple_breakpoints_manual_1n/out deleted file mode 100644 index 40c44b7..0000000 --- a/tests/simple_breakpoints_manual_1n/out +++ /dev/null @@ -1,7 +0,0 @@ -[t=0.000,src=n0] Running -[t=0.000,src=n1] Running -[t=1.000,src=esds] Hello Callback! -[t=2.000,src=esds] Hello Callback! -[t=3.000,src=esds] Hello Callback! -[t=10.000,src=esds] Hello Callback! -[t=10.000,src=esds] Simulation ends diff --git a/tests/simple_breakpoints_manual_1n/simulator.py b/tests/simple_breakpoints_manual_1n/simulator.py deleted file mode 100755 index dd12ed3..0000000 --- a/tests/simple_breakpoints_manual_1n/simulator.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python - -# Load ESDS -import esds -import numpy as np - -n=2 -B=np.full((n,n),n) -L=np.full((n,n),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") - -def callback(simulator): - simulator.log("Hello Callback!") - -s.run(breakpoints=[1,2,3,10],breakpoint_callback=callback) |
