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

Diff of /trunk/escript/test/SConscript

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

revision 667 by robwdcock, Fri Mar 24 13:25:00 2006 UTC revision 676 by robwdcock, Sun Mar 26 10:13:34 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  program = local_env.Program(program_name, sources)  local_env.Append(LIBS=[ python_lib, boost_lib, 'escript', 'esysUtils', 'CppUnitTest', sys_libs])
   
 Depends(program, dep_lib)  
14    
15  # TODO: Need to decide on how the library paths etc are going to be handled  program = local_env.Program(program_name, sources)
 # TODO: For now just install the program to the same location as the libraries so things can run at least  
 test_install = local_env.Install(libinstall, program)  
16    
17  #Add Unit Test to target alias  #Add Unit Test to target alias
18    
19  env.Alias('build_tests', test_install)  env.Alias('build_tests', program)
20    
21  # run the tests - but only if test_targets are stale  # run the tests - but only if test_targets are stale
22  local_env.RunUnitTest(program_name)  local_env.RunUnitTest(program_name)

Legend:
Removed from v.667  
changed lines
  Added in v.676

  ViewVC Help
Powered by ViewVC 1.1.26