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

Contents of /trunk/weipa/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3344 - (show annotations)
Thu Nov 11 23:26:52 2010 UTC (10 years, 8 months ago) by caltinay
File size: 1271 byte(s)
Phew!
-escript, finley, and dudley now uses weipa's saveVTK implementation
-moved tests from finley to weipa accordingly; dudley still to do
-rebaselined all test files
-fixed a few issues in weipa.saveVTK, e.g. saving metadata without schema
-added a deprecation warning to esys.escript.util.saveVTK
-todo: change doco, tests and other places to use weipa.saveVTK


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 # get the test source file names
18 sources = Glob('*.cpp')+Glob('*.c')
19 testname='weipa_UnitTest'
20
21 # build the executable
22 local_env.Append(LIBS=['weipa', 'escript', 'dudley', 'finley', 'CppUnitTest'])
23 if local_env['silo']:
24 local_env.Append(CPPDEFINES = ['USE_SILO'])
25 local_env.AppendUnique(LIBS = [env['silo_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 # configure python unit tests
36 local_env.SConscript(dirs = ['#/weipa/test/python'], variant_dir='python', duplicate=0)
37
38 # add a group of tests
39 from grouptest import *
40 tgroup=GroupTest("$BINRUNNER ", (), "", "$BUILD_DIR/weipa/test", ('./'+testname,))
41 TestGroups.append(tgroup)
42

  ViewVC Help
Powered by ViewVC 1.1.26