/[escript]/branches/ROBW_XPLATFORM/finley/test/SConscript
ViewVC logotype

Contents of /branches/ROBW_XPLATFORM/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 661 - (show annotations)
Fri Mar 24 09:13:00 2006 UTC (13 years, 2 months ago) by robwdcock
File size: 1047 byte(s)
+py_tests now runs. Be patient, it is all of them!!

1 Import('*')
2
3 program_name = 'finley_UnitTest'
4
5 local_env=env.Copy()
6
7 local_env.Append(LIBS=[ python_lib, boost_lib, 'finleycpp', 'escriptcpp', 'paso', 'esysUtils', 'CppUnitTest', scsl_libs, mkl_libs, umf_libs, sys_libs])
8
9 src_dir = local_env.Dir('.').srcnode().abspath
10
11 import os
12 filenames = os.listdir(src_dir)
13 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
14
15 program = local_env.Program(program_name, sources)
16
17 Depends(program, dep_lib)
18
19 # TODO: Need to decide on how the library paths etc are going to be handled
20 # TODO: For now just install the program to the same location as the libraries so things can run at least
21 test_install = local_env.Install(libinstall, program)
22
23 #Add Unit Test to target alias
24
25 env.Alias('build_tests', test_install)
26
27 # run the tests - but only if test_targets are stale
28 local_env.RunUnitTest(program_name)
29 test_targets = os.path.splitext(program_name)[0]+'.passed'
30 Alias("run_tests", test_targets)
31
32 local_env.SConscript(dirs = ['#/finley/test/python'], build_dir='python', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26