-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Retesteth support #5909
base: master
Are you sure you want to change the base?
Retesteth support #5909
Changes from all commits
635aacc
000791f
d51b934
64262c7
8fadd48
e9e0730
9078d51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,12 @@ json_spirit::mValue StateTestSuite::doTests(json_spirit::mValue const& _input, b | |
BOOST_REQUIRE_MESSAGE(exp.type() == obj_type, " post field should contain an array of objects for each network."); | ||
if (!Options::get().singleTestNet.empty() && i->first != Options::get().singleTestNet) | ||
continue; | ||
if (importer.checkGeneralTestSection(exp.get_obj(), wrongTransactionsIndexes, i->first)) | ||
if (test::isAfterSupportNetwork(i->first)) | ||
{ | ||
foundResults = true; | ||
continue; | ||
} | ||
if (importer.checkGeneralTestSection(exp.get_obj(), wrongTransactionsIndexes, i->first)) | ||
foundResults = true; | ||
} | ||
} | ||
|
@@ -189,7 +194,6 @@ BOOST_AUTO_TEST_CASE(stBadOpcode){} | |
|
||
//New Tests | ||
BOOST_AUTO_TEST_CASE(stArgsZeroOneBalance){} | ||
BOOST_AUTO_TEST_CASE(stEWASMTests){} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does that mean we can't use testeth anymore with https://github.com/ewasm/hera ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can use your fork sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What fork do you mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean if you have stEWASMTests somewhere and use testeth to run it. |
||
BOOST_AUTO_TEST_CASE(stTimeConsuming) {} | ||
BOOST_AUTO_TEST_CASE(stChainId) {} | ||
BOOST_AUTO_TEST_CASE(stSLoadTest) {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it supposed to fix the case when block number doesn't in 64 bit?
But it doesn't fix it, because
m_number
is stilluint64_t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also there are some proposals to require the limit for block nuumber and timestamp, so I'm not sure it makes sense to change it now.
https://eips.ethereum.org/EIPS/eip-1985
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixes the test. Because RLPStream << was working incorrectly with u64int_t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean exactly? Maybe we should fix
operator<<
foruint64_t
or something(Some tests currently fail anyway)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I had blockchain/invalidblocks/bcInvalidHeader/timestamp4 test failing without this change. I assume the issue is in << operation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find this test, what are header values there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry I was out of laptop.
it is this test:
BlockchainTests/InvalidBlocks/bcUncleHeaderValidity/incorrectUncleTimestamp4
I set timestamp of the uncleheader to 500000000000 + previous block (~1000)
and the value I get
rlp::85746a528800
. but testeth gives me RLP encode of this argumentrlp::846a528800
unless I explicitly say that it is a bigint in that function. the fix is dirty because I just try to make the tests pass