aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.h
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2015-03-12 18:55:00 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2015-03-12 19:01:12 +0800
commite18c7b99cb440639adc0063c33c26566ba9589a1 (patch)
tree196e46e4a6f3672cbbd528b863195f3e954ec233 /TestHelper.h
parent7a769c4a00bdfeca9073be0c5083587c4438cd05 (diff)
downloaddexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar.gz
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar.bz2
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar.lz
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar.xz
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.tar.zst
dexon-solidity-e18c7b99cb440639adc0063c33c26566ba9589a1.zip
testeth: optional VM tracing (--vmtrace), command line options refactoring.
Closes ethereum/cpp-ethereum#1280
Diffstat (limited to 'TestHelper.h')
-rw-r--r--TestHelper.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/TestHelper.h b/TestHelper.h
index d378848a..9efed0fa 100644
--- a/TestHelper.h
+++ b/TestHelper.h
@@ -141,7 +141,6 @@ void executeTests(const std::string& _name, const std::string& _testPathAppendix
std::string getTestPath();
void userDefinedTest(std::string testTypeFlag, std::function<void(json_spirit::mValue&, bool)> doTests);
RLPStream createRLPStreamFromTransactionFields(json_spirit::mObject& _tObj);
-void processCommandLineOptions();
eth::LastHashes lastHashes(u256 _currentBlockNumber);
json_spirit::mObject fillJsonWithState(eth::State _state);
@@ -158,5 +157,31 @@ void checkAddresses(mapType& _expectedAddrs, mapType& _resultAddrs)
BOOST_CHECK(_expectedAddrs == _resultAddrs);
}
+class Options
+{
+public:
+ bool jit = false; ///< Use JIT
+ bool vmtrace = false; ///< Create EVM execution tracer // TODO: Link with log verbosity?
+ bool showTimes = false; ///< Print test groups execution times
+ bool fillTests = false; ///< Create JSON test files from execution results
+
+ /// Test selection
+ /// @{
+ bool performance = false;
+ bool quadratic = false;
+ bool memory = false;
+ bool inputLimits = false;
+ bool bigData = false;
+ /// @}
+
+ /// Get reference to options
+ /// The first time used, options are parsed
+ static Options const& get();
+
+private:
+ Options();
+ Options(Options const&) = delete;
+};
+
}
}