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

Annotation of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6651 - (hide annotations)
Wed Feb 7 02:12:08 2018 UTC (19 months, 1 week ago) by jfenwick
File size: 1385 byte(s)
Make everyone sad by touching all the files

Copyright dates update

1 ksteube 1811
2 jfenwick 3982 ##############################################################################
3 ksteube 1705 #
4 jfenwick 6651 # Copyright (c) 2003-2018 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 jfenwick 3982 #
15     ##############################################################################
16 ksteube 1705
17 robwdcock 649 Import('*')
18 jfenwick 3259 local_env = env.Clone()
19 robwdcock 649
20 caltinay 3597 if local_env['cppunit']:
21     # get the test source file names
22 caltinay 6119 sources = Glob('*.cpp')
23 caltinay 3597 testname='finley_UnitTest'
24 robwdcock 649
25 caltinay 3597 # build the executable
26 caltinay 6119 local_env.PrependUnique(LIBS=env['finley_libs']+env['cppunit_libs'])
27 caltinay 3597 program = local_env.Program(testname, sources)
28 robwdcock 649
29 caltinay 3597 # run the tests - but only if test_targets are stale
30     local_env.RunUnitTest(testname)
31 robwdcock 649
32 caltinay 3597 # add unit test to target alias
33     Alias('build_tests', program)
34     Alias("run_tests", testname+'.passed')
35 robwdcock 668
36 caltinay 3597 # add a group of tests
37 caltinay 6034 from grouptest import GroupTest
38     tgroup=GroupTest("finleycpp", "$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
39 caltinay 3597 TestGroups.append(tgroup)
40    
41 jfenwick 3259 # configure python unit tests
42 caltinay 6119 local_env.SConscript('python/SConscript', duplicate=0)
43 robwdcock 649

  ViewVC Help
Powered by ViewVC 1.1.26