mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[isoltest] Add support for external sources.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user