diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/go/test.sh')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/test/go/test.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/go/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/go/test.sh new file mode 100644 index 000000000..c6224858e --- /dev/null +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/go/test.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Strict mode +set -e + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do + DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + SOURCE="$(readlink "$SOURCE")" + [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" +done +TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +export GOPATH=${HOME}/.go +export PATH=$PATH:$GOPATH/bin +echo "# getting go dependencies (can take some time)..." +cd ${TEST_DIR}/../.. && go get +cd ${GOPATH}/src/github.com/ethereum/go-ethereum +git checkout poc-9 +cd ${TEST_DIR} && go test |