Files
weave/test/setup.sh
T
Michael Bridgen 5b5d1e615d Smoke tests
cd test
    cat README.md
    ./setup.sh
    ./run_all.sh
2014-12-04 17:20:58 +00:00

19 lines
512 B
Bash
Executable File

#!/bin/bash
set -e
echo Fetching assert script
curl -sS https://raw.githubusercontent.com/lehmannro/assert.sh/master/assert.sh > ./assert.sh
. ./config.sh
echo Copying weave images and script to hosts
for HOST in $HOST1 $HOST2; do
docker_on $HOST load -i /var/tmp/weave.tar
docker_on $HOST load -i /var/tmp/weavedns.tar
run_on $HOST mkdir -p `dirname $WEAVE`
cat ../weave | run_on $HOST sh -c "cat > $WEAVE"
run_on $HOST chmod a+x $WEAVE
run_on $HOST sudo service docker restart
done