[isoltest] Enforcing compileViaYul to be set if test can pass via yul

This commit is contained in:
Djordje Mijovic
2020-05-05 00:38:13 +02:00
committed by chriseth
parent cb32530b6b
commit 8b7f87eed5
127 changed files with 412 additions and 145 deletions
+6 -2
View File
@@ -161,7 +161,11 @@ TestTool::Result TestTool::process()
{
(AnsiColorized(cout, formatted, {BOLD}) << m_name << ": ").flush();
m_test = m_testCaseCreator(TestCase::Config{m_path.string(), m_options.evmVersion()});
m_test = m_testCaseCreator(TestCase::Config{
m_path.string(),
m_options.evmVersion(),
m_options.enforceViaYul
});
if (m_test->shouldRun())
switch (TestCase::TestResult result = m_test->run(outputMessages, " ", formatted))
{
@@ -232,7 +236,7 @@ TestTool::Request TestTool::handleResponse(bool _exception)
cout << endl;
ofstream file(m_path.string(), ios::trunc);
m_test->printSource(file);
m_test->printSettings(file);
m_test->printUpdatedSettings(file);
file << "// ----" << endl;
m_test->printUpdatedExpectations(file, "// ");
return Request::Rerun;