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

Annotation of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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


1 ksteube 1811
2 jfenwick 3982 ##############################################################################
3 ksteube 1705 #
4 uqaeller 6939 # Copyright (c) 2003-2020 by The University of Queensland
5 jfenwick 3982 # http://www.uq.edu.au
6 ksteube 1705 #
7 ksteube 1811 # Primary Business: Queensland, Australia
8 jfenwick 6112 # Licensed under the Apache License, version 2.0
9     # http://www.apache.org/licenses/LICENSE-2.0
10 ksteube 1705 #
11 jfenwick 3982 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 jfenwick 4657 # Development 2012-2013 by School of Earth Sciences
13     # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 uqaeller 6939 # Development from 2019 by School of Earth and Environmental Sciences
15 jfenwick 3982 #
16     ##############################################################################
17 ksteube 1705
18 robwdcock 649 Import('*')
19 jfenwick 3259 local_env = env.Clone()
20 robwdcock 649
21 caltinay 3597 if local_env['cppunit']:
22     # get the test source file names
23 caltinay 6119 sources = Glob('*.cpp')
24 caltinay 3597 testname='finley_UnitTest'
25 robwdcock 649
26 caltinay 3597 # build the executable
27 caltinay 6119 local_env.PrependUnique(LIBS=env['finley_libs']+env['cppunit_libs'])
28 caltinay 3597 program = local_env.Program(testname, sources)
29 robwdcock 649
30 caltinay 3597 # run the tests - but only if test_targets are stale
31     local_env.RunUnitTest(testname)
32 robwdcock 649
33 caltinay 3597 # add unit test to target alias
34     Alias('build_tests', program)
35     Alias("run_tests", testname+'.passed')
36 robwdcock 668
37 caltinay 3597 # add a group of tests
38 caltinay 6034 from grouptest import GroupTest
39     tgroup=GroupTest("finleycpp", "$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
40 caltinay 3597 TestGroups.append(tgroup)
41    
42 jfenwick 3259 # configure python unit tests
43 caltinay 6119 local_env.SConscript('python/SConscript', duplicate=0)
44 robwdcock 649

  ViewVC Help
Powered by ViewVC 1.1.26