Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run evm2wasm tests using runevm #375

Merged
merged 1 commit into from
May 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,19 @@ defaults:
command: |
~/build/evmc/test/evmc-vmtester ~/build/src/libhera.so

# evm2wasm-test: &evm2wasm-test
# run:
# name: "Run evm2wasm state tests"
# command: |
# if [[ $PRELOAD_ASAN ]]; then export LD_PRELOAD=/usr/lib/clang/8/lib/linux/libclang_rt.asan-x86_64.so; fi
# testeth --version
# testeth -t GeneralStateTests/stExample -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --singletest "add11" --evmc evm1mode=evm2wasm.cpp
# testeth -t GeneralStateTests/stStackTests -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=evm2wasm.cpp
evm2wasm-test: &evm2wasm-test
run:
name: "Run evm2wasm state tests (using runevm contract)"
command: |
curl -o /tmp/runevm.wasm -L https://github.com/axic/runevm/releases/download/0.1.0-alpha2/runevm.wasm
test "$(shasum /tmp/runevm.wasm)" = "f9c11823f34bc2910bfa457342e3d6d00801ea5f /tmp/runevm.wasm"
if [[ $PRELOAD_ASAN ]]; then export LD_PRELOAD=/usr/lib/clang/8/lib/linux/libclang_rt.asan-x86_64.so; fi
testeth --version
testeth -t GeneralStateTests/stExample -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=runevm --evmc sys:runevm=/tmp/runevm.wasm
# This works, but takes too much time (4 minutes)
# testeth -t GeneralStateTests/stStackTests -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=runevm --evmc sys:runevm=/tmp/runevm.wasm
testeth -t GeneralStateTests/stShift -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=runevm --evmc sys:runevm=/tmp/runevm.wasm
testeth -t GeneralStateTests/stCodeSizeLimit -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=runevm --evmc sys:runevm=/tmp/runevm.wasm

upload-coverage-data: &upload-coverage-data
run:
Expand Down Expand Up @@ -210,7 +215,7 @@ jobs:
- *test-wabt
- *test-wavm
- *evmc-test
# - *evm2wasm-test
- *evm2wasm-test

linux-clang-shared-asan:
environment:
Expand Down Expand Up @@ -239,7 +244,7 @@ jobs:
- *test-wabt
- *test-wavm
- *evmc-test
# - *evm2wasm-test
- *evm2wasm-test

linux-gcc-shared-coverage:
environment:
Expand Down