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

Annotation of /trunk/finley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3597 - (hide annotations)
Thu Sep 15 06:03:17 2011 UTC (8 years, 1 month ago) by caltinay
File size: 1275 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 ksteube 1811
2     ########################################################
3 ksteube 1705 #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 ksteube 1705 #
8 ksteube 1811 # 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 ksteube 1705 #
12 ksteube 1811 ########################################################
13 ksteube 1705
14 caltinay 3597
15 robwdcock 649 Import('*')
16 jfenwick 3259 local_env = env.Clone()
17 robwdcock 649
18 caltinay 3597 if local_env['cppunit']:
19     # get the test source file names
20     sources = Glob('*.cpp')+Glob('*.c')
21     testname='finley_UnitTest'
22 robwdcock 649
23 caltinay 3597 # build the executable
24     local_env.Append(LIBS=['finley', 'escript', 'paso', 'esysUtils']+env['cppunit_libs'])
25     program = local_env.Program(testname, sources)
26 robwdcock 649
27 caltinay 3597 # run the tests - but only if test_targets are stale
28     local_env.RunUnitTest(testname)
29 robwdcock 649
30 caltinay 3597 # add unit test to target alias
31     Alias('build_tests', program)
32     Alias("run_tests", testname+'.passed')
33 robwdcock 668
34 caltinay 3597 # add a group of tests
35     from grouptest import *
36     tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
37     TestGroups.append(tgroup)
38    
39 jfenwick 3259 # configure python unit tests
40     local_env.SConscript(dirs = ['#/finley/test/python'], variant_dir='python', duplicate=0, exports=['py_wrapper_lib'])
41 robwdcock 649

  ViewVC Help
Powered by ViewVC 1.1.26