mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 00:18:24 +00:00
test: Add some integration tests for evmc tool
This commit is contained in:
parent
981ce71f2d
commit
3e0da0028e
@ -4,5 +4,6 @@
|
||||
|
||||
add_subdirectory(cmake_package)
|
||||
add_subdirectory(compilation)
|
||||
add_subdirectory(tools)
|
||||
add_subdirectory(unittests)
|
||||
add_subdirectory(vmtester)
|
||||
|
14
test/tools/CMakeLists.txt
Normal file
14
test/tools/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2019 The EVMC Authors.
|
||||
# Licensed under the Apache License, Version 2.0.
|
||||
|
||||
set(prefix ${PROJECT_NAME}/evmc-run)
|
||||
|
||||
add_test(
|
||||
NAME ${prefix}/example1
|
||||
COMMAND evmc::tool run --vm $<TARGET_FILE:evmc::example-vm> 30600052596000f3 --gas 99
|
||||
)
|
||||
set_tests_properties(
|
||||
${prefix}/example1 PROPERTIES PASS_REGULAR_EXPRESSION
|
||||
"Result: +success[\r\n]+Gas used: +99[\r\n]+Output: +0000000000000000000000000000000000000000[\r\n]"
|
||||
)
|
@ -6,6 +6,7 @@ hunter_add_package(CLI11)
|
||||
find_package(CLI11 REQUIRED)
|
||||
|
||||
add_executable(evmc-tool main.cpp utils.cpp utils.hpp)
|
||||
add_executable(evmc::tool ALIAS evmc-tool)
|
||||
set_target_properties(evmc-tool PROPERTIES
|
||||
OUTPUT_NAME evmc
|
||||
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user