[SCons/Test] Re-run tests if shared library changes
This commit is contained in:
parent
17c3b019c0
commit
0db18ad0b1
2 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ def addTestProgram(subdir, progName, env_vars={}):
|
|||
PASSED_FILES[progName] = str(passedFile)
|
||||
testResults.tests[passedFile.name] = program
|
||||
run_program = testenv.Command(passedFile, program, gtestRunner)
|
||||
env.Depends(run_program, testenv.get('cantera_shlib', ()))
|
||||
Alias('test', run_program)
|
||||
Alias('test-%s' % progName, run_program)
|
||||
env['testNames'].append(progName)
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ class Test(object):
|
|||
|
||||
for dep in kwargs.get('dependencies', []):
|
||||
localenv.Depends(run, dep)
|
||||
env.Depends(run, localenv.get('cantera_shlib', ()))
|
||||
|
||||
def run(self, env, *args):
|
||||
source = list(args)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue