aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-08-14 21:48:51 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-08-15 22:28:42 +0300
commitb400cbe058df10bc37e628305c72c574177062e2 (patch)
tree9213e76af99f646b6ff19d26357ac3d6284bb2f9 /run_project_tests.py
parentd57498a4fde13a04d56e7fc26199df2b10cbdf60 (diff)
downloadmeson-b400cbe058df10bc37e628305c72c574177062e2.zip
meson-b400cbe058df10bc37e628305c72c574177062e2.tar.gz
meson-b400cbe058df10bc37e628305c72c574177062e2.tar.bz2
Kill tabs dead! For good!
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py28
1 files changed, 25 insertions, 3 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 1385a78..e390aaf 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -636,10 +636,32 @@ def check_file(fname):
linenum += 1
def check_format():
+ check_suffixes = {'.c',
+ '.cpp',
+ '.cxx',
+ '.cc',
+ '.rs',
+ '.f90',
+ '.vala',
+ '.d',
+ '.s',
+ '.m',
+ '.mm',
+ '.asm',
+ '.java',
+ '.txt',
+ '.py',
+ '.swift',
+ '.build',
+ }
for (root, _, files) in os.walk('.'):
- for file in files:
- if file.endswith('.py') or file.endswith('.build') or file == 'meson_options.txt':
- fullname = os.path.join(root, file)
+ if '.dub' in root: # external deps are here
+ continue
+ for fname in files:
+ if os.path.splitext(fname)[1].lower() in check_suffixes:
+ if os.path.split(fname)[1] == 'sitemap.txt':
+ continue
+ fullname = os.path.join(root, fname)
check_file(fullname)
def check_meson_commands_work():