/[escript]/branches/clazy/finley/test/SConscript
ViewVC logotype

Contents of /branches/clazy/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6511 - (show annotations)
Fri Mar 3 01:41:39 2017 UTC (2 years ago) by jfenwick
File size: 1385 byte(s)
For some experiments

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

  ViewVC Help
Powered by ViewVC 1.1.26