Skip to content

Commit 846786e

Browse files
committed
autotest: these are daemon processes; don't wait for them
1 parent c7d4b98 commit 846786e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/autotest.sh

+3-12
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
6969
echo "~~~ MULTICAST6 TEST ~~~"
7070
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
7171
(./build/test/picoapp6.elf --vde pic1,/tmp/pic0.ctl,aaaa::2,ffff::, -a mcastreceive_ipv6,aaaa::2,ff00::e007:707,6667,6667,) &
72-
pids="$! "
7372
(./build/test/picoapp6.elf --vde pic2,/tmp/pic0.ctl,aaaa::3,ffff::, -a mcastreceive_ipv6,aaaa::3,ff00::e007:707,6667,6667,) &
74-
pids+="$! "
7573
(./build/test/picoapp6.elf --vde pic3,/tmp/pic0.ctl,aaaa::4,ffff::, -a mcastreceive_ipv6,aaaa::4,ff00::e007:707,6667,6667,) &
76-
pids+="$! "
7774
sleep 2
7875
./build/test/picoapp6.elf --vde pic0,/tmp/pic0.ctl,aaaa::1,ffff::, -a mcastsend_ipv6,aaaa::1,ff00::e007:707,6667,6667,|| exit 1
79-
for pid in $pids; do wait $pid || exit 1; done
76+
killall -w picoapp6.elf -s SIGQUIT
8077

8178
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
8279
echo "~~~ PING6 LOCALHOST TEST ~~~"
@@ -146,14 +143,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
146143
echo "~~~ MULTICAST TEST ~~~"
147144
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
148145
(./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:) &
149-
pids="$! "
150146
(./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:) &
151-
pids+="$! "
152147
(./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:) &
153-
pids+="$! "
154148
sleep 2
155149
./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
156-
for pid in $pids; do wait $pid || exit 1; done
150+
killall -w picoapp.elf
157151

158152
echo
159153
echo
@@ -253,14 +247,11 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
253247
echo "~~~ MULTICAST TEST ~~~"
254248
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
255249
(./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:) &
256-
pids="$! "
257250
(./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:) &
258-
pids+="$! "
259251
(./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:) &
260-
pids+="$! "
261252
sleep 2
262253
./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
263-
for pid in $pids; do wait $pid || exit 1; done
254+
killall -w picoapp.elf
264255

265256
killall -w picoapp.elf
266257

0 commit comments

Comments
 (0)