source: anuga_core/test_all.py @ 7510

Last change on this file since 7510 was 7510, checked in by ole, 15 years ago

Disabled call to parallel tests in test_all for the moment. When they have been fixed, we should bring them back.

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