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

Contents of /trunk/esysUtils/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: 1221 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 Import('*')
17 local_env = env.Clone()
18
19 if local_env['cppunit']:
20 # get the test source file names
21 sources = Glob('*.cpp')+Glob('*.c')
22 testname='EsysExceptionTest'
23
24 # build the executable
25 local_env.Append(LIBS=['esysUtils']+env['cppunit_libs'])
26 program = local_env.Program(testname, sources)
27
28 # run the tests - but only if test_targets are stale
29 local_env.RunUnitTest(testname)
30
31 # add unit test to target alias
32 Alias('build_tests', program)
33 Alias("run_tests", testname+'.passed')
34
35 # add a group of tests
36 from grouptest import *
37 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/esysUtils/test", ('./'+testname,))
38 TestGroups.append(tgroup)
39

  ViewVC Help
Powered by ViewVC 1.1.26