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

Annotation of /trunk/escript/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 670 - (hide annotations)
Sat Mar 25 14:56:39 2006 UTC (13 years, 5 months ago) by robwdcock
Original Path: branches/ROBW_XPLATFORM/escript/test/SConscript
File size: 752 byte(s)
+ Changed include paths to no longer require the cpp suffix (missed in earlier
  commit)
+ modified tests so they no longer install to #/lib

1 robwdcock 638 Import('*')
2    
3     program_name = 'escript_UnitTest'
4    
5     local_env=env.Copy()
6    
7     src_dir = local_env.Dir('.').srcnode().abspath
8    
9     import os
10     filenames = os.listdir(src_dir)
11     sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
12    
13 robwdcock 668 local_env.Append(LIBS=[ python_lib, boost_lib, 'escript', 'esysUtils', 'CppUnitTest', sys_libs])
14    
15 robwdcock 638 program = local_env.Program(program_name, sources)
16    
17     Depends(program, dep_lib)
18    
19     #Add Unit Test to target alias
20    
21 robwdcock 670 env.Alias('build_tests', program)
22 robwdcock 638
23     # run the tests - but only if test_targets are stale
24     local_env.RunUnitTest(program_name)
25     test_targets = os.path.splitext(program_name)[0]+'.passed'
26     Alias("run_tests", test_targets)
27 robwdcock 652
28 robwdcock 661 local_env.SConscript(dirs = ['#/escript/test/python'], build_dir='python', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26