From 981ff308ecfbd596d7f94852462591316bcaa2e7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 9 Feb 2018 17:21:36 +0100 Subject: Split solcjs and external tests. --- scripts/test_emscripten.sh | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'scripts') diff --git a/scripts/test_emscripten.sh b/scripts/test_emscripten.sh index b659e5e5..a0827138 100755 --- a/scripts/test_emscripten.sh +++ b/scripts/test_emscripten.sh @@ -31,31 +31,7 @@ set -e REPO_ROOT=$(cd $(dirname "$0")/.. && pwd) SOLJSON="$REPO_ROOT/build/libsolc/soljson.js" -DIR=$(mktemp -d) -( - echo "Preparing solc-js..." - git clone --depth 1 https://github.com/ethereum/solc-js "$DIR" - cd "$DIR" - # disable "prepublish" script which downloads the latest version - # (we will replace it anyway and it is often incorrectly cached - # on travis) - npm config set script.prepublish '' - npm install - - # Replace soljson with current build - echo "Replacing soljson.js" - rm -f soljson.js - cp "$SOLJSON" soljson.js - - # Update version (needed for some tests) - VERSION=$("$REPO_ROOT/scripts/get_version.sh") - echo "Updating package.json to version $VERSION" - npm version --no-git-tag-version $VERSION - - echo "Running solc-js tests..." - npm run test -) -rm -rf "$DIR" - +echo "Running solcjs tests...." +"$REPO_ROOT/test/solcjsTests.sh" "$SOLJSON" echo "Running external tests...." "$REPO_ROOT/test/externalTests.sh" "$SOLJSON" -- cgit