/[escript]/branches/trilinos_from_5897/weipa/test/SConscript
ViewVC logotype

Contents of /branches/trilinos_from_5897/weipa/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6118 - (show annotations)
Fri Apr 1 09:51:13 2016 UTC (3 years ago) by caltinay
File size: 2110 byte(s)
fixed weipa dependencies.

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2016 by The University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Apache License, version 2.0
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17
18 Import('*')
19 local_env = env.Clone()
20
21 if local_env['cppunit']:
22 # get the test source file names
23 sources = Glob('*.cpp')
24 testname='weipa_UnitTest'
25
26 # build the executable
27 local_env.Append(LIBS=['weipa', 'escript']+env['cppunit_libs'])
28 if 'dudley' in env['domains']:
29 local_env.Append(CPPDEFINES = ['USE_DUDLEY'])
30 local_env.PrependUnique(LIBS = env['dudley_libs'])
31 if 'finley' in env['domains']:
32 local_env.Append(CPPDEFINES = ['USE_FINLEY'])
33 local_env.PrependUnique(LIBS = env['finley_libs'])
34 if 'ripley' in env['domains']:
35 local_env.Append(CPPDEFINES = ['USE_RIPLEY'])
36 local_env.PrependUnique(LIBS = env['ripley_libs'])
37 if 'speckley' in env['domains']:
38 local_env.Append(CPPDEFINES = ['USE_SPECKLEY'])
39 local_env.PrependUnique(LIBS = env['speckley_libs'])
40 if local_env['silo']:
41 local_env.Append(CPPDEFINES = ['USE_SILO'])
42 local_env.AppendUnique(LIBS = env['silo_libs'])
43 program = local_env.Program(testname, sources)
44
45 # run the tests - but only if test_targets are stale
46 local_env.RunUnitTest(testname)
47
48 # add unit test to target alias
49 Alias('build_tests', program)
50 Alias("run_tests", testname+'.passed')
51
52 # add a group of tests
53 from grouptest import GroupTest
54 tgroup=GroupTest("weipacpp", "$BINRUNNER ", (), "", "$BUILD_DIR/weipa/test", ('./'+testname,))
55 TestGroups.append(tgroup)
56
57 # configure python unit tests
58 local_env.SConscript('python/SConscript', duplicate=0)
59

  ViewVC Help
Powered by ViewVC 1.1.26