|
@@ -32,6 +32,7 @@ designed to be authoratitive about what constitutes a good test!
|
|
from __future__ import print_function
|
|
from __future__ import print_function
|
|
|
|
|
|
import argparse
|
|
import argparse
|
|
|
|
+import glob
|
|
import itertools
|
|
import itertools
|
|
import os # Used to advertise this file's name ("autogenerated_note").
|
|
import os # Used to advertise this file's name ("autogenerated_note").
|
|
import string
|
|
import string
|
|
@@ -48,10 +49,6 @@ ADVERT = '; NOTE: Assertions have been autogenerated by '
|
|
|
|
|
|
IR_FUNCTION_RE = re.compile('^\s*define\s+(?:internal\s+)?[^@]*@([\w-]+)\s*\(')
|
|
IR_FUNCTION_RE = re.compile('^\s*define\s+(?:internal\s+)?[^@]*@([\w-]+)\s*\(')
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
def main():
|
|
def main():
|
|
from argparse import RawTextHelpFormatter
|
|
from argparse import RawTextHelpFormatter
|
|
parser = argparse.ArgumentParser(description=__doc__, formatter_class=RawTextHelpFormatter)
|
|
parser = argparse.ArgumentParser(description=__doc__, formatter_class=RawTextHelpFormatter)
|
|
@@ -71,7 +68,8 @@ def main():
|
|
print('ERROR: Unexpected opt name: ' + opt_basename, file=sys.stderr)
|
|
print('ERROR: Unexpected opt name: ' + opt_basename, file=sys.stderr)
|
|
sys.exit(1)
|
|
sys.exit(1)
|
|
|
|
|
|
- for test in args.tests:
|
|
|
|
|
|
+ test_paths = [test for pattern in args.tests for test in glob.glob(pattern)]
|
|
|
|
+ for test in test_paths:
|
|
if args.verbose:
|
|
if args.verbose:
|
|
print('Scanning for RUN lines in test file: %s' % (test,), file=sys.stderr)
|
|
print('Scanning for RUN lines in test file: %s' % (test,), file=sys.stderr)
|
|
with open(test) as f:
|
|
with open(test) as f:
|