/[ascend]/trunk/test/SConscript
ViewVC logotype

Annotation of /trunk/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3400 - (hide annotations) (download)
Thu Jun 14 13:08:43 2018 UTC (4 years, 7 months ago) by jpye
File size: 1097 byte(s)
added GetNotesList test

1 jpye 2017 #!/usr/bin/python invoke_using_scons
2     Import('test_env')
3 jpye 2523 import platform
4 johnpye 400
5 jpye 2017 # local sources
6     srcs = ['test.c','test_ascend_base.c','redirectStdStreams.c','printutil.c','assertimpl.c']
7 johnpye 400
8 jpye 2017 # test cases from the different tested modules
9 jpye 2241 for dir in test_env['TESTDIRS']:
10 jpye 2017 srcs += test_env['TESTSRCS_'+dir.upper()]
11 johnpye 400
12 jpye 2017 test_env.Append(
13     LIBS = ['ascend','cunit']
14     , LIBPATH = ['#']
15     , CPPDEFINES = ['-DASC_SHARED']
16     )
17    
18 jpye 3398 if test_env.get('WITH_PCRE'):
19     test_env.AppendUnique(
20     CPPPATH=test_env.get('PCRE_CPPPATH')
21     ,LIBS=test_env['PCRE_LIBS']
22     ,LIBPATH=test_env.get('PCRE_LIBPATH')
23     )
24    
25 jpye 2017 if test_env.has_key('CUNIT_CPPPATH'):
26 ballan 2036 test_env.Append(CPPPATH=test_env['CUNIT_CPPPATH'])
27 jpye 2017
28     if test_env.has_key('CUNIT_LIBPATH'):
29     test_env.Append(LIBPATH=test_env['CUNIT_LIBPATH'])
30    
31 jpye 3362 testprog = test_env.Program('test',srcs
32     , LINKFLAGS=['-Wl,-rpath,\'$$ORIGIN/..\'']
33     )
34 jpye 2017
35 jpye 3322 test_env.Depends(testprog,['#/ascend','#/solvers','#/models'])
36    
37 jpye 2347 test_env.Depends(testprog,"#/ascend/utilities/test")
38 jpye 2501
39 jpye 2523 if platform.system()=="Windows":
40     test_env.Depends(testprog,test_env['libascend'])
41     else:
42     test_env.Depends(testprog,"#/libascend.so.1")
43    
44    

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22