Changeset 9583


Ignore:
Timestamp:
Feb 1, 2015, 10:34:30 PM (10 years ago)
Author:
steve
Message:

Fixing up test_all.py so it runs from anuga installed into source

Location:
trunk/anuga_core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/test_all.py

    r9568 r9583  
    3333
    3434# Directories that should not be searched for test files.
    35 exclude_dirs = ['shallow_water_balanced' , 'parallel', # Special requirements
     35exclude_dirs = ['shallow_water_balanced' , # Special requirements
    3636                '.svn',          # subversion
    3737                'props', 'wcprops', 'prop-base', 'text-base', 'tmp']
  • trunk/anuga_core/test_all.py

    r9567 r9583  
    1 from anuga.utilities.data_audit_wrapper import IP_verified
    2 from tempfile import mktemp
    3 
    41import os
    52
     
    129print
    1310print '======================= anuga tests ================================='   
    14 print 'Changing to', os.getcwd() # This is now different from buildroot   
    15 execfile('test_all.py')
     11print 'Changing to', os.getcwd() # This is now different from buildroot
    1612
     13os.system('python test_all.py')
    1714
     15os.chdir(buildroot)
    1816
    19 
    20 # Try to run parallel tests if pypar is installed
    21 from anuga import pypar_available
    22    
    23 if pypar_available:
    24     os.chdir(buildroot)
    25     os.chdir('source')
    26     os.chdir('anuga')
    27     os.chdir('parallel')
    28     os.chdir('tests')
    29     print
    30     print '===================== anuga parallel tests =========================='
    31     print 'Changing to', os.getcwd()
    32     execfile('test_all.py')
    33 else:
    34     print 'anuga.parallel tests not run as pypar not installed'
    3517
    3618
Note: See TracChangeset for help on using the changeset viewer.