aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-12-12 18:48:15 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-12-12 18:54:44 +0800
commit49f995a890ee54e90650d839267bd24339c954f8 (patch)
treef5e87b2b1cc4c230c184e4bf504a6692e46c5b06 /TestHelper.cpp
parentb0b14eca7f40e29ce892109b0238cbba752ca236 (diff)
downloaddexon-solidity-49f995a890ee54e90650d839267bd24339c954f8.tar.gz
dexon-solidity-49f995a890ee54e90650d839267bd24339c954f8.tar.zst
dexon-solidity-49f995a890ee54e90650d839267bd24339c954f8.zip
Add "--jit" option to State tests
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r--TestHelper.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index b0935d0b..6f7bf31d 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -26,6 +26,7 @@
#include <boost/filesystem/path.hpp>
#include <libethereum/Client.h>
#include <liblll/Compiler.h>
+#include <libevm/VMFactory.h>
using namespace std;
using namespace dev::eth;
@@ -472,4 +473,20 @@ void executeTests(const string& _name, const string& _testPathAppendix, std::fun
}
}
+
+void processCommandLineOptions()
+{
+ auto argc = boost::unit_test::framework::master_test_suite().argc;
+ auto argv = boost::unit_test::framework::master_test_suite().argv;
+
+ for (auto i = 0; i < argc; ++i)
+ {
+ if (std::string(argv[i]) == "--jit")
+ {
+ eth::VMFactory::setKind(eth::VMKind::JIT);
+ break;
+ }
+ }
+}
+
} } // namespaces