From 0c4636a2b39a8547a8c51a2fc56da3c97d909b16 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Fri, 8 Jan 2016 19:30:01 +0000 Subject: [PATCH] Speed up tests by doing a go test -i before hand. --- test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test b/test index 73a5952ef..5b88d5270 100755 --- a/test +++ b/test @@ -57,6 +57,9 @@ fi PACKAGE_BASE=$(go list -e ./) +# Speed up the tests by compiling and installing their dependancies first. +go test -i $GO_TEST_ARGS $TESTDIRS + for dir in $TESTDIRS; do if [ -z "$NO_GO_GET" ]; then go get -t -tags netgo $dir