/[escript]/trunk-mpi-branch/scons/scons_extensions.py
ViewVC logotype

Diff of /trunk-mpi-branch/scons/scons_extensions.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1274 by ksteube, Tue Feb 13 22:56:57 2007 UTC revision 1275 by ksteube, Fri Aug 24 04:34:52 2007 UTC
# Line 23  def build_py(target, source, env): Line 23  def build_py(target, source, env):
23  # Code to run unit_test executables  # Code to run unit_test executables
24  def runUnitTest(target, source, env):  def runUnitTest(target, source, env):
25    time_start = time.time()    time_start = time.time()
   print "Executing test: " + str(source[0].abspath)  
26    app = str(source[0].abspath)    app = str(source[0].abspath)
27      if env['useMPI']: app = 'mpirun -np 1 ' + app
28      print "Executing test: " + app
29    if not env.Execute(app):    if not env.Execute(app):
30      open(str(target[0]),'w').write("PASSED\n")      open(str(target[0]),'w').write("PASSED\n")
31    else:    else:
# Line 34  def runUnitTest(target, source, env): Line 35  def runUnitTest(target, source, env):
35    
36  def runPyUnitTest(target, source, env):  def runPyUnitTest(target, source, env):
37     time_start = time.time()     time_start = time.time()
38     print "Executing test: " + str(source[0].abspath)     app = str(source[0].abspath)
39     app = 'python '+str(source[0].abspath)     if env['useMPI']:
40         app = 'mpirun -np 1 lib/pythonMPI ' + app
41       else:
42         app = 'python ' + app
43       print "Executing test: " + app
44     if not env.Execute(app):     if not env.Execute(app):
45        open(str(target[0]),'w').write("PASSED\n")        open(str(target[0]),'w').write("PASSED\n")
46     else:     else:

Legend:
Removed from v.1274  
changed lines
  Added in v.1275

  ViewVC Help
Powered by ViewVC 1.1.26