diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-03-11 15:33:52 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-03-11 15:33:52 +0800 |
commit | 68db4681c0ff2a0c724512edac5abe1fb5341444 (patch) | |
tree | f5528939cd3d4b1cadc9b409d6d062cb190ea07a /vm.cpp | |
parent | 57e6fb303dd65212855ea69f2bd25358f0379526 (diff) | |
parent | e9db858ccabbdaa90ed721065b7ace48d3e34bd5 (diff) | |
download | dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar.gz dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar.bz2 dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar.lz dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar.xz dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.tar.zst dexon-solidity-68db4681c0ff2a0c724512edac5abe1fb5341444.zip |
Merge branch 'develop' into new_jsonrpc
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 64 |
1 files changed, 37 insertions, 27 deletions
@@ -533,33 +533,43 @@ BOOST_AUTO_TEST_CASE(vmPerformanceTest) } } -//BOOST_AUTO_TEST_CASE(vmInputLimitsTest1) -//{ -// 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 == "--inputlimits" || arg == "--all") -// { -// auto start = chrono::steady_clock::now(); - -// dev::test::executeTests("vmInputLimitsTest1", "/VMTests", dev::test::doVMTests); - -// 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(vmInputLimitsTest2) -//{ -// 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 == "--inputlimits" || arg == "--all") -// dev::test::executeTests("vmInputLimitsTest2", "/VMTests", dev::test::doVMTests); -// } -//} +BOOST_AUTO_TEST_CASE(vmInputLimitsTest1) +{ + 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 == "--inputlimits" || arg == "--all") + { + auto start = chrono::steady_clock::now(); + + dev::test::executeTests("vmInputLimits1", "/VMTests", dev::test::doVMTests); + + 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(vmInputLimitsTest2) +{ + 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 == "--inputlimits" || arg == "--all") + dev::test::executeTests("vmInputLimits2", "/VMTests", dev::test::doVMTests); + } +} + +BOOST_AUTO_TEST_CASE(vmInputLimitsLightTest) +{ + 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 == "--inputlimits" || arg == "--all") + dev::test::executeTests("vmInputLimitsLight", "/VMTests", dev::test::doVMTests); + } +} BOOST_AUTO_TEST_CASE(vmRandom) { |