source: anuga_core/test_all.py @ 7463

Last change on this file since 7463 was 7460, checked in by ole, 16 years ago

Work on pymetis and test_all

File size: 1.9 KB
Line 
1from anuga.utilities.data_audit_wrapper import IP_verified
2from tempfile import mktemp
3
4import os
5
6buildroot = os.getcwd()
7
8os.chdir('source')
9os.chdir('anuga')
10   
11print 'Changing to', os.getcwd() # This is now different from buildroot   
12#execfile('test_all.py')
13
14
15os.chdir('..')
16os.chdir('pymetis')
17print 'Changing to', os.getcwd()
18#execfile('test_all.py')
19
20os.chdir('..')
21os.chdir('anuga_parallel')
22print 'Changing to', os.getcwd()
23#execfile('test_all.py')
24
25print
26print '************************** NOTE *************************************'
27print 'If all unit tests passed you should run the suite of validation tests'
28print 'Go to the directory anuga_validation/automated_validation_tests'
29print 'and run'
30print '    python validate_all.py'
31print
32print 'These tests will take a few hours and will verify that ANUGA'
33print 'produces the physical results expected.'
34print '*********************************************************************'
35
36
37
38# Temporary bail out
39import sys; sys.exit() 
40
41
42#---------------------------
43# IP Data Audit (in source/anuga directory as well)
44#---------------------------
45
46# Create temporary area for svn to export source files
47# FIXME (Ole): It would be good to make sure these files
48# are exactly the same as those walked over by the
49# release script: create_distribution.
50#
51# Come to think of it - this is probably not the best
52# place for this check. It may have to move up one level.
53# What do you all think?
54
55
56
57temp_dir = mktemp()
58
59print 'Temp dir', temp_dir
60os.mkdir(temp_dir)
61
62# Get the ANUGA core source files
63s = 'svn export . %s%sanuga' %(temp_dir, os.sep) 
64print s
65os.system(s)
66
67print 'Verifying data IP'
68if not IP_verified(temp_dir):
69    msg = 'Files have not been verified for IP.\n'
70    msg += 'Each data file must have a license file with it.'
71    raise Exception, msg
72
73
74
75
76
77   
Note: See TracBrowser for help on using the repository browser.