Changeset 7652
- Timestamp:
- Mar 3, 2010, 2:57:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/validate_all.py
r7291 r7652 5 5 6 6 7 dirs_to_skip = ['.', 'okushiri_tank_validation_ver1', 'patong_beach_validation'] 7 #dirs_to_skip = ['.', 'okushiri_tank_validation_ver1', 'patong_beach_validation'] 8 dirs_to_skip = ['.', 'okushiri_tank_validation_ver1'] 8 9 validation_dirs_and_files = [] 9 10 … … 16 17 dir = os.path.split(dirpath)[-1] 17 18 if dir in dirs_to_skip: 18 print 'Skipping %s' %dirpath19 #print 'Skipping %s' % dirpath 19 20 continue 20 21 21 print 'Searching dir', dirpath22 #print 'Searching dir', dirpath 22 23 23 24 24 25 for filename in filenames: 25 26 if filename.startswith('validate') and filename.endswith('.py'): 26 print 'Found %s in %s' %(filename, dirpath)27 #print 'Found %s in %s' %(filename, dirpath) 27 28 validation_dirs_and_files.append((dirpath, filename)) 28 29 … … 32 33 33 34 print 34 print '----------------------------------------------------------' 35 print 'Running all validation tests - this may take several hours' 36 print '----------------------------------------------------------' 35 print '---------------------------------------------------------' 36 print 'Running all validation tests - some may take several days' 37 print 'and some may require memory in the order of 8-16GB ' 38 print '---------------------------------------------------------' 39 40 print 'Validation test suites:' 41 for path, filename in validation_dirs_and_files: 42 print ' ', os.path.join(path, filename) 43 print 44 print 37 45 38 46 t0 = time.time() … … 41 49 42 50 os.chdir(path) 43 s = 'python %s' % (filename)51 s = 'python %s' % filename 44 52 print s 45 53 os.system(s)
Note: See TracChangeset
for help on using the changeset viewer.