Changeset 7025


Ignore:
Timestamp:
May 13, 2009, 3:05:43 PM (11 years ago)
Author:
rwilson
Message:

Added EQRM to acceptance suite.

Location:
branches/numpy_misc/tools/acceptance_tests
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy_misc/tools/acceptance_tests/test_all.py

    r7017 r7025  
    1818         'test_latency_bandwidth.py',
    1919         'test_test_pypar.py',
    20          'test_test_all.py']
     20#         'test_inter_latency.py',
     21         'test_test_all.py',
     22         'test_eqrm.py',
     23        ]
    2124
    2225
     
    5255    python = os.getenv('PYTHON')
    5356    pythonpath = os.getenv('PYTHONPATH')
     57    eqrmpath = os.getenv('EQRMPATH')
     58    if eqrmpath is None:
     59        eqrmpath = ''
    5460    if not python or not pythonpath:
    5561        if not python:
     
    6672    print 'PYTHON=%s' % python
    6773    print 'PYTHONPATH=%s' % pythonpath
     74    print 'EQRMPATH=%s' % eqrmpath
    6875    print ''
    6976    res = raw_input('This test will run with the above environment variables, OK? ')
    70     if res[0].upper() != 'Y':
     77    if len(res) == 0 or res[0].upper() != 'Y':
    7178        sys.exit(10)
    7279    print ''
  • branches/numpy_misc/tools/acceptance_tests/test_dump_python_environment.py

    r7017 r7025  
    3636    pythonpath = os.getenv('PYTHONPATH')
    3737    util.log_print_nl(logfile, 'PYTHONPATH environment variable = %s' % pythonpath)
     38
     39    # see if we can get a revision number for ANUGA source
     40    revision = None
     41    try:
     42        revision = get_revision_number()
     43    except:
     44        pass
     45    if revision is None:
     46        util.log_print_nl(logfile, "Can't get ANUGA revision number.")
     47    else:
     48        util.log_print_nl(logfile, "ANUGA revision number is %d." % revision)
     49    util.log_print_nl(logfile)
     50
     51    # See if we are testing EQRM
     52    eqrm_path = os.getenv('EQRMPATH')
     53    if eqrm_path:
     54        util.log_print_nl(logfile, 'Environment variable EQRMPATH =%s.' % eqrm_path)
     55        util.log_print_nl(logfile, 'EQRM will be tested below.')
     56    else:
     57        util.log_print_nl(logfile, 'Environment variable EQRMPATH not set, not testing EQRM.')
    3858    util.log_print_nl(logfile)
    3959
    4060    # show contents of ./machines_<machine>
     61    # NOT SURE THIS FILE HAS ANY MEANING ANYMORE!?
    4162    home = os.getenv('HOME')
    4263    machines_file = os.path.join(home, '.machines_%s' % cluster)
  • branches/numpy_misc/tools/acceptance_tests/test_utils.py

    r7017 r7025  
    1313# should get this from the machines_<cluster> file?
    1414Cluster_Info = {'cyclone': {'num_nodes': 23,
    15                             'node_stem': 'compute-1-%d'},
     15                            'node_stem': 'compute-1-%d',
     16                            'bad_nodes': [13, 22]},
    1617                'tornado': {'num_nodes': 20,
    17                             'node_stem': 'compute-0-%d'}
     18                            'node_stem': 'compute-0-%d',
     19                            'bad_nodes': []}
    1820               }
    1921
     
    6466    log_print_nl(logfile, '#' * 80)
    6567    log_print_nl(logfile, '# ' + time_now + ' - ' + msg)
    66     log_print_nl(logfile, '# %s' % module)
     68    log_print_nl(logfile, '# Module: %s' % module)
    6769    log_print_nl(logfile, '#' * 80)
    6870    log_print_nl(logfile)
     
    112114
    113115
     116def get_node_numbers(cluster, strip_bad_nodes=True):
     117    '''Get a list of node numbers for the cluster.
     118
     119    If 'strip_bad_nodes' is True remove bad nodes from the result.
     120    '''
     121
     122    result = []
     123    info = Cluster_Info[cluster]
     124    for n in xrange(info['num_nodes']):
     125        if strip_bad_nodes:
     126            if n in info['bad_nodes']:
     127                continue
     128        result.append(n)
     129
     130    return result
     131
     132
Note: See TracChangeset for help on using the changeset viewer.