Commit Graph

786 Commits

Author SHA1 Message Date
Paweł Bylica a304db5c2d
test: Use loader error messages in vmtester 2019-04-24 15:02:57 +02:00
Paweł Bylica 32af5f41ac
loader: Mark set_error() with format attribute 2019-04-24 15:02:57 +02:00
Paweł Bylica 4484a8b74a
loader: Add loading error messages 2019-04-24 15:02:56 +02:00
Paweł Bylica 51fe9f48d4
loader: Abstract and mock evmc_last_error_msg() 2019-04-24 15:02:56 +02:00
Paweł Bylica caf6c2a1bd
loader: Make evmc_last_error_msg() return error only once 2019-04-24 15:02:56 +02:00
Alex Beregszaszi 0a66479c78 rust: make create_address optional in ExecutionResult::new() 2019-04-24 12:42:44 +01:00
Alex Beregszaszi bde20b1f4c
Merge pull request #243 from ethereum/rust-example-output
examples: return an output buffer in Rust
2019-04-24 12:23:55 +01:00
Alex Beregszaszi 2e7dccb23e examples: return an output buffer in Rust 2019-04-24 12:20:29 +01:00
Alex Beregszaszi 45996842e2
Merge pull request #242 from ethereum/vmtester-create
vmtester: add test case for CREATE
2019-04-24 12:16:18 +01:00
Alex Beregszaszi 5b07ae0342 examples: update Rust to support EVMC_CREATE 2019-04-24 12:08:49 +01:00
Alex Beregszaszi cd9109bfac examples: add EVMC_CREATE example to example_vm 2019-04-24 12:08:49 +01:00
Alex Beregszaszi 13cdfd7b40 vmtester: add test case for CREATE 2019-04-24 12:08:49 +01:00
Alex Beregszaszi 4f25bcbf5f
Merge pull request #241 from ethereum/vmtester
vmtester: dereference if output_data is present
2019-04-24 11:54:46 +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 2375654f3c
Merge pull request #240 from ethereum/readme
readme: add evmone/hera.rs
2019-04-24 10:50:51 +01:00
Alex Beregszaszi 7b4c201ed0 readme: add evmone/hera.rs 2019-04-24 10:17:51 +01:00
Alex Beregszaszi 3d39ba6e4f
Merge pull request #233 from ethereum/test-rust-vm
examples: Test Rust VM
2019-04-24 09:49:32 +01:00
Alex Beregszaszi 4b5880bf94 example: Implement proper Rust VM example 2019-04-24 09:43:11 +01:00
Alex Beregszaszi 9efcfcd39b Circle CI: Test dummy Rust VM on CircleCI 2019-04-24 09:43:03 +01:00
Alex Beregszaszi 79b6d2a9c0 examples: Add dummy Rust VM 2019-04-24 09:42:24 +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 49c6d2c38e
Merge pull request #234 from ethereum/vmtester
vmtester: do not crash if create_vm returns nullptr
2019-04-24 09:41:40 +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
Alex Beregszaszi 162d784339
Merge pull request #236 from ethereum/rust-result-fix
rust: add ExecutionResult to stack evmc_result conversion
2019-04-24 00:41:30 +01:00
Alex Beregszaszi 0d7becdb4a rust: add ExecutionResult to stack evmc_result conversion 2019-04-24 00:39:44 +01:00
Alex Beregszaszi 94ff7bb1ad
Merge pull request #235 from ethereum/rust-result-fix
rust: Fix memory issues in ExecutionResult
2019-04-24 00:35:32 +01:00
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