aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2015-05-26 21:27:22 +0800
committerDimitry <winsvega@mail.ru>2015-06-01 23:11:25 +0800
commit5cfec260f797fe3568b17a77cfd9f0f646bd1ce2 (patch)
treef4de09f6cb72b9efaf05162baccde525660ae51b
parentdd4cda62bca4dccfdb5ceab90dc13b5e527fb559 (diff)
downloaddexon-solidity-5cfec260f797fe3568b17a77cfd9f0f646bd1ce2.tar.gz
dexon-solidity-5cfec260f797fe3568b17a77cfd9f0f646bd1ce2.tar.zst
dexon-solidity-5cfec260f797fe3568b17a77cfd9f0f646bd1ce2.zip
Random test code
-rw-r--r--TestHelper.cpp4
-rw-r--r--TestHelper.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 476d1ecf..4836ce7f 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -328,7 +328,7 @@ void ImportTest::exportTest(bytes const& _output, State const& _statePost)
{
// 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
m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries());
@@ -760,6 +760,8 @@ Options::Options()
else
singleTestName = std::move(name1);
}
+ else if (arg == "--fulloutput")
+ fulloutput = true;
}
}
diff --git a/TestHelper.h b/TestHelper.h
index fc6c77fa..8f0c73bf 100644
--- a/TestHelper.h
+++ b/TestHelper.h
@@ -184,6 +184,7 @@ public:
bool stats = false; ///< Execution time stats
std::string statsOutFile; ///< Stats output file. "out" for standard output
bool checkState = false;///< Throw error when checking test states
+ bool fulloutput = false;///< Replace large output to just it's length
/// Test selection
/// @{