source: trunk/anuga_core/test_all.py @ 8760

Last change on this file since 8760 was 8760, checked in by steve, 12 years ago

Separated compiling and testing of the sequential and parallel code.

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