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

Contents of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3259 - (show annotations)
Mon Oct 11 01:48:14 2010 UTC (8 years, 11 months ago) by jfenwick
File size: 1184 byte(s)
Merging dudley and scons updates from branches

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 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 Import('*')
15 local_env = env.Clone()
16
17 # get the test source file names
18 sources = Glob('*.cpp')+Glob('*.c')
19 testname='finley_UnitTest'
20
21 # build the executable
22 local_env.Append(LIBS=['finley', 'escript', 'paso', 'esysUtils', 'CppUnitTest'])
23 program = local_env.Program(testname, sources)
24
25 # run the tests - but only if test_targets are stale
26 local_env.RunUnitTest(testname)
27
28 # add unit test to target alias
29 Alias('build_tests', program)
30 Alias("run_tests", testname+'.passed')
31
32 # configure python unit tests
33 local_env.SConscript(dirs = ['#/finley/test/python'], variant_dir='python', duplicate=0, exports=['py_wrapper_lib'])
34
35 # add a group of tests
36 from grouptest import *
37 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
38 TestGroups.append(tgroup)
39

  ViewVC Help
Powered by ViewVC 1.1.26