diff options
author | Daniel Moody <dmoody256@gmail.com> | 2022-06-07 20:05:42 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2022-06-07 20:05:42 (GMT) |
commit | 719ad105165e942ee39f42749ee48d06e7567c90 (patch) | |
tree | 19af99ee34bb5eaf0001610c04a8672f1fae7707 /test/ninja | |
parent | daeff32f5b69c29a3235d710dd000012df080c73 (diff) | |
download | SCons-719ad105165e942ee39f42749ee48d06e7567c90.zip SCons-719ad105165e942ee39f42749ee48d06e7567c90.tar.gz SCons-719ad105165e942ee39f42749ee48d06e7567c90.tar.bz2 |
Added command line variable to pass ninja args through scons.
Diffstat (limited to 'test/ninja')
-rw-r--r-- | test/ninja/generate_and_build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ninja/generate_and_build.py b/test/ninja/generate_and_build.py index 91be108..83b7387 100644 --- a/test/ninja/generate_and_build.py +++ b/test/ninja/generate_and_build.py @@ -49,10 +49,11 @@ test.dir_fixture('ninja-fixture') test.file_fixture('ninja_test_sconscripts/sconstruct_generate_and_build', 'SConstruct') # generate simple build -test.run(stdout=None) +test.run(stdout=None, arguments='NINJA_CMD_ARGS=-v') test.must_contain_all_lines(test.stdout(), ['Generating: build.ninja']) test.must_contain_all(test.stdout(), 'Executing:') test.must_contain_all(test.stdout(), 'ninja%(_exe)s -f' % locals()) +test.must_contain_all(test.stdout(), ' -j1 -v') test.run(program=test.workpath('foo' + _exe), stdout="foo.c") # clean build and ninja files |