Commit Graph

85 Commits

Author SHA1 Message Date
Alex Beregszaszi dd065265d9 examples: add evmc_tx_context to ExampleHost 2019-08-08 18:11:28 +02:00
Paweł Bylica 17d3471b18
clang-format: Fix includes sorting
The includes sorting config is taken from Aleth with regex for C++ standard library made more restrictive. The functional change is that .h and .hpp files are now equal.
2019-08-06 14:43:19 +02:00
Paweł Bylica dfc9c4d9f1
vmtester: Rework "owning" the loaded VM 2019-08-06 14:21:39 +02:00
Paweł Bylica 9dc9bb081d
vmtester: Accept standard EVMC config options 2019-08-06 14:21:38 +02:00
Paweł Bylica 8c3c6cc9bc
vmtester: Use evmc::vm to properly destroy loaded VM 2019-08-06 14:21:38 +02:00
Paweł Bylica 6b46dfb7b0
test: Do not include helpers.hpp 2019-07-23 14:07:44 +02:00
Paweł Bylica 56ceca3b29
cmake: Add option to disable install 2019-07-23 12:29:31 +02:00
Paweł Bylica fc6b80b7c4
cmake: Add helper for adding vmtester based VM test 2019-07-17 14:17:41 +02:00
Paweł Bylica 4381f339d4
test: Rework tests for 32-bit architectures support 2019-06-27 14:02:06 +02:00
Alex Beregszaszi 4da65048a4 tests: precompile test doesn't needs a host context 2019-06-03 09:26:37 +01:00
Alex Beregszaszi 42f8d2522f tests: add test case for precompile implementation 2019-06-03 09:26:37 +01:00
Paweł Bylica 7b42c81f53
cmake: Add evmc/ prefix to ctest names 2019-05-15 14:45:10 +02:00
Paweł Bylica 0fb409ee83
cmake: Cleanup CMake script 2019-05-15 14:41:48 +02:00
Paweł Bylica ff14830784
Do not shadow variable names 2019-05-15 12:04:29 +02:00
Paweł Bylica 2e9bd6ffc5
examples: Add "Precompiles VM" example 2019-05-09 16:04:06 +02:00
Paweł Bylica 018ff5b2f0
Add experimental PRECOMPILES capability 2019-05-09 16:04:05 +02:00
Paweł Bylica 3779b533a1
vmtester: Change tests for result::create_address 2019-05-09 13:20:56 +02:00
Alex Beregszaszi 3173a07510
vmtester: move capabilities test earlier 2019-05-09 09:59:37 +02:00
Paweł Bylica d0a92e6202
vmtester: Workaround MSVC C++17 compilation issue 2019-05-06 12:33:04 +02:00
Paweł Bylica 39162766df
Update copyright year, include the years of files creation 2019-04-24 18:36:28 +02:00
Paweł Bylica a304db5c2d
test: Use loader error messages in vmtester 2019-04-24 15:02:57 +02:00
Alex Beregszaszi 13cdfd7b40 vmtester: add test case for CREATE 2019-04-24 12:08:49 +01:00
Alex Beregszaszi cd993e1388 vmtester: better way to avoid compiler optimisations 2019-04-24 11:47:30 +01:00
Alex Beregszaszi a2b011e334 vmtester: dereference if output_data is present 2019-04-24 10:58:26 +01:00
Alex Beregszaszi feecf65d29
Merge pull request #238 from ethereum/vmtester-reorder
vmtester: reorder tests to have the simple ones first
2019-04-24 09:41:59 +01:00
Alex Beregszaszi a1e0a0cb9e
vmtester: do not crash if create_vm returns nullptr 2019-04-24 10:38:52 +02:00
Alex Beregszaszi c6bdf32fa9 vmtester: reorder tests to have the simple ones first 2019-04-24 09:34:13 +01:00
Paweł Bylica 14c5356ae6
loader: Expose DLL load errors with evmc_last_error_msg()
Currently only works for errors by dlopen() on Linux and macos, otherwise returns NULL.
2019-04-16 18:06:54 +02:00
Paweł Bylica 68ffbc1a2d
CMake: Clean up vmtester tests prefix 2019-04-02 13:32:20 +02:00
Paweł Bylica d3d21e00fc
CMake: Add test "vmtester examplevm" 2019-04-02 13:31:05 +02:00
Paweł Bylica d5aad34707
vmtester: CLI parsing refactoring 2019-03-25 13:10:08 +01:00
Paweł Bylica ae3caec887
test: Add more evmc-vmtester CTest tests 2019-03-25 13:10:08 +01:00
Paweł Bylica c95000d8ec
CMake: Remove CLI11 dependency 2019-03-25 13:10:07 +01:00
Paweł Bylica 0328d36288
vmtester: Replace CLI11 with own command line args parsing 2019-03-25 13:10:07 +01:00
Paweł Bylica e3dab00a3d
vmtester: Get project version from CMake 2019-03-25 13:10:07 +01:00
Paweł Bylica cdbbd6a757
vmtester: Handle "invalid argument" error 2019-03-25 13:10:06 +01:00
Paweł Bylica 4683047d0b
test: Move compile-time checks from vmtester to unittests 2019-03-15 02:32:44 +01:00
Paweł Bylica a2c0934073
test: Fix formatting (clang-format-8) 2019-03-11 22:29:03 +01:00
Paweł Bylica d4fc289c80
Rename EVMC_LATEST_REVISION to EVMC_MAX_REVISION 2019-01-21 12:09:20 +01:00
Paweł Bylica dc495408be
Improve EVMC capabilities 2018-09-08 22:16:14 +02:00
Paweł Bylica 1ab90eb80a
examples: Use evmc_bytes32 in the Host example 2018-09-07 00:14:21 +02:00
Paweł Bylica f41fccd21e
Add test for EVMC_SET_OPTION_INVALID_VALUE 2018-09-06 17:57:49 +02:00
Alex Beregszaszi 50c254fb98 Introduce evmc_set_option_result enum 2018-09-06 09:54:09 +01:00
Paweł Bylica 9a2d07e595
Remove code hash from evmc_message 2018-09-03 19:58:57 +02:00
Paweł Bylica f858f79e2a
CMake: Flatten example_host 2018-08-31 13:10:06 +02:00
Paweł Bylica 78888b57a9
Create header for example_host 2018-08-31 13:09:04 +02:00
Paweł Bylica 43dce45a5b
Create context in example host 2018-08-31 13:09:04 +02:00
Paweł Bylica 5aefc4faf3
Replace capi.c example with example_host.cpp 2018-08-31 13:09:04 +02:00
Alex Beregszaszi 0403343779 Return evmc_tx_context in get_tx_context (as opposed to pointer parameter) 2018-08-30 14:03:50 +01:00
Paweł Bylica 3c86a6b934
Return result from call_fn
This changes the evmc_call_fn signature to return evmc_result object instead of getting result as an output parameter.
2018-08-29 23:00:27 +02:00