diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2014-12-05 00:55:04 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2014-12-05 00:55:04 +0800 |
commit | b7601aee9fdc1d72f65938a035f52aa77146bcf4 (patch) | |
tree | e913b52b4686d41d95aeced759529bebfcfb0066 /vm.cpp | |
parent | 3c8a45cec4a36ebd4560d7f4ee718b60680b3010 (diff) | |
download | dexon-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.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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(); |