summaryrefslogtreecommitdiff
path: root/tests/breakpoints_manual_1n
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-13 14:38:30 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-13 14:38:30 +0200
commit17bfda379be17acb20abfb7f0c9231d36ef8766d (patch)
treef263d1b37e223278e4b929460c7f4dc7798493ef /tests/breakpoints_manual_1n
parentb3cbb52f00e000277c3c74e1e9eab230d8b2d843 (diff)
Debug and improve tests
Diffstat (limited to 'tests/breakpoints_manual_1n')
-rwxr-xr-xtests/breakpoints_manual_1n/callback.py4
-rw-r--r--tests/breakpoints_manual_1n/platform.yaml22
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/breakpoints_manual_1n/callback.py b/tests/breakpoints_manual_1n/callback.py
new file mode 100755
index 0000000..5c9c6bc
--- /dev/null
+++ b/tests/breakpoints_manual_1n/callback.py
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+
+def callback(simulator):
+ simulator.log("Hello Callback!")
diff --git a/tests/breakpoints_manual_1n/platform.yaml b/tests/breakpoints_manual_1n/platform.yaml
new file mode 100644
index 0000000..0860963
--- /dev/null
+++ b/tests/breakpoints_manual_1n/platform.yaml
@@ -0,0 +1,22 @@
+general:
+ breakpoints: [1,2,3,10]
+ breakpoints_callback:
+ file: "callback.py"
+ callback: "callback"
+
+nodes:
+ count: 2
+ implementations:
+ - all node.py
+
+interfaces:
+ wlan0:
+ type: "wireless"
+ links:
+ - all 2bps 0s all
+ txperfs:
+ - all 2bps 0s
+ eth0:
+ type: "wired"
+ links:
+ - all 2bps 0s all \ No newline at end of file