/[escript]/trunk/pyvisi/test/python/SConscript
ViewVC logotype

Diff of /trunk/pyvisi/test/python/SConscript

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

revision 1137 by gross, Thu May 10 08:11:31 2007 UTC revision 1138 by gross, Mon May 14 04:15:04 2007 UTC
# Line 53  except ImportError: Line 53  except ImportError:
53        VTK_AVAILABLE =False        VTK_AVAILABLE =False
54        print "Warning: vtk is not installed on your system. pyvisi tests are skipped."        print "Warning: vtk is not installed on your system. pyvisi tests are skipped."
55                
 if VTK_AVAILABLE:  
    #Add Unit Test to target alias  
    local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/pyvisi/test/python')))  
    local_env['ENV']['ESCRIPT_TEST_DATA_ROOT']=env.Dir('#/pyvisi/test/python').srcnode().abspath  
    local_env['ENV']['ESCRIPT_WORKDIR']=env.Dir('#/build/$PLATFORM/pyvisi/test/python').srcnode().abspath  
56    
57    #Add Unit Test to target alias
58    local_env.PrependENVPath('PYTHONPATH',str(env.Dir('#/build/$PLATFORM/pyvisi/test/python')))
59    local_env['ENV']['PYVISI_TEST_DATA_ROOT']=env.Dir('#/pyvisi/test/python').srcnode().abspath
60    local_env['ENV']['PYVISI_WORKDIR']=env.Dir('#/build/$PLATFORM/pyvisi/test/python').srcnode().abspath
61    
62    if VTK_AVAILABLE:
63     env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in alltestruns])     env.Alias('local_py_tests',[os.path.splitext(x)[0]+'.passed' for x in alltestruns])
64     env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns ])     env.Alias('py_tests', [os.path.splitext(x)[0]+'.passed' for x in testruns ])
65     program = local_env.RunPyUnitTest(alltestruns)     program = local_env.RunPyUnitTest(alltestruns)

Legend:
Removed from v.1137  
changed lines
  Added in v.1138

  ViewVC Help
Powered by ViewVC 1.1.26