/[escript]/trunk/scons/scons_extensions.py
ViewVC logotype

Diff of /trunk/scons/scons_extensions.py

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

revision 2388 by jfenwick, Wed Apr 15 06:21:25 2009 UTC revision 2416 by gross, Wed May 13 06:03:59 2009 UTC
# Line 34  def runUnitTest(target, source, env): Line 34  def runUnitTest(target, source, env):
34    app = str(source[0].abspath)    app = str(source[0].abspath)
35    if not os.name== "nt":    if not os.name== "nt":
36       app = os.path.join(env['bininstall'],"escript")+" -bv "+app       app = os.path.join(env['bininstall'],"escript")+" -bv "+app
37      else:
38          if env['usempi']:
39              app = "mpiexec -np %s -genvlist PYTHONPATH,OMP_NUM_THREADS,"\
40                "FINLEY_TEST_DATA,PYVISI_TEST_DATA_ROOT,PYVISI_WORKDIR %s"\
41                %(env['ENV']['ESCRIPT_NUM_NODES'], app)
42    print "Executing test: " + app    print "Executing test: " + app
43    if not env.Execute(app):    if not env.Execute(app):
44      open(str(target[0]),'w').write("PASSED\n")      open(str(target[0]),'w').write("PASSED\n")
# Line 46  def runPyUnitTest(target, source, env): Line 51  def runPyUnitTest(target, source, env):
51     time_start = time.time()     time_start = time.time()
52     app = str(source[0].abspath)     app = str(source[0].abspath)
53     if os.name== "nt":     if os.name== "nt":
54       app = sys.executable + " " + app         if env['usempi']:
55               app = "mpiexec -np %s -genvlist PYTHONPATH,OMP_NUM_THREADS,"\
56                  "FINLEY_TEST_DATA,PYVISI_TEST_DATA_ROOT,PYVISI_WORKDIR %s\pythonMPIredirect.exe %s"\
57                  %(env['ENV']['ESCRIPT_NUM_NODES'],env['libinstall'],app)
58           else:
59               app = sys.executable + " " + app
60     else:     else:
61       app = os.path.join(env['bininstall'],"escript")+" -ov "+app       app = os.path.join(env['bininstall'],"escript")+" -ov "+app
62     print "Executing test: " + app     print "Executing test: " + app

Legend:
Removed from v.2388  
changed lines
  Added in v.2416

  ViewVC Help
Powered by ViewVC 1.1.26