Changeset 7659
- Timestamp:
- Mar 11, 2010, 12:05:09 PM (15 years ago)
- Location:
- misc/tools/acceptance_tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/acceptance_tests/test_all.py
r7656 r7659 9 9 import test_utils as util 10 10 11 # 'test_inter_latency.py' - not needed 11 12 12 13 # the test files, in desired order … … 20 21 'test_latency_bandwidth.py', 21 22 'test_test_pypar.py', 22 # 'test_inter_latency.py',23 23 ] 24 25 Tests = ['test_eqrm.py'] 24 26 25 27 if __name__ == '__main__': -
misc/tools/acceptance_tests/test_eqrm.py
r7656 r7659 6 6 import time 7 7 import test_utils as util 8 from for_all_verification import do_tests_checks_demos_audits 8 9 9 10 name = 'Running EQRM test_all.py' 10 11 11 12 def test(logfile): 13 """ 14 15 """ 12 16 result = True 13 17 … … 17 21 python_env_var = os.getenv('PYTHON') 18 22 19 # remember the directory we are in and go to EQRM testdirectory23 # remember the directory we are in and go to EQRM directory 20 24 home_directory = os.getcwd() 21 25 eqrm_path = os.getenv('EQRMPATH') … … 24 28 "can't test EQRM.") 25 29 return False 30 31 result = do_tests_checks_demos_audits(eqrm_root_dir=eqrm_path, 32 python_command=python_env_var) 26 33 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() 29 36 30 # run clean_all.py31 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) 38 45 39 # run test_all.py40 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) 45 52 46 # run check_scenarios.py47 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) 52 59 53 # return to original directory54 os.chdir(home_directory)60 # # return to original directory 61 # os.chdir(home_directory) 55 62 56 63 return result
Note: See TracChangeset
for help on using the changeset viewer.