/[escript]/branches/DataC_2092/escript/test/SConscript
ViewVC logotype

Diff of /branches/DataC_2092/escript/test/SConscript

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

revision 652 by robwdcock, Fri Mar 24 07:34:18 2006 UTC revision 668 by robwdcock, Sat Mar 25 13:27:27 2006 UTC
# Line 4  program_name = 'escript_UnitTest' Line 4  program_name = 'escript_UnitTest'
4    
5  local_env=env.Copy()  local_env=env.Copy()
6    
 local_env.Append(LIBS=[ python_lib, boost_lib, 'escriptcpp', 'esysUtils', 'CppUnitTest', sys_libs])  
   
7  src_dir = local_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
8    
9  import os  import os
10  filenames = os.listdir(src_dir)  filenames = os.listdir(src_dir)
11  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
12    
13    local_env.Append(LIBS=[ python_lib, boost_lib, 'escript', 'esysUtils', 'CppUnitTest', sys_libs])
14    
15  program = local_env.Program(program_name, sources)  program = local_env.Program(program_name, sources)
16    
17  Depends(program, dep_lib)  Depends(program, dep_lib)
# Line 29  local_env.RunUnitTest(program_name) Line 29  local_env.RunUnitTest(program_name)
29  test_targets = os.path.splitext(program_name)[0]+'.passed'  test_targets = os.path.splitext(program_name)[0]+'.passed'
30  Alias("run_tests", test_targets)  Alias("run_tests", test_targets)
31    
32  local_env.SConscript(dirs = ['#/escript/test/python'], build_dir='py', duplicate=0)  local_env.SConscript(dirs = ['#/escript/test/python'], build_dir='python', duplicate=0)

Legend:
Removed from v.652  
changed lines
  Added in v.668

  ViewVC Help
Powered by ViewVC 1.1.26