-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4439 from bdbaddog/debug-sconscript
Add StenGruener's --debug=sconscript
- Loading branch information
Showing
9 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
__version__="4.5.2" | ||
__version__="4.5.3" | ||
__copyright__="Copyright (c) 2001 - 2023 The SCons Foundation" | ||
__developer__="bdbaddog" | ||
__date__="Sun, 04 Jun 2023 15:36:48 -0700" | ||
__date__="Sat, 28 Oct 2023 17:40:01 -0700" | ||
__buildsys__="M1Dog2021" | ||
__revision__="b3744e8862927899e3d0ebcb41297f9b4c142c63" | ||
__build__="b3744e8862927899e3d0ebcb41297f9b4c142c63" | ||
__revision__="a790daf8d878aef83937723e1fb1017fd86875f2" | ||
__build__="a790daf8d878aef83937723e1fb1017fd86875f2" | ||
# make sure compatibility is always in place | ||
import SCons.compat # noqa | ||
import SCons.compat # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/usr/bin/env python | ||
# | ||
# MIT License | ||
# | ||
# Copyright The SCons Foundation | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining | ||
# a copy of this software and associated documentation files (the | ||
# "Software"), to deal in the Software without restriction, including | ||
# without limitation the rights to use, copy, modify, merge, publish, | ||
# distribute, sublicense, and/or sell copies of the Software, and to | ||
# permit persons to whom the Software is furnished to do so, subject to | ||
# the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | ||
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
""" | ||
Test the --debug=sconscript option | ||
""" | ||
|
||
import os | ||
import TestSCons | ||
|
||
test = TestSCons.TestSCons() | ||
|
||
test.write('SConstruct', """\ | ||
print("SConstruct") | ||
""") | ||
|
||
wpath = test.workpath() | ||
|
||
test.run(arguments=".") | ||
unexpect = [ | ||
'scons: Entering %s%sSConstruct' % (wpath, os.sep), | ||
'scons: Exiting %s%sSConstruct' % (wpath, os.sep) | ||
] | ||
test.must_not_contain_any_line(test.stdout(), unexpect) | ||
|
||
test.run(arguments="--debug=sconscript .") | ||
expect = [ | ||
'scons: Entering %s%sSConstruct' % (wpath, os.sep), | ||
'scons: Exiting %s%sSConstruct' % (wpath, os.sep) | ||
] | ||
test.must_contain_all_lines(test.stdout(), expect) | ||
test.pass_test() | ||
|
||
# Local Variables: | ||
# tab-width:4 | ||
# indent-tabs-mode:nil | ||
# End: | ||
# vim: set expandtab tabstop=4 shiftwidth=4: |