Changeset 7656 for misc/tools/acceptance_tests/test_test_pypar.py
- Timestamp:
- Mar 5, 2010, 12:28:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/acceptance_tests/test_test_pypar.py
r7276 r7656 1 1 #!/bin/env python 2 2 3 '''Testlet to run the pypar tests.''' 3 """Testlet to run the pypar tests.""" 4 4 5 5 import os … … 20 20 21 21 # run the test_pypar.py tests 22 machines_file = os.path.join('~', '.machines_%s' % cluster)22 #machines_file = os.path.join('~', '.machines_%s' % cluster) 23 23 for num_procs in Processor_Numbers: 24 24 cmd = ('mpirun -nolocal -np %2d -hostfile %s %s test_pypar.py' 25 % (num_procs, machines_file, python_env_var))25 % (num_procs, util.machines_file, python_env_var)) 26 26 util.log_print(logfile, cmd + ' ...') 27 27 fd = os.popen(cmd) … … 48 48 os.chdir('mandelbrot') 49 49 50 cmd = '%s compile _mandelbrot_c_extensions.py' % python_env_var50 cmd = '%s compile.py mandel_ext.c' % python_env_var 51 51 util.log_print_nl(logfile, cmd) 52 52 fd = os.popen(cmd) … … 56 56 if status: 57 57 return False 58 58 59 cmd = '%s compile.py mandelplot_ext.c' % python_env_var 60 util.log_print_nl(logfile, cmd) 61 fd = os.popen(cmd) 62 compile_result = fd.read() 63 status = fd.close() 64 util.log_print(logfile, compile_result) 65 if status: 66 return False 67 59 68 # run tests 60 machines_file = os.path.join(' ~', '.machines_%s' % cluster)69 machines_file = os.path.join('..', util.machines_file) 61 70 result_data = [] 62 71 for num_procs in Processor_Numbers:
Note: See TracChangeset
for help on using the changeset viewer.