Only consider files ending with .sol and not starting with ~ in syntax tests.

This commit is contained in:
Daniel Kirchner committed 2018-03-16 12:28:21 +01:00
1 parent 9e1095608d
commit e68c19c47b
3 files changed
+13 -2

No files matched your search

+3 -1
View File
@@ -19,6 +19,7 @@
#include <test/libsolidity/AnalysisFramework.h>
#include <test/libsolidity/SyntaxTest.h>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
@@ -218,7 +219,8 @@ SyntaxTestStats SyntaxTestTool::processPath(
fs::directory_iterator(fullpath),
fs::directory_iterator()
))
paths.push(currentPath / entry.path().filename());
if (fs::is_directory(entry.path()) || SyntaxTest::isTestFilename(entry.path().filename()))
paths.push(currentPath / entry.path().filename());
}
else
{