diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-03-16 18:40:03 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-03-16 19:28:21 +0800 |
commit | e68c19c47b03eebb9af528bf2b03bb0086484c63 (patch) | |
tree | cdbef7c43a020d40e46821a92fb99804365ff5e5 /test/tools/isoltest.cpp | |
parent | 9e1095608d265ac941afbf1e4ed4c79d63a15926 (diff) | |
download | dexon-solidity-e68c19c47b03eebb9af528bf2b03bb0086484c63.tar.gz dexon-solidity-e68c19c47b03eebb9af528bf2b03bb0086484c63.tar.zst dexon-solidity-e68c19c47b03eebb9af528bf2b03bb0086484c63.zip |
Only consider files ending with .sol and not starting with ~ in syntax tests.
Diffstat (limited to 'test/tools/isoltest.cpp')
-rw-r--r-- | test/tools/isoltest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp index 668481cf..5ad3bfb5 100644 --- a/test/tools/isoltest.cpp +++ b/test/tools/isoltest.cpp @@ -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 { |