integration runner: run tests on a fresh binary.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-04 13:59:33 -07:00
parent 2600c8823b
commit c236e2f11d
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@ function execute() {
# Tests to run. Defaults to all. # Tests to run. Defaults to all.
TESTS=${@:-.} TESTS=${@:-.}
# Generate a temporary binary for the tests.
export SWARM_BINARY=`mktemp`
# Build Swarm.
execute go build -o "$SWARM_BINARY" ../..
# Start the docker engine. # Start the docker engine.
execute docker --daemon --log-level=panic \ execute docker --daemon --log-level=panic \
--storage-driver="$STORAGE_DRIVER" --exec-driver="$EXEC_DRIVER" & --storage-driver="$STORAGE_DRIVER" --exec-driver="$EXEC_DRIVER" &