source: anuga_core/test_all.py @ 7447

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

Reversed inadvertent changes:

svn merge -r 7284:7275 test_all.py

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