Skip to content

Commit

Permalink
Run evm2wasm tests using runevm
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Apr 30, 2019
1 parent 86935b0 commit 2379e71
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,16 @@ 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-alpha1/runevm.wasm
test "$(shasum /tmp/runevm.wasm)" = "7f7a05a799496258e45d4b74d1a5d11f4cdbc03d /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 --singletest "add11" --evmc evm1mode=evm2wasm --evmc sys:evm2wasm=/tmp/runevm.wasm
testeth -t GeneralStateTests/stStackTests -- --testpath tests --vm ~/build/src/libhera.so --singlenet Byzantium --evmc evm1mode=evm2wasm --evmc sys:evm2wasm=/tmp/runevm.wasm
upload-coverage-data: &upload-coverage-data
run:
Expand Down Expand Up @@ -210,7 +212,7 @@ jobs:
- *test-wabt
- *test-wavm
- *evmc-test
# - *evm2wasm-test
- *evm2wasm-test

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

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

0 comments on commit 2379e71

Please sign in to comment.