summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | changes to unit test to avoid hitting the filesystemWilliam Deegan2019-04-222-95/+136
| | | | | | | |
| * | | | | | | Merge branch 'master' into java-versWilliam Deegan2019-04-2231-262/+218
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | |
| * | | | | | | Move the jdk-version-glob test to unit testsMats Wichmann2019-04-172-94/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | | | | | Add a test for JDK glob matchingMats Wichmann2019-04-161-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | | | | | [PR #3352] fix sider complaints: bare exceptMats Wichmann2019-04-142-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sider in the CI system doesn't like the change which added a try/except block for a version without a dot. This was copied from a different file, so to fix the complaint, four instances are actually updated to "except ValueError" - I am assuming that this is the only thing that could go wrong, a version string cannot be converted with int(foo), which would throw ValueError. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | | | | | Fix problems with jdk detectionMats Wichmann2019-04-148-51/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The java tool common routine finds a jdk by doing a filesystem glob. This had a problem on windows in the case a specific version is requested, because the format of name of the jdk directory has changed with JDK 9 - there is a dash between jdk and the version string. The glob which does not attempt to match a version was general enough not to trip on this, but with a version to match it would never match jdk-9 or higher. The test harness then asks the found javac what version it is, and the parsing of that did not work as expected once version numbers became double-digit, as the regex was for a single digit followed by a dot. The outcome is for 11.0.2 we get back '11' instead of '11.0'. Change the regex to match any number of digits followed by dot. The Repository/RMIC.py change is to align with an earlier change to Java/RMIC.py, but the may not be needed after the change to regex just described. Clean up some of the Java tool routines for consistency (there was no functional change outside of JavaCommon.py) Docstrings added or updated in several places. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | | | | Merge pull request #3358 from bdbaddog/fix_3350_mslink_tempfile_join_charWilliam Deegan2019-04-2317-17/+115
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | Fix Issue #3350 mslink tempfile join char
| * | | | | | | Fix default value logic for TEMPFILEARGJOINWilliam Deegan2019-04-221-1/+1
| | | | | | | |
| * | | | | | | Fix Issue #3350 - Update CHANGES.txt and RELEASE.txtWilliam Deegan2019-04-222-1/+6
| | | | | | | |
| * | | | | | | Merge remote-tracking branch 'origin/fix_3350_mslink_tempfile_join_char' ↵William Deegan2019-04-2215-21/+100
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into fix_3350_mslink_tempfile_join_char
| | * | | | | | | Doc updatesWilliam Deegan2019-04-228-11/+25
| | | | | | | | |
| | * | | | | | | Updated mslink, mslib, msvc, platform docs, and added unit testWilliam Deegan2019-04-227-6/+65
| | | | | | | | |
| | * | | | | | | PEP 8 fileWilliam Deegan2019-04-221-4/+10
| | | | | | | | |
| * | | | | | | | Merge branch 'master' of github.com:SCons/scons into ↵William Deegan2019-04-2226-232/+187
| |\ \ \ \ \ \ \ \ | |/ / / / / / / / |/| / / / / / / / | |/ / / / / / / fix_3350_mslink_tempfile_join_char
* | | | | | | | Merge pull request #3356 from mwichmann/lintyWilliam Deegan2019-04-2226-232/+187
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fixup some code triggering pylint errors.
| * | | | | | | | Fixup some code triggering pylint errors.Mats Wichmann2019-04-2126-232/+187
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assorted fixups: exception types, redefined functions, globals, etc. Some old code removed to resolve issues (hashlib is always present on modern Pythons; no longer need the code for 2.5-and-earlier optparse). cmp is not a builtin function in Py3, drop one (unused) use; replace one. Fix another instance of renaming to SConsEnvironmentError. TODO flagged some instances of doing a raise without argument but not inside a try block - this is not considered legal, since raise with no argument is for re-raising an exception, but I don't know exactly how to resolve this in these cases. Also flagged an instance of raising an int instead of an exception class. We can either leave these as markers or update the PR. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | | | | | Issue #3350 - Add TEMPFILEARGJOINBYTE as a variable to be used to join each ↵William Deegan2019-04-204-1/+15
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | item placed into a TEMPFILE. Previously hardcoded as a bytearray space, now it is overridden by msvc and mslink tools
* | | | | | | Merge pull request #3354 from bdbaddog/fix_3350_overloading_EnvironmentErrorWilliam Deegan2019-04-1810-26/+30
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Issue #3350 - Refactor EnvironmentError to SConsEnvironmentError to avoid overriding python's native EnvironmentError
| * | | | | | Issue #3350 - Refactor EnvironmentError to SConsEnvironmentError to avoid ↵William Deegan2019-04-1810-26/+30
|/ / / / / / | | | | | | | | | | | | | | | | | | overriding python's native EnvironmentError
| | * | | | [PR #3337] centralize definition of candidatesMats Wichmann2019-04-162-29/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A list of possible executable names are provided in several places in yacc and lex tools, make it a little cleaner by defining once, at the top. Signed-off-by: Mats Wichmann <mats@linux.com>
| | * | | | [PR #3337] clean up lex and yacc toolsMats Wichmann2019-04-133-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove now unneeded code to save/restore the path, since the routine now does not modify the path. Signed-off-by: Mats Wichmann <mats@linux.com>
| | * | | | [#3336] do not add not-found tool pathsMats Wichmann2019-04-133-12/+18
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When tool modules initialize, they check paths to decide if the underlying tool is actually present. The current checker adds any "default paths" the caller may have supplied (locations like mingw, cygwin, chocolatey install locations, etc.); if there is match from this list, any previous default paths are also kept. To avoid keeping these non-matching paths, restore the original PATH; the caller is responsible for adding to PATH if necessary. Docstring now says so. Note lex and yacc tool modules seem to expect the path-modifying behavior that's being gotten rid of - so they preseve the path first and restore it after. The change here won't break those, but makes the extra behavior unneeded - could remove it. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | Merge pull request #3343 from mwichmann/sconsign-defaultWilliam Deegan2019-04-063-59/+88
|\ \ \ \ \ | | | | | | | | | | | | Give sconsign a default filename.
| * | | | | Give sconsign a default filename.Mats Wichmann2019-04-053-59/+88
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sconsign required filename(s) or directory name(s) to do anything, in their absence it just quits silently. Change so if filename argument omitted, use the same default as scons - .sconsign.dblite. print something in case of bad options. add an extra info line in case the sconsign cannot be read due to pickle protocol (when py2 used in a place where scons previously run with py3) Tweak the manpage a bit. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | Merge pull request #3344 from mwichmann/more-pkg-testsWilliam Deegan2019-04-069-12/+12
|\ \ \ \ \ | |/ / / / |/| | | | Tweaks to packaging tests: avoid default tool list
| * | | | Tweaks to packaging tests: avoid default tool listMats Wichmann2019-04-069-12/+12
|/ / / / | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | Fix test to work with py3.5+William Deegan2019-04-261-1/+1
| |/ /
| * | Fix sider complainWilliam Deegan2019-04-261-1/+1
| | |
| * | Change test logic to run once, and then run again expecting up to date.William Deegan2019-04-261-0/+54
| | |
| * | Force runtest to skip looking in this directoryWilliam Deegan2019-04-261-0/+0
| | |
| * | Initial testcase logic to fix Issue #2811William Deegan2019-04-266-0/+72
| | |
| * | Move target_peers to slots from attributesWilliam Deegan2019-04-022-1/+9
| | |
| * | update changes.txtWilliam Deegan2019-04-021-3/+13
| | |
| * | Merge branch 'master' of github.com:SCons/scons into ↵William Deegan2019-04-0217-115/+150
| |\ \ | |/ / |/| | | | | fix_mongo_bug_33111_multiple_targets_via_emitter_spurious_rebuilds
* | | Merge pull request #3331 from mwichmann/py38warnsWilliam Deegan2019-04-0117-115/+150
|\ \ \ | | | | | | | | [PY 3.8] fix more warnings
| * | | [PR #3331] resync with PR #3330Mats Wichmann2019-03-301-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Manually make scons-time.py match master after it evolved independently in a different PR. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | Add changelog for PR #3331Mats Wichmann2019-03-301-0/+2
| | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PY 3.8] tempoary fix: move imp importMats Wichmann2019-03-301-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PY 3.8] Fix more errors in #3331Mats Wichmann2019-03-301-17/+17
| | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PY 3.8] fix some sider complaints in #3331Mats Wichmann2019-03-303-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | One was "real": had failed to indent a with: block Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PY 3.8] roll back scons-time to use os.popenMats Wichmann2019-03-301-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For PR #3331: the change in src/script/scons-time.py to use subprocess in log_execute caused failures on Windows platform. For now, go back to os.popen, but save the open descriptor so it can be closed (that was the original warning being addressed). Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [WIP] [PY 3.8] fix more warningsMats Wichmann2019-03-3015-114/+143
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several locations with simple usage of deprecated "imp" module changed to use "importlib". These match with work in #3159, but this is not a complete implementation of #3159. More regex patterns are changed to be raw strings. Some strings which did not seem appropriate to change to raw strings (e.g. contain embedded tabs, which Python should honor) had backslashes escaped to avoid accidental Python interpretation. Example: '\t<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.targets" />\n' Python 3.8 was Warning \M was an unknown escape. More open().write(), open().read() style usage changed to use context managers so the file is closed. WIP part: even with Python 3.7, the tests which call sconsign.py fail; oddly they do not fail without the patch to compat.py. sconsign.py does an import using imp module (which is what generates the errors) so needs to be updated anyway. It does not quite fit the "simple usage" pattern - can't do a simple relative import since sconsign is normally located elsewhere in the tree than the main scons code body. With this version of the patch, 700 tests now pass with 3.8, and Warning messages reduced to 2800 (current master has 200 pass, 9000 warns) Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Fix issue #2811 spurious rebuilds due to incorrect waiting_parents on nodes ↵William Deegan2019-04-021-0/+19
|/ / | | | | | | when builder has more than one target and source file generated
* | Merge pull request #3330 from mwichmann/runtest-tweaksWilliam Deegan2019-03-296-217/+155
|\ \ | | | | | | Runtest improvements for multi-job runs
| * | [PR #333] close files to avoid scons-time racesMats Wichmann2019-03-294-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With runtest now honoring the -j 2 option given to it in CI setup on Windows, there were some problems where scons-time tests could try to remove a test directory while some files in it were still open (these locations were complained about by Python 3.8 also). Switch test framework to using mkdtemp also, and to not use tempfile.template (usage of that and mktemp are long deprecated) Signed-off-by: Mats Wichmann <mats@linux.com>
| * | [PR #3330] try to eliminate race in scons-timeMats Wichmann2019-03-292-24/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | runtest change to run requested number of jobs exposed a concurrency problem on Appveyor CI (Windows) builds - which seems to be due to scons-time using mktemp to create a temporary directory name, and then later creating the directory. In scons-time the timing window for this is a bit longer than usual. Try using mkdtemp instead. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | [PR #3330] do not use shell in subproc callsMats Wichmann2019-03-291-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The various instances of subprocess.Popen call with shell=True, but this is not necessary, the test command lines don't depend on any shell processing and are complete as constructed. With shell=False, send a list of command words instead of a single string. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Runtest improvements for multi-job runsMats Wichmann2019-03-291-160/+107
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Main fix: if duing a multi-job run (-j flag is present), collect the test output in runtest and keep the test heading together with the test output, so the information about a given test will not separated in the output. The test number is recorded in the test instance instead of kept as a global. Tests may appear out of order now, but since they may be run "out of order" depending on how fast the various threads complete the jobs they pull off the queue, that just reflects reality. The help message is now the script's docstring, and help prints the docstring along with some other info. This avoids having the options described twice (and going out of sync) - once in the inital comment, once in the help message. A mention of the -j multi-job option is added, was previously missing. Also: one less worker than requested was created due to use of range(1, n) (may have been intentional?). changed to number requested. Also: the lock is taken from the RunTest instance, not from the global lock variable. This must have been intended as the lock is stored in the instance on initialization. The lock was not really declared as a global, it was just assigned in global scope. Also: the test result reporting is now split off into its own function, makes a bit cleaner separation (and facilitates possible changes to the multi-job model in future). Signed-off-by: Mats Wichmann <mats@linux.com>
* | Reset to development post merge from release branchWilliam Deegan2019-03-274-34/+71
| |
* | Merge pull request #3335 from SCons/rel_3.0.5William Deegan2019-03-2713-123/+114
|\ \ | | | | | | Merge 3.0.5 changes back to master