[isoltest] Add support for external sources.

This commit is contained in:
Alexander Arlt
2021-04-26 08:27:30 -05:00
parent 2969bc0f3e
commit 481971cbcf
48 changed files with 328 additions and 68 deletions
+5 -3
View File
@@ -25,6 +25,7 @@
#include <test/libyul/Common.h>
#include <test/libyul/SyntaxTest.h>
#include <test/TestCaseReader.h>
#include <test/libsolidity/util/SoltestErrors.h>
@@ -35,14 +36,15 @@ using namespace solidity;
using namespace solidity::util;
using namespace solidity::langutil;
using namespace solidity::yul::test;
using namespace solidity::frontend::test;
void SyntaxTest::parseAndAnalyze()
{
if (m_sources.size() != 1)
if (m_sources.sources.size() != 1)
BOOST_THROW_EXCEPTION(runtime_error{"Expected only one source for yul test."});
string const& name = m_sources.begin()->first;
string const& source = m_sources.begin()->second;
string const& name = m_sources.sources.begin()->first;
string const& source = m_sources.sources.begin()->second;
ErrorList errorList{};
soltestAssert(m_dialect, "");