Add shell based test harness

This allows you to simulate one or more simultaneously running mgmt
processes. It should be easy to use by following the test cases provided.
This commit is contained in:
James Shubin
2016-01-20 03:59:04 -05:00
parent 820294cd9a
commit d5367b7a1c
12 changed files with 306 additions and 2 deletions

6
test/shell/wait.sh Normal file
View File

@@ -0,0 +1,6 @@
# NOTE: boiler plate to wait on mgmt; source with: . wait.sh; should NOT be +x
for j in `jobs -p`
do
[ $j -eq `pidof etcd` ] && continue # don't wait for etcd
wait $j # wait for mgmt job $j
done