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

cmake: Use evmc-vmtester helper #549

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ endif()

add_subdirectory(evmc)
add_subdirectory(src)
enable_testing()
add_subdirectory(test)


Expand Down
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ defaults:
evmc-test: &evmc-test
run:
name: "Run evmc tests"
working_directory: ~/build
command: |
~/build/evmc/test/evmc-vmtester ~/build/src/libhera.so
ctest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this name coming from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


evm2wasm-test: &evm2wasm-test
run:
Expand Down
6 changes: 6 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
include(../evmc/cmake/EVMC.cmake)

if(TARGET evmc::evmc-vmtester)
evmc_add_vm_test(NAME evmc-check TARGET hera)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chfast Is this statically linking hera?

endif()

if(HERA_FUZZING)
add_subdirectory(fuzzing)
endif()