aboutsummaryrefslogtreecommitdiffstats
path: root/vm.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 /vm.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 'vm.cpp')
-rw-r--r--vm.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm.cpp b/vm.cpp
index 2bdafb27..cffbaa64 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -25,7 +25,6 @@
#include <libethereum/Executive.h>
#include <libevm/VMFactory.h>
#include "vm.h"
-#include "Stats.h"
using namespace std;
using namespace json_spirit;
@@ -311,9 +310,6 @@ namespace dev { namespace test {
void doVMTests(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";
@@ -549,6 +545,7 @@ BOOST_AUTO_TEST_CASE(vmRandom)
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());
doVMTests(v, false);
}
catch (Exception const& _e)