Add integration test for procspy edges.

This commit is contained in:
Tom Wilkie
2015-12-17 14:24:05 +00:00
parent 2f03fafe13
commit d101b0fced
7 changed files with 113 additions and 40 deletions

View File

@@ -1,21 +1,25 @@
#!/bin/bash
set -eux
set -ex
readonly ARG="$1"
eval $(weave env)
start_container() {
IMAGE=$2
BASENAME=$3
REPLICAS=$1
local IMAGE=$2
local BASENAME=$3
local REPLICAS=$1
shift 3
HOSTNAME=$BASENAME.weave.local
local HOSTNAME=$BASENAME.weave.local
for i in $(seq $REPLICAS); do
if docker inspect $BASENAME$i >/dev/null 2>&1; then
docker rm -f $BASENAME$i
fi
docker run -d --name=$BASENAME$i --hostname=$HOSTNAME $@ $IMAGE
if [ "$ARG" != "-rm" ]; then
docker run -d --name=$BASENAME$i --hostname=$HOSTNAME $@ $IMAGE
fi
done
}