[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
+3 -3
View File
@@ -79,9 +79,9 @@ public:
m_filterExpression = regex{"(" + filter + "(\\.sol|\\.yul))"};
}
bool matches(string const& _name) const
bool matches(fs::path const& _path, string const& _name) const
{
return regex_match(_name, m_filterExpression);
return regex_match(_name, m_filterExpression) && solidity::test::isValidSemanticTestPath(_path);
}
private:
@@ -154,7 +154,7 @@ TestTool::Result TestTool::process()
try
{
if (m_filter.matches(m_name))
if (m_filter.matches(m_path, m_name))
{
(AnsiColorized(cout, formatted, {BOLD}) << m_name << ": ").flush();