/[escript]/branches/4.0fordebian/site_scons/site_init.py
ViewVC logotype

Diff of /branches/4.0fordebian/site_scons/site_init.py

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

branches/domexper/site_scons/site_init.py revision 3251 by jfenwick, Thu Oct 7 04:02:30 2010 UTC trunk/site_scons/site_init.py 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")
# Line 119  def runPyUnitTest(target, source, env): Line 119  def runPyUnitTest(target, source, env):
119    
120  def eps2pdf(target, source, env):  def eps2pdf(target, source, env):
121  #   if env.Execute("epstopdf "+str(source[0].abspath)+" -o "+str(target[0].abspath))!=0:  #   if env.Execute("epstopdf "+str(source[0].abspath)+" -o "+str(target[0].abspath))!=0:
122     if env.Execute("ps2pdf "+str(source[0].abspath)+" "+str(target[0].abspath))!=0:     if env.Execute("ps2pdf -dEPSCrop "+str(source[0].abspath)+" "+str(target[0].abspath))!=0:
123         return 1         return 1
124     return None     return None
125    

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

  ViewVC Help
Powered by ViewVC 1.1.26