summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-13 13:22:39 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-13 13:22:39 +0200
commitb3cbb52f00e000277c3c74e1e9eab230d8b2d843 (patch)
treefb0c9f981d79a433d7d52dc0ed5377f5689c48ad /tests
parente188ca4040ba59b7e61402a3d48c888463b3a4bd (diff)
Update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/api_log_5n/platform.yaml16
-rw-r--r--tests/api_send_eth0_3s1r/platform.yaml17
-rwxr-xr-xtests/run.sh4
3 files changed, 36 insertions, 1 deletions
diff --git a/tests/api_log_5n/platform.yaml b/tests/api_log_5n/platform.yaml
new file mode 100644
index 0000000..03e4416
--- /dev/null
+++ b/tests/api_log_5n/platform.yaml
@@ -0,0 +1,16 @@
+nodes:
+ count: 5
+ implementations:
+ - all node.py
+
+interfaces:
+ wlan0:
+ type: "wireless"
+ links:
+ - all 5bps 0s all
+ txperfs:
+ - all 5bps 0s
+ eth0:
+ type: "wired"
+ links:
+ - all 5Bps 0s all \ No newline at end of file
diff --git a/tests/api_send_eth0_3s1r/platform.yaml b/tests/api_send_eth0_3s1r/platform.yaml
new file mode 100644
index 0000000..7101548
--- /dev/null
+++ b/tests/api_send_eth0_3s1r/platform.yaml
@@ -0,0 +1,17 @@
+nodes:
+ count: 4
+ implementations:
+ - 0-2 sender.py
+ - 3 receiver.py
+
+interfaces:
+ wlan0:
+ type: "wireless"
+ links:
+ - all 1Bps 0s all
+ txperfs:
+ - all 1Bps 0s
+ eth0:
+ type: "wired"
+ links:
+ - all 1Bps 0s all \ No newline at end of file
diff --git a/tests/run.sh b/tests/run.sh
index c92187c..676d7c7 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -11,7 +11,9 @@ for test in ${tests}
do
printf "%-50s%s %s" "- $(basename $test)" "=>"
cd $test
- timeout $test_timeout ${pythonexec} simulator.py &> "$out"
+ testcmd="${pythonexec} simulator.py"
+ [ -e "platform.yaml" ] && testcmd="esds run platform.yaml"
+ timeout $test_timeout ${testcmd} &> "$out"
# Ensure timeout
if [ $? -eq 124 ]