Changeset 604
- Timestamp:
- 01/08/07 13:15:13
- Files:
-
- PCL/trunk/PCL-Core/tests/runalldoctests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PCL/trunk/PCL-Core/tests/runalldoctests.py
r549 r604 1 1 import doctest 2 import getopt 2 3 import glob 4 import sys 3 5 4 6 try: … … 9 11 pass 10 12 11 testfiles = glob.glob('MemFeature*.txt') 13 def run(pattern): 14 testfiles = glob.glob(pattern) 15 for file in testfiles: 16 doctest.testfile(file) 12 17 13 for file in testfiles: 14 doctest.testfile(file) 18 if __name__ == "__main__": 19 try: 20 opts, args = getopt.getopt(sys.argv[1:], "t:") 21 except getopt.GetoptError: 22 print "Usage: python runalldoctests.py [-t GLOB_PATTERN]" 23 sys.exit(2) 24 pattern = None 25 for o, a in opts: 26 if o == '-t': 27 pattern = a 28 run(pattern) 15 29
