diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-02-25 14:54:59 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-02-25 21:18:56 +0800 |
commit | 7f22c53b327456901227dc367b31cb0569307757 (patch) | |
tree | 57b860e23531f2539723b961bce2dae13d173100 | |
parent | 6e32c6d95572634172037f47da91bf4eb1f2cc6f (diff) | |
download | dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar.gz dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar.bz2 dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar.lz dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar.xz dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.tar.zst dexon-solidity-7f22c53b327456901227dc367b31cb0569307757.zip |
add commandline flag for tt10MBtxTest
bugix in trie test
undo trie test change
-rw-r--r-- | transaction.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/transaction.cpp b/transaction.cpp index 6ebe6275..8c6db941 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -115,7 +115,21 @@ BOOST_AUTO_TEST_CASE(ttWrongRLPTransaction) BOOST_AUTO_TEST_CASE(tt10mbDataField) { - dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests); + 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 == "--bigdata" || arg == "--all") + { + auto start = chrono::steady_clock::now(); + + dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests); + + 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(ttCreateTest) |