[SCons] Add commands for building (but not running) tests

This commit is contained in:
Ray Speth
2024-06-03 18:19:57 -04:00
committed by Ray Speth
parent cd5d7a9e34
commit 43b1fffe14
4 changed files with 15 additions and 7 deletions

View File

@@ -71,7 +71,9 @@ class Test(object):
localenv.Depends(env['test_results'], run)
localenv.Depends(run, env['build_targets'])
localenv.Alias('test-clean', self.clean(localenv))
localenv.Alias('test-%s' % self.testName, run)
localenv.Alias(f'test-{self.testName}', run)
localenv.Alias(f'build-{self.testName}', self.program)
localenv.Alias('build-tests', self.program)
env['testNames'].append(self.testName)
# reset: just delete the ".passed" file so that this test will be re-run