/[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 1705 by ksteube, Thu Aug 14 05:56:40 2008 UTC revision 1771 by ksteube, Mon Sep 8 22:47:55 2008 UTC
# Line 14  Line 14 
14  #######################################################  #######################################################
15  #  #
16    
17  import os  import os, re
18  Import('*')  Import('*')
19    
20  local_env = clone_env(env)  local_env = clone_env(env)
# Line 27  filenames = [ x for x in os.listdir(src_ Line 27  filenames = [ x for x in os.listdir(src_
27    
28  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']]
29    
30  local_env.Append(LIBS= ['escript', 'esysUtils', 'CppUnitTest'] + env['sys_libs'] )  local_env.Append(LIBS= ['escript', 'esysUtils', 'CppUnitTest'] + local_env['sys_libs'] )
31  local_env.Append(CCFLAGS = "-g")    # Some of these test files are too large to optimize  local_env['CCFLAGS'] = re.sub("-O[0-9]", "-g", str(local_env['CCFLAGS']))   # Some of these test files are too large to optimize
32    
33  program = local_env.Program('escript_UnitTest', sources)  program = local_env.Program('escript_UnitTest', sources)
34    
35  #Add Unit Test to target alias  #Add Unit Test to target alias
36    
37  env.Alias('run_tests', program)  local_env.Alias('run_tests', program)
38    
39  # run the tests - but only if test_targets are stale  # run the tests - but only if test_targets are stale
40  local_env.RunUnitTest('escript_UnitTest')  local_env.RunUnitTest('escript_UnitTest')

Legend:
Removed from v.1705  
changed lines
  Added in v.1771

  ViewVC Help
Powered by ViewVC 1.1.26