From a310d98ff1ccf7498beaf9614764eeff1291c986 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Wed, 14 May 2014 22:49:46 +0000 Subject: add script to ensure lit test contains %run llvm-svn: 208819 --- .../lib/sanitizer_common/scripts/litlint.py | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 compiler-rt/lib/sanitizer_common/scripts/litlint.py (limited to 'compiler-rt/lib/sanitizer_common/scripts/litlint.py') diff --git a/compiler-rt/lib/sanitizer_common/scripts/litlint.py b/compiler-rt/lib/sanitizer_common/scripts/litlint.py new file mode 100755 index 00000000000..15b496ff4fc --- /dev/null +++ b/compiler-rt/lib/sanitizer_common/scripts/litlint.py @@ -0,0 +1,27 @@ +#!/usr/bin/python +# +# lit-lint +# +# Check that the RUN commands in lit tests can be executed with an emulator. +# + +import argparse +import re +import sys + +parser = argparse.ArgumentParser(description='lint lit tests') +parser.add_argument('filenames', nargs='+') +parser.add_argument('--filter') # ignored +args = parser.parse_args() + +runRegex = re.compile(r'(?