Add test case for urfave regression

Credit to jerith for helping me hack this together :)
This commit is contained in:
James Shubin
2016-07-05 07:20:21 -04:00
parent 7aeb55de70
commit c1605a4f22

9
test/shell/t7.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash -e
# run empty graph
timeout --kill-after=20s 15s ./mgmt run &
pid=$!
sleep 5s # let it converge
$(sleep 3s && killall -SIGINT mgmt)& # send ^C to exit mgmt
wait $pid # get exit status
exit $?