aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2015-02-27 15:59:49 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2015-02-27 15:59:49 +0800
commit0e8dbe5318aab58372dbdef5e38d7c90e3b453e3 (patch)
tree75cde752b2349b4e7646671099771850b06e4795 /state.cpp
parent37c5f585aaddf933cb5d6de509af63e54a6fbfc0 (diff)
parent157f93898ae57cff875beb6549314bcb4ac66cdf (diff)
downloaddexon-solidity-0e8dbe5318aab58372dbdef5e38d7c90e3b453e3.tar.gz
dexon-solidity-0e8dbe5318aab58372dbdef5e38d7c90e3b453e3.tar.zst
dexon-solidity-0e8dbe5318aab58372dbdef5e38d7c90e3b453e3.zip
Merge remote-tracking branch 'upstream/develop' into evmjit
Diffstat (limited to 'state.cpp')
-rw-r--r--state.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/state.cpp b/state.cpp
index 03f01d0f..8872d985 100644
--- a/state.cpp
+++ b/state.cpp
@@ -159,11 +159,34 @@ 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(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)