Commit Graph

51 Commits

Author SHA1 Message Date
Daniel Kirchner
06b7edfdcf Add missing tests for `gasleft(), blockhash() tx.gasprice and block.gaslimit`. 2018-08-14 11:42:34 +02:00
chriseth
96a04be684
Merge pull request #4389 from ethereum/soltestfix
fix default difficulty to comply with YP rules
2018-07-03 15:07:58 +02:00
Daniel Kirchner
334c023c72 Determine transaction status in RPC sessions. 2018-07-02 12:56:33 +02:00
Dimitry
7b7df90e76 fix default difficulty to comply with YP rules
fix soltest to work with the recent aleth --test
2018-06-30 13:07:30 +03:00
Christian Parpart
f44561aeeb Fixes soltest against "recent" cpp-ethereum builds.
For me, it looks like the following Git commit has introduced this behaviour:
	42b927d7aa

This commit adds dummy values for `mixHash` and `nonce` (inspired by values were cpp-ethereum's own tests),
and now, soltest runs fine again.
2018-06-25 13:55:23 +02:00
Daniel Kirchner
0319b184ce Add difficulty field to genesis chain parameters to fix ipc tests for recent versions of cpp-ethereum. 2018-06-14 16:46:10 +02:00
chriseth
95b0589f77
Merge pull request #3828 from ethereum/soltest
Show JSON error if jsonParseStrict failed in soltest
2018-04-05 15:22:26 +02:00
Alex Beregszaszi
ac6a30442f Support constantinople in soltest 2018-04-05 12:11:24 +02:00
Alex Beregszaszi
7f232358bb Show JSON error if jsonParseStrict failed in soltest 2018-04-05 11:59:31 +02:00
Daniel Kirchner
d63d41b3b5 test: Rename test/TestHelper.* to test/Options.* and add Options::validate(). 2018-03-14 12:04:04 +01:00
chriseth
982476f99d Add TangerineWhistle. 2018-03-01 17:19:35 +01:00
chriseth
739533e9c7 Activate byzantium for testing. 2018-03-01 17:19:35 +01:00
Alexander Arlt
0f29ac4e56 Add new JSON API for better abstraction and for supporting strict JSON parsing 2018-02-20 21:58:26 +01:00
Boris Kostenko
3c91564dd9 Include modexp precompile in genesis for testing (#3114) 2017-10-24 10:42:48 +01:00
Alex Beregszaszi
faa0a662c7 Always create the correct account even if gaps are needed 2017-10-20 14:23:37 +01:00
Alex Beregszaszi
81e9c679c4 Add helper RPCSession::createAccount 2017-10-20 14:23:37 +01:00
Alex Beregszaszi
362615c9c4 Close IPC socket on connect failure 2017-10-19 11:12:46 +01:00
Alex Beregszaszi
9ee619c9bb Snarks test using Byzantium precompiles
* Snark tests.

* Verifying routine.

* Example proof.

* Update precompiled positions to Byzantium ruleset.
2017-10-09 11:09:20 +02:00
Alex Beregszaszi
fe947006ff Format chainparams fields properly in tests 2017-10-03 10:45:00 +01:00
seusher
d546c2873a Issue 2279: Log JSON RPC requests and responses when --log_level=message is provided to soltest 2017-05-17 12:57:55 -07:00
Yoichi Hirai
f6f271df8a test: change RPC settings to see if they have effects during testing 2017-04-25 16:47:43 +02:00
Federico Bond
818083e705 Replace deprecated BOOST_MESSAGE with BOOST_TEST_MESSAGE 2017-03-03 11:47:05 -03:00
chriseth
ea7f5f9640 Style. 2017-03-02 12:07:50 +01:00
chriseth
9f1a67caa5 Some logging around account creation. 2017-03-01 11:32:29 +01:00
chriseth
4305ecb0e7 Try reading multiple times from IPC. 2017-02-25 00:11:26 +01:00
Alex Beregszaszi
0fe788aad6 Use std::chrono and not boost::posix_Time 2017-02-13 15:01:15 +00:00
Alex Beregszaszi
e9dd9d2c72 Simplify mining loop 2017-02-13 14:11:03 +00:00
Alex Beregszaszi
1d4ef87bb1 Use maxMiningTime in mining as opposed to poll counter 2017-02-13 14:11:03 +00:00
Alex Beregszaszi
702ee20a01 Create getBlockByNumber RPC method 2017-02-10 13:24:56 +00:00
Alex Beregszaszi
3128ec2ca5 Add blockNumber and blockTimestamp to ExecutionFramework 2017-02-10 13:24:56 +00:00
Alex Beregszaszi
95f8c5bcdb Ensure that the whole message was written on Windows IPC 2017-02-09 15:40:56 +00:00
Alex Beregszaszi
f2cafd4974 Simplify the Windows IPC code 2017-02-09 15:40:56 +00:00
Alex Beregszaszi
f9a818eaf8 Detect closed sockets in IPC 2017-02-09 15:40:56 +00:00
Alex Beregszaszi
5396c7692b Do not expect a new line, rather buffer up the response in IPC 2017-02-09 15:40:56 +00:00
Alex Beregszaszi
b508aac64a Use only send/recv in IPC 2017-02-09 12:23:34 +00:00
Alex Beregszaszi
92fb07c783 Do not log dots in soltest on windows 2017-02-08 21:51:10 +00:00
Alex Beregszaszi
af6ab7fa91 Use BOOST_REQUIRE() and stop at the first failure 2017-02-08 21:24:29 +00:00
Alex Beregszaszi
f9357dbb22 Check the return value of RPC calls 2017-02-08 21:24:29 +00:00
Alex Beregszaszi
3be6d10525 Avoid crash if fdopen failed in IPC 2017-02-08 21:24:29 +00:00
Alex Beregszaszi
43bae9dd0b Ensure that a valid RPC response is received through IPC 2017-02-08 21:24:29 +00:00
VoR0220
3f9f725737 Fix licensing headers
Signed-off-by: VoR0220 <rj@erisindustries.com>
2016-11-23 12:22:33 +01:00
Dimitry
fa5b55a211 soltest on windows 2016-08-31 18:29:10 +04:00
chriseth
b9f5b675a6 Auto-calibrate mining sleep time. 2016-08-12 15:11:31 +02:00
chriseth
53f68a155f Exponential sleep increase on mining failure. 2016-08-12 15:11:31 +02:00
Bob Summerwill
3fd8004d08 Fixed up broken ifdefs in new sockets code. 2016-08-02 23:13:48 -07:00
Dmitry K
5925ae0c6a Windows pipe for soltest 2016-08-02 19:32:03 +03:00
Dmitry K
a10b6f92f9 Merge branch 'develop' of https://github.com/ethereum/solidity into develop 2016-08-02 11:11:09 +03:00
Dmitry K
d1c7444509 windowspipe 2016-08-02 11:11:04 +03:00
Bob Summerwill
4ee2114127 Make the Solidity repository standalone.
This commit is the culmination of several months of work to decouple Solidity from the webthree-umbrella so that it can be developed in parallel with cpp-ethereum (the Ethereum C++ runtime) and so that even for the Solidity unit-tests there is no hard-dependency onto the C++ runtime.

The Tests-over-IPC refactoring was a major step in the same process which was already committed.

This commit contains the following changes:

- A subset of the CMake functionality in webthree-helpers was extracted and tailored for Solidity into ./cmake.   Further cleanup is certainly possible.
- A subset of the libdevcore functionality in libweb3core was extracted and tailored for Solidity into ./libdevcore.   Further cleanup is certainly possible
- The gas price constants in EVMSchedule were orphaned into libevmasm.
- Some other refactorings and cleanups were made to sever unnecessary EVM dependencies in the Solidity unit-tests.
- TravisCI and Appveyor support was added, covering builds and running of the unit-tests (Linux and macOS only for now)
- A bug-fix was made to get the Tests-over-IPC running on macOS.
- There are still reliability issues in the unit-tests, which need immediate attention.    The Travis build has been flipped to run the unit-tests 5 times, to try to flush these out.
- The Emscripten automation which was previously in webthree-umbrella was merged into the TravisCI automation here.
- The development ZIP deployment step has been commented out, but we will want to read that ONLY for release branch.

Further iteration on these changes will definitely be needed, but I feel these have got to sufficient maturity than holding them back further isn't winning us anything.    It is go time :-)
2016-08-01 01:45:11 -07:00
chriseth
9216a4d991 Fix jsoncpp includes for macos. 2016-07-01 10:16:06 +02:00