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

Contents of /trunk/base/generic/test/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 956 - (show annotations) (download)
Sat Dec 9 15:38:05 2006 UTC (15 years, 8 months ago) by johnpye
File size: 674 byte(s)
Removed references to 'ASC_BIG_BUGMAIL' and 'ASC_MILD_BUGMAIL'
Disabled stream redirection functions (they were making testing difficult)
Re-wrote the main test-runner to permit specific tests to be run from the commandline (ongoing)
Disabled readln tests that required stream redirection.
1 Import('env')
2
3 testsrcs = ['#test/'+i for i in Split("""
4 assertimpl.c
5 printutil.c
6 redirectStdStreams.c
7 """)]
8
9 basesrcs = ['test_ascend_base.c']
10
11 srcs = []
12 for dir in ['general','utilities','solver']:
13 srcs += env['TESTSRCS_'+dir.upper()]
14
15 cpppath = ['#test','#base/generic']
16 if env.has_key('CUNIT_CPPPATH'):
17 cpppath.append(env['CUNIT_CPPPATH'])
18
19 libpath = ['#', '#test']
20 if env.has_key('CUNIT_LIBPATH'):
21 libpath.append(env['CUNIT_LIBPATH'])
22 print "CUNIT_LIBPATH ---> ",libpath
23
24
25 print "CUNIT srcs =",srcs
26 print "CUNIT basesrcs =",basesrcs
27
28 env.Program('test',srcs+basesrcs
29 , CPPPATH = cpppath
30 , LIBS = ['ascend','asctest','m','cunit','dl']
31 , LIBPATH = libpath
32 )

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