/[escript]/trunk/site_scons/site_init.py
ViewVC logotype

Diff of /trunk/site_scons/site_init.py

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

revision 3375 by caltinay, Thu Oct 14 00:30:11 2010 UTC revision 3376 by caltinay, Tue Nov 23 01:56:20 2010 UTC
# Line 80  def runUnitTest(target, source, env): Line 80  def runUnitTest(target, source, env):
80    app = str(source[0].abspath)    app = str(source[0].abspath)
81    pn, sn= os.path.split(app)    pn, sn= os.path.split(app)
82    if not os.name== "nt":    if not os.name== "nt":
83       app = "cd "+pn+"; "+os.path.join(env['bininstall'],"escript")+" -bv "+os.path.join('.',sn)       app = "cd "+pn+"; "+os.path.join(env['bininstall'], "run-escript")+" -bv "+os.path.join('.',sn)
84    else:    else:
85        if env['usempi']:        if env['usempi']:
86            app = "cd %s & mpiexec -np %s -genvlist PYTHONPATH,OMP_NUM_THREADS,"\            app = "cd %s & mpiexec -np %s -genvlist PYTHONPATH,OMP_NUM_THREADS,"\
# Line 108  def runPyUnitTest(target, source, env): Line 108  def runPyUnitTest(target, source, env):
108         else:         else:
109             app = "cd "+ pn +" & "+sys.executable + " " + sn             app = "cd "+ pn +" & "+sys.executable + " " + sn
110     else:     else:
111       app = "cd "+pn+"; "+os.path.join(env['bininstall'],"escript")+" -ov "+sn       app = "cd "+pn+"; "+os.path.join(env['bininstall'], "run-escript")+" -ov "+sn
112     print "Executing test: ",app     print "Executing test: ",app
113     if env.Execute(app) == 0:     if env.Execute(app) == 0:
114        open(str(target[0]),'w').write("PASSED\n")        open(str(target[0]),'w').write("PASSED\n")

Legend:
Removed from v.3375  
changed lines
  Added in v.3376

  ViewVC Help
Powered by ViewVC 1.1.26