mirror of
https://github.com/status-im/evmc.git
synced 2025-02-24 00:48:09 +00:00
15 lines
483 B
CMake
15 lines
483 B
CMake
|
# 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]"
|
||
|
)
|