diff options
author | Gav Wood <i@gavwood.com> | 2015-03-04 00:21:37 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-03-04 00:21:37 +0800 |
commit | 14067cb7ed49573caffa6b2ab445a7d625e980bb (patch) | |
tree | e6c120a2c9c844cd72883afbc784afedd26b969f | |
parent | 858203ecb729db7d2955cf30c3e66e84a989c912 (diff) | |
parent | 3f45ed8c3897844ed8ea51aa058a25cbd33e836d (diff) | |
download | dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar.gz dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar.bz2 dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar.lz dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar.xz dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.tar.zst dexon-solidity-14067cb7ed49573caffa6b2ab445a7d625e980bb.zip |
Merge branch 'poc9trie' of github.com:ethereum/cpp-ethereum into poc9trie
Conflicts:
libethereum/Client.cpp
test/state.cpp
-rw-r--r-- | state.cpp | 37 |
1 files changed, 6 insertions, 31 deletions
@@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE(stBlockHashTest) dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests); } -BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest) +BOOST_AUTO_TEST_CASE(stMemoryStressTest) { for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) { @@ -176,27 +176,15 @@ BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest) if (arg == "--quadratic" || arg == "--all") { auto start = chrono::steady_clock::now(); - dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests); - auto end = chrono::steady_clock::now(); auto duration(chrono::duration_cast<chrono::milliseconds>(end - start)); cnote << "test duration: " << duration.count() << " milliseconds.\n"; } - } -} - -BOOST_AUTO_TEST_CASE(stMemoryStressTest) -{ - for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) - { - string arg = boost::unit_test::framework::master_test_suite().argv[i]; - if (arg == "--memory" || arg == "--all") + else if (arg == "--memory" || arg == "--all") { auto start = chrono::steady_clock::now(); - dev::test::executeTests("stMemoryStressTest", "/StateTests", dev::test::doStateTests); - auto end = chrono::steady_clock::now(); auto duration(chrono::duration_cast<chrono::milliseconds>(end - start)); cnote << "test duration: " << duration.count() << " milliseconds.\n"; @@ -204,27 +192,14 @@ BOOST_AUTO_TEST_CASE(stMemoryStressTest) } } -BOOST_AUTO_TEST_CASE(stSolidityTest) +BOOST_AUTO_TEST_CASE(stMemoryTest) { - for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) - { - string arg = boost::unit_test::framework::master_test_suite().argv[i]; - if (arg == "--quadratic" || arg == "--all") - { - auto start = chrono::steady_clock::now(); - - dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests); - - auto end = chrono::steady_clock::now(); - auto duration(chrono::duration_cast<chrono::milliseconds>(end - start)); - cnote << "test duration: " << duration.count() << " milliseconds.\n"; - } - } + dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests); } -BOOST_AUTO_TEST_CASE(stMemoryTest) +BOOST_AUTO_TEST_CASE(stSolidityTest) { - dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests); + dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests); } BOOST_AUTO_TEST_CASE(stCreateTest) |