Update tests

This commit is contained in:
Loic Guegan 2022-09-13 13:22:39 +02:00
parent e188ca4040
commit b3cbb52f00
5 changed files with 40 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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 ]