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

Contents of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4657 - (show annotations)
Thu Feb 6 06:12:20 2014 UTC (7 years, 8 months ago) by jfenwick
File size: 1462 byte(s)
I changed some files.
Updated copyright notices, added GeoComp.



1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2014 by University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17
18 Import('*')
19 local_env = env.Clone()
20
21 if local_env['cppunit']:
22 # get the test source file names
23 sources = Glob('*.cpp')+Glob('*.c')
24 testname='finley_UnitTest'
25
26 # build the executable
27 local_env.Append(LIBS=['finley', 'escript', 'paso', 'esysUtils']+env['cppunit_libs'])
28 program = local_env.Program(testname, sources)
29
30 # run the tests - but only if test_targets are stale
31 local_env.RunUnitTest(testname)
32
33 # add unit test to target alias
34 Alias('build_tests', program)
35 Alias("run_tests", testname+'.passed')
36
37 # add a group of tests
38 from grouptest import *
39 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
40 TestGroups.append(tgroup)
41
42 # configure python unit tests
43 local_env.SConscript(dirs = ['#/finley/test/python'], variant_dir='python', duplicate=0, exports=['py_wrapper_lib'])
44

  ViewVC Help
Powered by ViewVC 1.1.26