aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2014-12-05 00:55:04 +0800
committerCJentzsch <jentzsch.software@gmail.com>2014-12-05 00:55:04 +0800
commitb7601aee9fdc1d72f65938a035f52aa77146bcf4 (patch)
treee913b52b4686d41d95aeced759529bebfcfb0066 /vm.cpp
parent3c8a45cec4a36ebd4560d7f4ee718b60680b3010 (diff)
downloaddexon-solidity-b7601aee9fdc1d72f65938a035f52aa77146bcf4.tar.gz
dexon-solidity-b7601aee9fdc1d72f65938a035f52aa77146bcf4.tar.zst
dexon-solidity-b7601aee9fdc1d72f65938a035f52aa77146bcf4.zip
fix stackoverflow in calldataload, codecopy, extcodecopy + some tests
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/vm.cpp b/vm.cpp
index d7bc0612..e674d6de 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -488,6 +488,26 @@ BOOST_AUTO_TEST_CASE(vmLogTest)
dev::test::executeTests("vmLogTest", "/VMTests", dev::test::doVMTests);
}
+BOOST_AUTO_TEST_CASE(vmPerformanceTest)
+{
+ 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 == "--performance")
+ dev::test::executeTests("vmPerformanceTest", "/VMTests", dev::test::doVMTests);
+ }
+}
+
+BOOST_AUTO_TEST_CASE(vmArithPerformanceTest)
+{
+ 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 == "--performance")
+ dev::test::executeTests("vmArithPerformanceTest", "/VMTests", dev::test::doVMTests);
+ }
+}
+
BOOST_AUTO_TEST_CASE(vmRandom)
{
string testPath = getTestPath();