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

Annotation of /trunk/esysUtils/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2881 - (hide annotations)
Thu Jan 28 02:03:15 2010 UTC (9 years, 8 months ago) by jfenwick
File size: 1321 byte(s)
Don't panic.
Updating copyright stamps

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 682 Import('*')
17 jgs 455
18 jfenwick 2231 local_env = clone_env(env_mpi)
19 jgs 455
20 gross 700 src_dir = local_env.Dir('.').srcnode().abspath
21 jgs 227
22 gross 700 # get the relevant file names:
23 robwdcock 682 src_dir = local_env.Dir('.').srcnode().abspath
24 gross 700 filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]
25 jgs 227
26 robwdcock 682 sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
27 jgs 227
28 ksteube 1705 local_env.Append(LIBS=[ 'esysUtils', 'CppUnitTest', env['sys_libs']])
29 jgs 227
30 ksteube 1705 program = local_env.Program('EsysExceptionTest', sources)
31 jgs 197
32 robwdcock 682 #Add Unit Test to target alias
33 jgs 306
34 gross 700 env.Alias('build_tests', program)
35 jgs 197
36 robwdcock 682 # run the tests - but only if test_targets are stale
37 ksteube 1705 local_env.RunUnitTest('EsysExceptionTest')
38     test_targets = os.path.splitext('EsysExceptionTest')[0]+'.passed'
39 robwdcock 682 Alias("run_tests", test_targets)
40 gross 700
41 jfenwick 2239 # Add a group of tests
42     from grouptest import *
43 jfenwick 2249 tgroup=GroupTest("$BINRUNNER ", (),"","$BUILD_DIR/esysUtils/test",('./EsysExceptionTest',))
44 jfenwick 2239 TestGroups.append(tgroup)
45    

  ViewVC Help
Powered by ViewVC 1.1.26