SCons: allow setting VALGRINDFLAGS from the environment
This commit is contained in:
parent
cbbc298fe9
commit
0bd0cfc549
1 changed files with 8 additions and 3 deletions
|
|
@ -92,9 +92,14 @@ artifacts['testsuite'] = ts = ( [ testExecutable(env, dir) for dir in ['lib','co
|
|||
# is explicitly propagated to test.sh
|
||||
#
|
||||
testEnv = env.Clone()
|
||||
if not env['VALGRIND']:
|
||||
testEnv.Append(ENV = { 'VALGRINDFLAGS' : 'DISABLE'
|
||||
, 'LUMIERA_CONFIG_PATH' : './' })
|
||||
|
||||
valgrind = os.environ.get('VALGRINDFLAGS', '') # unset if not defined
|
||||
if not valgrind and not env['VALGRIND']:
|
||||
valgrind = 'DISABLE'
|
||||
|
||||
testEnv.Append(ENV = { 'VALGRINDFLAGS' : valgrind
|
||||
, 'LUMIERA_CONFIG_PATH' : './'
|
||||
})
|
||||
|
||||
testsuites = env['TESTSUITES'] or os.environ.get('TESTSUITES')
|
||||
if testsuites:
|
||||
|
|
|
|||
Loading…
Reference in a new issue