Ignore:
Timestamp:
Mar 3, 2010, 2:57:17 PM (14 years ago)
Author:
ole
Message:

Rolled Patong Validation into validate_all.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/validate_all.py

    r7291 r7652  
    55
    66
    7 dirs_to_skip = ['.', 'okushiri_tank_validation_ver1', 'patong_beach_validation']
     7#dirs_to_skip = ['.', 'okushiri_tank_validation_ver1', 'patong_beach_validation']
     8dirs_to_skip = ['.', 'okushiri_tank_validation_ver1']
    89validation_dirs_and_files = []
    910
     
    1617    dir = os.path.split(dirpath)[-1]
    1718    if dir in dirs_to_skip:
    18         print 'Skipping %s' %dirpath
     19        #print 'Skipping %s' % dirpath
    1920        continue
    2021   
    21     print 'Searching dir', dirpath
     22    #print 'Searching dir', dirpath
    2223   
    2324
    2425    for filename in filenames:
    2526        if filename.startswith('validate') and filename.endswith('.py'):
    26             print 'Found %s in %s' %(filename, dirpath)
     27            #print 'Found %s in %s' %(filename, dirpath)
    2728            validation_dirs_and_files.append((dirpath, filename))           
    2829
     
    3233
    3334print
    34 print '----------------------------------------------------------'
    35 print 'Running all validation tests - this may take several hours'
    36 print '----------------------------------------------------------'
     35print '---------------------------------------------------------'
     36print 'Running all validation tests - some may take several days'
     37print 'and some may require memory in the order of 8-16GB       '
     38print '---------------------------------------------------------'
     39
     40print 'Validation test suites:'
     41for path, filename in validation_dirs_and_files:
     42     print '    ', os.path.join(path, filename)
     43print
     44print
    3745
    3846t0 = time.time()
     
    4149
    4250    os.chdir(path)
    43     s = 'python %s' %(filename)
     51    s = 'python %s' % filename
    4452    print s
    4553    os.system(s)
Note: See TracChangeset for help on using the changeset viewer.