aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2015-03-25 19:13:44 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2015-03-25 19:13:44 +0800
commitf07089ffa390c02a81c1dd057329cd34797d5eec (patch)
treeddb3ddf0b2c97f6254d3ca9e2495493963697658 /state.cpp
parent0b476774a2710169b1956a2a4c85aaf191b22f5c (diff)
downloaddexon-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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/state.cpp b/state.cpp
index 4ab59f7a..8168693b 100644
--- a/state.cpp
+++ b/state.cpp
@@ -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)