diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-03-04 00:36:09 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-03-06 19:47:18 +0800 |
commit | e674f085700ea29b4d6b446afd4fc1e3c9805a1d (patch) | |
tree | 8c99a1368c347980b21bf26d0446d2cd411956ad /state.cpp | |
parent | cfed92a8ce7ff10a5cad23db9bc17bff8c8930a5 (diff) | |
download | dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar.gz dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar.bz2 dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar.lz dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar.xz dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.tar.zst dexon-solidity-e674f085700ea29b4d6b446afd4fc1e3c9805a1d.zip |
remove genesis state from state tests
Conflicts:
test/state.cpp
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 56 |
1 files changed, 22 insertions, 34 deletions
@@ -170,23 +170,23 @@ BOOST_AUTO_TEST_CASE(stBlockHashTest) dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests); } -BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest) -{ - 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"; - } - } -} +//BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest) +//{ +// 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"; +// } +// } +//} BOOST_AUTO_TEST_CASE(stMemoryStressTest) { @@ -206,29 +206,17 @@ BOOST_AUTO_TEST_CASE(stMemoryStressTest) } } -BOOST_AUTO_TEST_CASE(stSolidityTest) -{ - 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"; - } - } -} + BOOST_AUTO_TEST_CASE(stSolidityTest) + { + dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests); + } BOOST_AUTO_TEST_CASE(stMemoryTest) { dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests); } + BOOST_AUTO_TEST_CASE(stCreateTest) { for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) |