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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1002 - (show annotations) (download)
Sat Dec 30 14:27:47 2006 UTC (18 years, 4 months ago) by johnpye
File size: 969 byte(s)
Some work on fixing error with test_ascSignal.
Breaking down into smaller test cases.
Removed some debug output from detection of ASC_RESETNEEDED.
Changed all calls 'signal' to 'SIGNAL' macro that includes optional debug output.
Removed 'libasctest.so' (made part of libasctestsuite.so FWIW)
Fixed big in test.c wrt CUEA_ABORT.
Added 'print_stack' and 'Asc_SignalPrintStack' and 'Asc_SignalStackLength'.

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', '#base/generic/test']
20 if env.has_key('CUNIT_LIBPATH'):
21 libpath.append(env['CUNIT_LIBPATH'])
22 #print "CUNIT_LIBPATH ---> ",libpath
23
24 objs = []
25 for src in srcs+testsrcs:
26 objs += env.SharedObject(src
27 , CPPPATH = cpppath
28 )
29 objs += env.SharedObject('test_ascend_base.c'
30 , CPPPATH = cpppath
31 )
32
33 env.SharedLibrary('asctestsuite',objs
34 , CPPPATH = cpppath
35 , LIBS = ['ascend','m','cunit','dl']
36 , LIBPATH = libpath
37 , CPPDEFINES = env.get('CPPDEFINES') + ['-DASC_SHARED']
38 )
39
40 env.Program('test',['test.c']
41 , CPPPATH = cpppath
42 , LIBS = ['ascend','cunit','asctestsuite']
43 , LIBPATH = libpath
44 )

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