148 Commits

Author SHA1 Message Date
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
2717741286
CMake: Add cmake package integration tests 2019-04-02 14:08:23 +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
fcc067dd73
CMake: Add unittests to CTest 2019-04-02 13:15:00 +02:00
Paweł Bylica
61542e0444
CMake: Rename evmc-test to evmc-unittests 2019-04-02 12:36:08 +02:00
Paweł Bylica
e824942149
cpp: Make HostContext to implement HostInterface 2019-04-02 11:28:21 +02:00
Paweł Bylica
1a3ca7618d
cpp: Rename host to HostContext 2019-04-02 11:28:21 +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
Alex Beregszaszi
dc4a2f4c1a Include evmc.hpp in compilation test 2019-03-19 19:23:06 +00:00
Paweł Bylica
cf24ccb2ac
test: Add basic unit tests for C++ Host wrapper 2019-03-15 11:56:55 +01:00
Paweł Bylica
4683047d0b
test: Move compile-time checks from vmtester to unittests 2019-03-15 02:32:44 +01:00
Paweł Bylica
3ef9c1de50
examples: Always build example_vm as shared library 2019-03-14 18:32:27 +01:00
Paweł Bylica
3c1427fe7c
CMake: Add option EVMC_TEST_TOOLS
This will build evmc-vmtester but without bothering with unit tests. This option implies build examples because they are needed for vmtester.
2019-03-14 17:37:26 +01:00
Paweł Bylica
ee795276cd
test: Drop vm-mock 2019-03-13 22:07:13 +01:00
Paweł Bylica
d8f09d1d11
test: Rewrite loader unit tests by mocking DLL loading 2019-03-13 22:07:13 +01:00
Paweł Bylica
c2bf49b2ef
test: Refactor a loader unit test 2019-03-13 22:07:13 +01:00
Paweł Bylica
a2c0934073
test: Fix formatting (clang-format-8) 2019-03-11 22:29:03 +01:00
Paweł Bylica
4a9e852c4d
CMake: Refactor compilation tests 2019-03-11 22:29:04 +01:00
Paweł Bylica
553003ee3b
Fix compilation with VS 2015 2019-01-23 11:17:16 +01:00
Paweł Bylica
b0ae85ebbf
Add C++ wrappers/bindings 2019-01-22 14:15:26 +01:00
Paweł Bylica
d4fc289c80
Rename EVMC_LATEST_REVISION to EVMC_MAX_REVISION 2019-01-21 12:09:20 +01:00
Paweł Bylica
377167f76a
Enhance compilation tests 2019-01-18 13:52:34 +01:00
Paweł Bylica
28b2b8d6cf
helpers: Add is_zero() helper 2019-01-18 12:53:42 +01:00
Paweł Bylica
5c8e64915a
Improve C++ helpers 2018-09-08 22:43:04 +02: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
Paweł Bylica
6768aa888e
Fix compilation in Debug configuration 2018-08-29 23:00:18 +02:00
Alex Beregszaszi
81425662e6 Add mock context for VM testing 2018-08-28 19:36:52 +01:00
Alex Beregszaszi
4a3bd021f4 Add vm test for execute 2018-08-28 19:36:52 +01:00
Alex Beregszaszi
d1cea93f82
Merge pull request #104 from ethereum/clang-format
CI: Check code format
2018-08-28 17:17:10 +01:00
Paweł Bylica
044a137a36
Format code 2018-08-28 17:05:13 +02:00
Paweł Bylica
1a4b3c3c33
CMake: Clean up evmc-vmtester properties 2018-08-28 11:53:51 +02:00
Paweł Bylica
3076fc8429
Merge pull request #93 from ethereum/tests-cppstd
Compile unittests and vmtests as C++11
2018-08-28 11:20:51 +02:00
Paweł Bylica
8108f04b7a
Build tests with C++11 in not specified otherwise 2018-08-28 11:10:53 +02:00