From 17841792d9b399db071cbb3e7f885122b9a2e321 Mon Sep 17 00:00:00 2001 From: winsvega Date: Thu, 21 May 2015 17:52:39 +0300 Subject: [PATCH 01/11] Random Code From ddcdf450f0431c8693c871d2500e95acc183179f Mon Sep 17 00:00:00 2001 From: winsvega Date: Fri, 22 May 2015 17:28:47 +0300 Subject: [PATCH 02/11] undo vmTest From dd4cda62bca4dccfdb5ceab90dc13b5e527fb559 Mon Sep 17 00:00:00 2001 From: winsvega Date: Fri, 22 May 2015 21:04:12 +0300 Subject: [PATCH 03/11] Random Codes With Probability From 5cfec260f797fe3568b17a77cfd9f0f646bd1ce2 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 26 May 2015 16:27:22 +0300 Subject: [PATCH 04/11] Random test code --- TestHelper.cpp | 4 +++- TestHelper.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 476d1ecf9..4836ce7f3 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 fc6c77fad..8f0c73bf3 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 /// @{ From efe141aaba90eb6a5aa06b045513a609f28a5839 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 26 May 2015 16:51:29 +0300 Subject: [PATCH 05/11] Random Code: Style From 3bbef4fb328e3e48d637b9cd29aac4e65770e32f Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 26 May 2015 18:24:47 +0300 Subject: [PATCH 06/11] Random Code: fulloutput option + test --- TestHelper.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 4836ce7f3..5ace49e5d 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -771,7 +771,6 @@ Options const& Options::get() return instance; } - LastHashes lastHashes(u256 _currentBlockNumber) { LastHashes ret; From b1f91d1891f5233731d5530713a5c4296f3f6730 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Wed, 27 May 2015 15:45:00 +0300 Subject: [PATCH 07/11] Random Code: exceptions when filling rnd StateTest From 8e25eb5842bc27d71feb4d20ba0a1129a88be783 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Wed, 27 May 2015 22:51:53 +0300 Subject: [PATCH 08/11] Random Code: smart opcode fuzz From 5452c8f7e3f0161c6b8b580c19692ffce89b9008 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Fri, 29 May 2015 17:06:11 +0300 Subject: [PATCH 09/11] Random Code: cath fill exceptions --- TestHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestHelper.cpp b/TestHelper.cpp index 5ace49e5d..793e05652 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -588,7 +588,7 @@ void userDefinedTest(std::function doTests) oSingleTest[pos->first] = pos->second; json_spirit::mValue v_singleTest(oSingleTest); - doTests(v_singleTest, false); + doTests(v_singleTest, test::Options::get().fillTests); } catch (Exception const& _e) { From f415d712e687251178fbf3123977de899c415b5b Mon Sep 17 00:00:00 2001 From: Dimitry Date: Fri, 29 May 2015 17:33:24 +0300 Subject: [PATCH 10/11] Random code: style From 289760ccd97558f1516eba63feddd76bcdef3dad Mon Sep 17 00:00:00 2001 From: Dimitry Date: Mon, 1 Jun 2015 14:07:31 +0300 Subject: [PATCH 11/11] Random Code: build issues