Commit Graph

858 Commits

Author SHA1 Message Date
Alex Beregszaszi 0d757c4c3e rust: add test for ExecutionResult without data 2019-04-24 00:27:27 +01:00
Alex Beregszaszi 6be5daefa1 rust: call release_result in tests
Also do not double-consume the input pointer.
2019-04-24 00:27:27 +01:00
Paweł Bylica 844a1272da
Merge pull request #230 from ethereum/dll-error
loader: Expose DLL load error
2019-04-16 19:29:44 +02: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 4408da2758
Merge pull request #229 from ethereum/tests
Tests
2019-04-02 16:12:31 +02:00
Paweł Bylica 721a0c5822
CI: Run ctest tests in parallel, in random order 2019-04-02 14:41:31 +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 ea4bf5ccb1
Merge pull request #226 from ethereum/cpp-host-interface
cpp: Add Host interface for the Host side
2019-04-02 12:13:27 +02:00
Paweł Bylica 0c1e13b485
examples: Rewrite Host example to use Host abstract class 2019-04-02 11:28:22 +02:00
Paweł Bylica 9eb9608b4a
cpp: Add Host abstract class for Host implementations 2019-04-02 11:28:22 +02:00
Paweł Bylica e824942149
cpp: Make HostContext to implement HostInterface 2019-04-02 11:28:21 +02:00
Paweł Bylica e3d49fe7d0
cpp: Add HostInterface interface 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 5b59cf0e95
Merge pull request #228 from ethereum/docs
Document expected UTF-8 encoding for .name and .version
2019-04-01 13:27:57 +02:00
Paweł Bylica d23e7a3127
Document expected UTF-8 encoding for .name and .version 2019-03-29 13:48:37 +01:00
Paweł Bylica c1ee3c0d7f
Merge pull request #221 from ethereum/vmtester
vmtester: Drop CLI11 dependency
2019-03-25 13:51:42 +01: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 fd1d182be6
Merge pull request #224 from ethereum/evmc-cpp
cpp: mark constructor noexcept in vm helper
2019-03-25 10:42:29 +00:00
Alex Beregszaszi 618310bab1 cpp: mark constructor noexcept in vm helper 2019-03-25 10:36:17 +00:00
Alex Beregszaszi afcf9fbd36
Merge pull request #222 from ethereum/cpp-compilation-test
Include evmc.hpp in compilation test
2019-03-20 02:58:01 +00:00
Alex Beregszaszi dc4a2f4c1a Include evmc.hpp in compilation test 2019-03-19 19:23:06 +00:00
Alex Beregszaszi 6cf62ae528
Merge pull request #202 from ethereum/rust-api
Implement higher-level result handling in EVMC Rust bindings [WIP]
2019-03-19 19:21:48 +00:00
Jake Lang 272276b405 rust: Add helpers for execution result handling 2019-03-19 15:09:43 -04:00
Paweł Bylica 9608babd04
Merge pull request #217 from ethereum/cpp-host
cpp: Add evmc::host - wrapper around Host context / interface
2019-03-15 12:48:24 +01:00
Paweł Bylica aa3a81de02
changelog: Add entry about C++ evmc::host 2019-03-15 12:10:16 +01:00
Paweł Bylica cf24ccb2ac
test: Add basic unit tests for C++ Host wrapper 2019-03-15 11:56:55 +01:00
Paweł Bylica 3fd78acb81
cpp: Add evmc::host - wrapper around Host context / interface 2019-03-15 11:56:55 +01:00
Paweł Bylica 1b5a67cfff
Merge pull request #218 from ethereum/tests-refactoring
Tests and examples refactoring
2019-03-15 11:44:14 +01:00
Paweł Bylica 4683047d0b
test: Move compile-time checks from vmtester to unittests 2019-03-15 02:32:44 +01:00
Paweł Bylica 83dae57ceb
examples: Refactor host example 2019-03-15 02:32:32 +01:00
Paweł Bylica e951ab251b
Merge pull request #212 from ethereum/travis
Add Travis CI for Windows
2019-03-14 22:38:54 +01:00
Paweł Bylica c0615047a3
CI: Remove redundant BUILD_SHARED_LIBS=ON 2019-03-14 18:33:36 +01:00
Paweł Bylica 89fcb6f37b
Travis CI: Add configuration for C++ / Windows 2019-03-14 18:32:27 +01:00
Paweł Bylica 3ef9c1de50
examples: Always build example_vm as shared library 2019-03-14 18:32:27 +01:00
Paweł Bylica c76034da00
CMake: Upgrade Hunter to v0.23.131 2019-03-14 18:32:26 +01:00
Paweł Bylica 4335f434b8
Merge pull request #216 from ethereum/cmake-test-tools
CMake: Add option EVMC_TEST_TOOLS
2019-03-14 18:31:01 +01:00
Paweł Bylica e3c3661119
CI: Do not use redundant EVMC_EXAMPLES 2019-03-14 17:55:07 +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 645c550358
Merge pull request #208 from ethereum/ci-go
Circle CI: Test only Go 1.9 (min) and 1.12 (latest)
2019-03-14 17:00:48 +01:00
Paweł Bylica d8429cc8c2
Circle CI: Test only Go 1.9 and the latest (1.12) 2019-03-14 12:42:52 +01:00
Paweł Bylica 6cae99abbc
Merge pull request #211 from ethereum/fix-cable
Fix Cable subtree
2019-03-14 12:40:41 +01:00