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

Contents of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6939 - (show annotations)
Mon Jan 20 03:37:18 2020 UTC (3 years, 2 months ago) by uqaeller
File size: 1455 byte(s)
Updated the copyright header.


1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2020 by The University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Apache License, version 2.0
9 # http://www.apache.org/licenses/LICENSE-2.0
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 # Development from 2019 by School of Earth and Environmental Sciences
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')
24 testname='finley_UnitTest'
25
26 # build the executable
27 local_env.PrependUnique(LIBS=env['finley_libs']+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 GroupTest
39 tgroup=GroupTest("finleycpp", "$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
40 TestGroups.append(tgroup)
41
42 # configure python unit tests
43 local_env.SConscript('python/SConscript', duplicate=0)
44

  ViewVC Help
Powered by ViewVC 1.1.26