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

Contents of /trunk/esysUtils/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3597 - (show annotations)
Thu Sep 15 06:03:17 2011 UTC (7 years, 7 months ago) by caltinay
File size: 1102 byte(s)
Switching to external cppunit:
-removed tools/CppUnitTest
-updated scons script and files
-updated tests to changed API
-updated readme

Bumped scons options file version to 201. Additions:
-cppunit*
-boomeramg*
-vsl_random


1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # Primary Business: Queensland, Australia
9 # Licensed under the Open Software License version 3.0
10 # http://www.opensource.org/licenses/osl-3.0.php
11 #
12 ########################################################
13
14 Import('*')
15 local_env = env.Clone()
16
17 if local_env['cppunit']:
18 # get the test source file names
19 sources = Glob('*.cpp')+Glob('*.c')
20 testname='EsysExceptionTest'
21
22 # build the executable
23 local_env.Append(LIBS=['esysUtils']+env['cppunit_libs'])
24 program = local_env.Program(testname, sources)
25
26 # run the tests - but only if test_targets are stale
27 local_env.RunUnitTest(testname)
28
29 # add unit test to target alias
30 Alias('build_tests', program)
31 Alias("run_tests", testname+'.passed')
32
33 # add a group of tests
34 from grouptest import *
35 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/esysUtils/test", ('./'+testname,))
36 TestGroups.append(tgroup)
37

  ViewVC Help
Powered by ViewVC 1.1.26