source: anuga_core/test_all.py @ 6842

Last change on this file since 6842 was 5277, checked in by ole, 17 years ago

oops

File size: 1.7 KB
RevLine 
[5277]1from anuga.utilities.data_audit_wrapper import IP_verified
[5016]2from tempfile import mktemp
3
[2302]4import os
5
6buildroot = os.getcwd()
[2549]7
[3516]8os.chdir('source')
9os.chdir('anuga')
[2550]10   
[2389]11print 'Changing to', os.getcwd() #This is now different from buildroot   
[2302]12
13execfile('test_all.py')
14
[5016]15
[5018]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
[5017]29# Temporary bail out
30import sys; sys.exit() 
[5016]31
[5017]32
[5016]33#---------------------------
34# IP Data Audit (in source/anuga directory as well)
35#---------------------------
36
37# Create temporary area for svn to export source files
[5018]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
[5016]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'
[5277]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
[5016]63
64
65
[4802]66
[5018]67
[2302]68   
Note: See TracBrowser for help on using the repository browser.