From fa85240f8440450122f502de1b570803560eeda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 17 Jul 2019 14:36:58 +0200 Subject: [PATCH] cmake: Use evmc-vmtester helper --- CMakeLists.txt | 1 + circle.yml | 3 ++- test/CMakeLists.txt | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1af1a68b..726b8faea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ endif() add_subdirectory(evmc) add_subdirectory(src) +enable_testing() add_subdirectory(test) diff --git a/circle.yml b/circle.yml index 61d890eb8..4d5453c27 100644 --- a/circle.yml +++ b/circle.yml @@ -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 evm2wasm-test: &evm2wasm-test run: diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 312fe07bc..95e3f77a5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,9 @@ +include(../evmc/cmake/EVMC.cmake) + +if(TARGET evmc::evmc-vmtester) + evmc_add_vm_test(NAME evmc-check TARGET hera) +endif() + if(HERA_FUZZING) add_subdirectory(fuzzing) endif()