mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[isoltest] Enforcing compileViaYul to be set if test can pass via yul
This commit is contained in:
committed by
chriseth
parent
cb32530b6b
commit
8b7f87eed5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user