mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[circleci] Enable ewasm tests.
This commit is contained in:
parent
3698cd54a5
commit
d38eb75fb5
@ -55,5 +55,9 @@ then
|
||||
wget https://github.com/ethereum/evmone/releases/download/v0.4.0/evmone-0.4.0-darwin-x86_64.tar.gz
|
||||
tar xzpf evmone-0.4.0-darwin-x86_64.tar.gz -C /usr/local
|
||||
rm -f evmone-0.4.0-darwin-x86_64.tar.gz
|
||||
fi
|
||||
|
||||
# hera
|
||||
wget https://github.com/ewasm/hera/releases/download/v0.3.0/hera-0.3.0-darwin-x86_64.tar.gz
|
||||
tar xzpf hera-0.3.0-darwin-x86_64.tar.gz -C /usr/local
|
||||
rm -f hera-0.3.0-darwin-x86_64.tar.gz
|
||||
fi
|
||||
|
@ -69,7 +69,11 @@ for OPTIMIZE in ${OPTIMIZE_VALUES[@]}
|
||||
do
|
||||
for EVM in ${EVM_VALUES[@]}
|
||||
do
|
||||
[[ " $RUN_STEPS " =~ " $STEP " ]] && EVM="$EVM" OPTIMIZE="$OPTIMIZE" BOOST_TEST_ARGS="-t !@nooptions" "${REPODIR}/.circleci/soltest.sh"
|
||||
# run tests against hera ewasm evmc vm, only if OPTIMIZE == 0 and evm version is byzantium
|
||||
EWASM_ARGS=""
|
||||
[ "${EVM}" = "byzantium" ] && [ "${OPTIMIZE}" = "0" ] && EWASM_ARGS="--ewasm"
|
||||
|
||||
[[ " $RUN_STEPS " =~ " $STEP " ]] && EVM="$EVM" OPTIMIZE="$OPTIMIZE" SOLTEST_FLAGS="$SOLTEST_FLAGS $EWASM_ARGS" BOOST_TEST_ARGS="-t !@nooptions" "${REPODIR}/.circleci/soltest.sh"
|
||||
STEP=$(($STEP + 1))
|
||||
done
|
||||
done
|
||||
|
@ -115,8 +115,11 @@ do
|
||||
fi
|
||||
fi
|
||||
|
||||
EWASM_ARGS=""
|
||||
[ "${vm}" = "byzantium" ] && [ "${optimize}" = "" ] && EWASM_ARGS="--ewasm"
|
||||
|
||||
set +e
|
||||
"${SOLIDITY_BUILD_DIR}"/test/soltest --show-progress $log -- --testpath "$REPO_ROOT"/test "$optimize" --evm-version "$vm" $SMT_FLAGS $force_abiv2_flag
|
||||
"${SOLIDITY_BUILD_DIR}"/test/soltest --show-progress $log -- ${EWASM_ARGS} --testpath "$REPO_ROOT"/test "$optimize" --evm-version "$vm" $SMT_FLAGS $force_abiv2_flag
|
||||
|
||||
if test "0" -ne "$?"; then
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user