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

Annotation of /trunk/dudley/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3253 - (hide annotations)
Thu Oct 7 05:34:33 2010 UTC (8 years, 7 months ago) by caltinay
Original Path: branches/domexper/dudley/test/SConscript
File size: 1195 byte(s)
Corrected some merge issues, fixed another name clash that caused a segfault
in tests, changed remaining PASO_MPI's to ESYS_MPI and added -std=c99 to
gcc's default options.

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 ksteube 1811
15 ksteube 1705 import os
16 robwdcock 649 Import('*')
17    
18 caltinay 3253 local_env = env.Clone()
19 robwdcock 649
20 jfenwick 3251 # get the test source file names
21     sources = Glob('*.cpp')+Glob('*.c')
22     testname='dudley_UnitTest'
23 robwdcock 649
24 jfenwick 3251 # build the executable
25     local_env.Append(LIBS=['dudley', 'escript', 'paso', 'esysUtils', 'CppUnitTest'])
26     program = local_env.Program(testname, sources)
27 robwdcock 649
28 jfenwick 3251 # run the tests - but only if test_targets are stale
29     local_env.RunUnitTest(testname)
30 robwdcock 668
31 jfenwick 3251 # add unit test to target alias
32     Alias('build_tests', program)
33     Alias("run_tests", testname+'.passed')
34 robwdcock 649
35 jfenwick 3251 # configure python unit tests
36     local_env.SConscript(dirs = ['#/finley/test/python'], variant_dir='python', duplicate=0, exports=['py_wrapper_lib'])
37 robwdcock 649
38 jfenwick 3251 # add a group of tests
39 jfenwick 2239 from grouptest import *
40 jfenwick 3251 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/finley/test", ('./'+testname,))
41 jfenwick 2239 TestGroups.append(tgroup)

  ViewVC Help
Powered by ViewVC 1.1.26