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 Sep 18, 2018
1 parent f08ca82 commit 232d6a7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,24 @@ defaults:
command: |
~/build/evmc/test/evmc-vmtester ~/build/src/libhera.so
evm2wasm-test: &evm2wasm-test
evm2wasm-direct-test: &evm2wasm-direct-test
run:
name: "Run evm2wasm state tests"
name: "Run evm2wasm state tests (using evm2wasm.cpp directly)"
command: |
if [[ $PRELOAD_ASAN ]]; then export LD_PRELOAD=/usr/lib/clang/6.0/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-contract-test: &evm2wasm-contract-test
run:
name: "Run evm2wasm state tests (using runevm contract)"
command: |
curl -o /tmp/runevm.wasm -L https://github.com/axic/runevm/releases/download/prototype/runevm.wasm
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:
name: "Upload coverage data"
Expand Down Expand Up @@ -209,7 +218,8 @@ jobs:
- *test-wabt
- *test-wavm
- *evmc-test
- *evm2wasm-test
- *evm2wasm-direct-test
- *evm2wasm-contract-test

linux-clang-shared-asan:
<<: *linux-clang-shared
Expand Down

0 comments on commit 232d6a7

Please sign in to comment.