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

Contents of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1811 - (show annotations)
Thu Sep 25 23:11:13 2008 UTC (14 years, 6 months ago) by ksteube
File size: 1195 byte(s)
Copyright updated in all files

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2008 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14
15 import os
16 Import('*')
17
18 local_env = clone_env(env)
19
20 # get the relevant file names:
21 src_dir = local_env.Dir('.').srcnode().abspath
22 filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]
23
24 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
25
26 local_env.Append(LIBS=['finley', 'escript', 'paso', 'esysUtils', 'CppUnitTest'] + env['sys_libs'])
27
28 # compile test
29 program = local_env.Program('finley_UnitTest', sources)
30 env.Alias('build_tests', program)
31
32 # run the tests - but only if test_targets are stale
33 local_env.RunUnitTest('finley_UnitTest')
34 test_targets = os.path.splitext('finley_UnitTest')[0]+'.passed'
35 Alias("run_tests", test_targets)
36
37 local_env.SConscript(dirs = ['#/finley/test/python'], build_dir='python', duplicate=0)

  ViewVC Help
Powered by ViewVC 1.1.26