Skip to content

Commit

Permalink
autotest: these are daemon processes; don't wait for them
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikvs committed Feb 3, 2017
1 parent c7d4b98 commit 846786e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions test/autotest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ MULTICAST6 TEST ~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
(./build/test/picoapp6.elf --vde pic1,/tmp/pic0.ctl,aaaa::2,ffff::, -a mcastreceive_ipv6,aaaa::2,ff00::e007:707,6667,6667,) &
pids="$! "
(./build/test/picoapp6.elf --vde pic2,/tmp/pic0.ctl,aaaa::3,ffff::, -a mcastreceive_ipv6,aaaa::3,ff00::e007:707,6667,6667,) &
pids+="$! "
(./build/test/picoapp6.elf --vde pic3,/tmp/pic0.ctl,aaaa::4,ffff::, -a mcastreceive_ipv6,aaaa::4,ff00::e007:707,6667,6667,) &
pids+="$! "
sleep 2
./build/test/picoapp6.elf --vde pic0,/tmp/pic0.ctl,aaaa::1,ffff::, -a mcastsend_ipv6,aaaa::1,ff00::e007:707,6667,6667,|| exit 1
for pid in $pids; do wait $pid || exit 1; done
killall -w picoapp6.elf -s SIGQUIT

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ PING6 LOCALHOST TEST ~~~"
Expand Down Expand Up @@ -146,14 +143,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ MULTICAST TEST ~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
(./build/test/picoapp.elf --vde pic1:/tmp/pic0.ctl:10.40.0.3:255.255.0.0: -a mcastreceive:10.40.0.3:224.7.7.7:6667:6667:) &
pids="$! "
(./build/test/picoapp.elf --vde pic2:/tmp/pic0.ctl:10.40.0.4:255.255.0.0: -a mcastreceive:10.40.0.4:224.7.7.7:6667:6667:) &
pids+="$! "
(./build/test/picoapp.elf --vde pic3:/tmp/pic0.ctl:10.40.0.5:255.255.0.0: -a mcastreceive:10.40.0.5:224.7.7.7:6667:6667:) &
pids+="$! "
sleep 2
./build/test/picoapp.elf --vde pic0:/tmp/pic0.ctl:10.40.0.2:255.255.0.0: -a mcastsend:10.40.0.2:224.7.7.7:6667:6667: || exit 1
for pid in $pids; do wait $pid || exit 1; done
killall -w picoapp.elf

echo
echo
Expand Down Expand Up @@ -253,14 +247,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ MULTICAST TEST ~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
(./build/test/picoapp.elf --vde pic1:/tmp/pic0.ctl:10.40.0.3:255.255.0.0::: -a mcastreceive:10.40.0.3:224.7.7.7:6667:6667:) &
pids="$! "
(./build/test/picoapp.elf --vde pic2:/tmp/pic0.ctl:10.40.0.4:255.255.0.0::: -a mcastreceive:10.40.0.4:224.7.7.7:6667:6667:) &
pids+="$! "
(./build/test/picoapp.elf --vde pic3:/tmp/pic0.ctl:10.40.0.5:255.255.0.0::: -a mcastreceive:10.40.0.5:224.7.7.7:6667:6667:) &
pids+="$! "
sleep 2
./build/test/picoapp.elf --vde pic0:/tmp/pic0.ctl:10.40.0.2:255.255.0.0::: -a mcastsend:10.40.0.2:224.7.7.7:6667:6667: || exit 1
for pid in $pids; do wait $pid || exit 1; done
killall -w picoapp.elf

killall -w picoapp.elf

Expand Down

0 comments on commit 846786e

Please sign in to comment.