source: anuga_validation/automated_validation_tests/validate_all.py @ 4403

Last change on this file since 4403 was 4403, checked in by nick, 18 years ago

added Boundary_file test, this compares 2 time series from one location from 2 different sww files. One sww boundary file is created from MUX files and the other is from a simple evolve model which used the MUX sww file as boundary conditions.

This test was created to check URS data

NOTE this is still being developed and is not working yet

File size: 1.2 KB
Line 
1"""Validate_all.py
2"""
3
4import os
5
6
7dirs_to_skip = ['.', 'okushiri_tank_validation_ver1']
8validation_dirs_and_files = []
9
10
11for dirpath, dirnames, filenames in os.walk('.'):
12
13    if '.svn' in dirnames:
14        dirnames.remove('.svn')  # don't visit SVN directories
15
16    dir = os.path.split(dirpath)[-1]
17    if dir in dirs_to_skip:
18        print 'Skipping %s' %dirpath
19        continue
20   
21    print 'Searching dir', dirpath
22   
23
24    for filename in filenames:
25        if filename.startswith('validate') and filename.endswith('.py'):
26            print 'Found %s in %s' %(filename, dirpath)
27            validation_dirs_and_files.append((dirpath, filename))           
28
29
30
31for path, filename in validation_dirs_and_files:
32    print 'filename path',path, filename
33    os.chdir(path)
34    current_dir= os.getcwd( )
35    print 'current dir', current_dir
36    s = 'python %s' %( filename)
37    print 's',s
38    current_dir= os.getcwd( )
39    print 'current dir', current_dir
40    os.system(s)
41#    os.chdir('/d/cit/1/cit/unixhome/nbartzis/anuga/anuga_validation/automated_validation_tests')
42    current_dir= os.getcwd( )
43    print 'current dir', current_dir
44    print 'os.pardir',os.pardir
45   
46   
47
48           
Note: See TracBrowser for help on using the repository browser.