diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-25 19:13:44 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-25 19:13:44 +0800 |
commit | f07089ffa390c02a81c1dd057329cd34797d5eec (patch) | |
tree | ddb3ddf0b2c97f6254d3ca9e2495493963697658 /state.cpp | |
parent | 0b476774a2710169b1956a2a4c85aaf191b22f5c (diff) | |
download | dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.gz dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.bz2 dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.lz dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.xz dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.tar.zst dexon-solidity-f07089ffa390c02a81c1dd057329cd34797d5eec.zip |
Test execution stats improvements
--stats can have optional values:
--stats=out prints all test timings to standard output,
--stats=<filename> prints all test timings to a file in tab-separated format.
Stats are now kept in vector to allow duplicated values.
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -31,7 +31,6 @@ #include <libethereum/Defaults.h> #include <libevm/VM.h> #include "TestHelper.h" -#include "Stats.h" using namespace std; using namespace json_spirit; @@ -42,9 +41,6 @@ namespace dev { namespace test { void doStateTests(json_spirit::mValue& v, bool _fillin) { - if (Options::get().stats) - Listener::registerListener(Stats::get()); - for (auto& i: v.get_obj()) { std::cout << " " << i.first << "\n"; @@ -255,6 +251,7 @@ BOOST_AUTO_TEST_CASE(stRandom) string s = asString(dev::contents(path.string())); BOOST_REQUIRE_MESSAGE(s.length() > 0, "Content of " + path.string() + " is empty. Have you cloned the 'tests' repo branch develop and set ETHEREUM_TEST_PATH to its path?"); json_spirit::read_string(s, v); + test::Listener::notifySuiteStarted(path.filename().string()); dev::test::doStateTests(v, false); } catch (Exception const& _e) |