Changeset 7659


Ignore:
Timestamp:
Mar 11, 2010, 12:05:09 PM (15 years ago)
Author:
gray
Message:

Using do_tests_checks_demos_audits from EQRM in cluster test_eqrm.py acceptance test. It now relies EQRM being in the pythonpath environment variable.

Location:
misc/tools/acceptance_tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/acceptance_tests/test_all.py

    r7656 r7659  
    99import test_utils as util
    1010
     11# 'test_inter_latency.py' - not needed
    1112
    1213# the test files, in desired order
     
    2021         'test_latency_bandwidth.py',
    2122         'test_test_pypar.py',
    22 #         'test_inter_latency.py',
    2323        ]
     24
     25Tests = ['test_eqrm.py']
    2426
    2527if __name__ == '__main__':
  • misc/tools/acceptance_tests/test_eqrm.py

    r7656 r7659  
    66import time
    77import test_utils as util
     8from for_all_verification import do_tests_checks_demos_audits
    89
    910name = 'Running EQRM test_all.py'
    1011
    1112def test(logfile):
     13    """
     14   
     15    """
    1216    result = True
    1317
     
    1721    python_env_var = os.getenv('PYTHON')
    1822
    19     # remember the directory we are in and go to EQRM test directory
     23    # remember the directory we are in and go to EQRM directory
    2024    home_directory = os.getcwd()
    2125    eqrm_path = os.getenv('EQRMPATH')
     
    2428                                   "can't test EQRM.")
    2529        return False
     30   
     31    result = do_tests_checks_demos_audits(eqrm_root_dir=eqrm_path,
     32                                          python_command=python_env_var)
    2633
    27     os.chdir(os.path.join(eqrm_path))
    28     print 'in %s' % os.getcwd()
     34#     os.chdir(os.path.join(eqrm_path))
     35#     print 'in %s' % os.getcwd()
    2936
    30     # run clean_all.py
    31     util.log_print_nl(logfile, '%s clean_all.py' % python_env_var)
    32     (fd_in, fd_out) = os.popen4('%s clean_all.py' % python_env_var)
    33     fd_in.write('y\n')
    34     fd_in.close()
    35     clean_result = fd_out.read()
    36     fd_out.close()
    37     util.log_print(logfile, clean_result)
     37#     # run clean_all.py
     38#     util.log_print_nl(logfile, '%s clean_all.py' % python_env_var)
     39#     (fd_in, fd_out) = os.popen4('%s clean_all.py' % python_env_var)
     40#     fd_in.write('y\n')
     41#     fd_in.close()
     42#     clean_result = fd_out.read()
     43#     fd_out.close()
     44#     util.log_print(logfile, clean_result)
    3845
    39     # run test_all.py
    40     util.log_print_nl(logfile, '%s test_all.py' % python_env_var)
    41     (_, fd_out) = os.popen4('%s test_all.py' % python_env_var)
    42     test_result = fd_out.read()
    43     status = fd_out.close()
    44     util.log_print(logfile, test_result)
     46#     # run test_all.py
     47#     util.log_print_nl(logfile, '%s test_all.py' % python_env_var)
     48#     (_, fd_out) = os.popen4('%s test_all.py' % python_env_var)
     49#     test_result = fd_out.read()
     50#     status = fd_out.close()
     51#     util.log_print(logfile, test_result)
    4552
    46     # run check_scenarios.py
    47     util.log_print_nl(logfile, '%s check_scenarios.py' % python_env_var)
    48     (_, fd_out) = os.popen4('%s check_scenarios.py' % python_env_var)
    49     test_result = fd_out.read()
    50     status = fd_out.close()
    51     util.log_print(logfile, test_result)
     53#     # run check_scenarios.py
     54#     util.log_print_nl(logfile, '%s check_scenarios.py' % python_env_var)
     55#     (_, fd_out) = os.popen4('%s check_scenarios.py' % python_env_var)
     56#     test_result = fd_out.read()
     57#     status = fd_out.close()
     58#     util.log_print(logfile, test_result)
    5259
    53     # return to original directory
    54     os.chdir(home_directory)
     60#     # return to original directory
     61#     os.chdir(home_directory)
    5562
    5663    return result
Note: See TracChangeset for help on using the changeset viewer.