aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/tests.sh
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-26 20:29:54 +0800
committerGitHub <noreply@github.com>2017-04-26 20:29:54 +0800
commit3cbdf6d490c6871d58f12f877cdc84111a7325c1 (patch)
tree10c53b37db2275d9b6b220bb572ceca777e20297 /scripts/tests.sh
parentc3b839ca751bd11a5881fea1db1cfa92ec468d16 (diff)
parentefa9c7626718023083489aebee9a1662c5f24ab5 (diff)
downloaddexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar.gz
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar.bz2
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar.lz
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar.xz
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.tar.zst
dexon-solidity-3cbdf6d490c6871d58f12f877cdc84111a7325c1.zip
Merge pull request #1577 from ethereum/gas_table
Gas table update
Diffstat (limited to 'scripts/tests.sh')
-rwxr-xr-xscripts/tests.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/tests.sh b/scripts/tests.sh
index d47edd28..6b76c154 100755
--- a/scripts/tests.sh
+++ b/scripts/tests.sh
@@ -42,8 +42,16 @@ test "${output//[[:blank:]]/}" = "3"
# instead. This will go away soon.
if [[ "$OSTYPE" == "darwin"* ]]; then
ETH_PATH="$REPO_ROOT/eth"
-else
+elif [ -z $CI ]; then
ETH_PATH="eth"
+else
+ mkdir -p /tmp/test
+ wget -O /tmp/test/eth https://github.com/ethereum/cpp-ethereum/releases/download/solidityTester/eth
+ test "$(shasum /tmp/test/eth)" = "c132e8989229e4840831a4fb1a1d058b732a11d5 /tmp/test/eth"
+ sync
+ chmod +x /tmp/test/eth
+ sync # Otherwise we might get a "text file busy" error
+ ETH_PATH="/tmp/test/eth"
fi
# This trailing ampersand directs the shell to run the command in the background,