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

Contents of /trunk/weipa/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3982 - (show annotations)
Fri Sep 21 03:23:22 2012 UTC (6 years, 10 months ago) by jfenwick
File size: 1497 byte(s)
More edits + removing pyvisi from trunk

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2012 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 since 2012 by School of Earth Sciences
13 #
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')+Glob('*.c')
23 testname='weipa_UnitTest'
24
25 # build the executable
26 local_env.Append(LIBS=['weipa', 'escript', 'dudley', 'finley']+env['cppunit_libs'])
27 if local_env['silo']:
28 local_env.Append(CPPDEFINES = ['USE_SILO'])
29 local_env.AppendUnique(LIBS = [env['silo_libs']])
30 program = local_env.Program(testname, sources)
31
32 # run the tests - but only if test_targets are stale
33 local_env.RunUnitTest(testname)
34
35 # add unit test to target alias
36 Alias('build_tests', program)
37 Alias("run_tests", testname+'.passed')
38
39 # add a group of tests
40 from grouptest import *
41 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/weipa/test", ('./'+testname,))
42 TestGroups.append(tgroup)
43
44 # configure python unit tests
45 local_env.SConscript(dirs = ['#/weipa/test/python'], variant_dir='python', duplicate=0)
46

  ViewVC Help
Powered by ViewVC 1.1.26