mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
8f3e1cd127
@ -328,7 +328,7 @@ void ImportTest::exportTest(bytes const& _output, State const& _statePost)
|
|||||||
{
|
{
|
||||||
// export output
|
// export output
|
||||||
|
|
||||||
m_TestObject["out"] = _output.size() > 4096 ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add);
|
m_TestObject["out"] = (_output.size() > 4096 && !Options::get().fulloutput) ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add);
|
||||||
|
|
||||||
// export logs
|
// export logs
|
||||||
m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries());
|
m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries());
|
||||||
@ -588,7 +588,7 @@ void userDefinedTest(std::function<void(json_spirit::mValue&, bool)> doTests)
|
|||||||
oSingleTest[pos->first] = pos->second;
|
oSingleTest[pos->first] = pos->second;
|
||||||
|
|
||||||
json_spirit::mValue v_singleTest(oSingleTest);
|
json_spirit::mValue v_singleTest(oSingleTest);
|
||||||
doTests(v_singleTest, false);
|
doTests(v_singleTest, test::Options::get().fillTests);
|
||||||
}
|
}
|
||||||
catch (Exception const& _e)
|
catch (Exception const& _e)
|
||||||
{
|
{
|
||||||
@ -760,6 +760,8 @@ Options::Options()
|
|||||||
else
|
else
|
||||||
singleTestName = std::move(name1);
|
singleTestName = std::move(name1);
|
||||||
}
|
}
|
||||||
|
else if (arg == "--fulloutput")
|
||||||
|
fulloutput = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -769,7 +771,6 @@ Options const& Options::get()
|
|||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LastHashes lastHashes(u256 _currentBlockNumber)
|
LastHashes lastHashes(u256 _currentBlockNumber)
|
||||||
{
|
{
|
||||||
LastHashes ret;
|
LastHashes ret;
|
||||||
|
@ -184,6 +184,7 @@ public:
|
|||||||
bool stats = false; ///< Execution time stats
|
bool stats = false; ///< Execution time stats
|
||||||
std::string statsOutFile; ///< Stats output file. "out" for standard output
|
std::string statsOutFile; ///< Stats output file. "out" for standard output
|
||||||
bool checkState = false;///< Throw error when checking test states
|
bool checkState = false;///< Throw error when checking test states
|
||||||
|
bool fulloutput = false;///< Replace large output to just it's length
|
||||||
|
|
||||||
/// Test selection
|
/// Test selection
|
||||||
/// @{
|
/// @{
|
||||||
|
Loading…
Reference in New Issue
Block a user