source: trunk/anuga_core/test_all.py @ 8025

Last change on this file since 8025 was 7937, checked in by steve, 14 years ago

Fixed an error in pmesh2domain

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