summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [PR #3497] skip test for build_dir kwargMats Wichmann2019-12-161-0/+3
| | | | | | | | Turns out cannot test for now-unknown build_dir arg because SConscript() doesn't error on such. Skip test for now, leaving a note (and and issue). Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3497] add missed sconstest.skipMats Wichmann2019-12-151-0/+0
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3497] add the missing testcasesMats Wichmann2019-12-152-0/+115
| | | | | | forgot to add these to the initial commit Signed-off-by: Mats Wichmann <mats@linux.com>
* Remove deprecated BuildDir, build_dirMats Wichmann2019-12-156-0/+11
| | | | | | | | | Updates docs and code; moves tests to test/Removed/BuildDir/Old. New tests verify that these can no longer be used. Along the way a small cleanup in SConscript.py Signed-off-by: Mats Wichmann <mats@linux.com>
* fixed match function to be non-regexWilliam Deegan2019-12-141-1/+1
|
* Remove deprecated env.Copy()Mats Wichmann2019-12-146-0/+59
| | | | | | | | | Method removed. Test moved to test/Removed/Copy-Method/Old, and new test added to ensure it takes an AttributeError. Deprecation warning no longer useful for this one, so removed. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix looking for specific version of libSystem.B.dylib when running on macOS. ↵William Deegan2019-12-111-6/+12
| | | | Use regex of #.#.# instead
* Merge branch 'master' into py3-doctasksWilliam Deegan2019-12-108-25/+62
|\
| * Merge pull request #3473 from kulikjak/masterWilliam Deegan2019-12-106-17/+14
| |\ | | | | | | Fix incorrect testing assumptions for Solaris
| | * Fix incorrect testing assumptions for SolarisJakub Kulik2019-11-016-17/+14
| | |
| * | Merge pull request #3487 from mwichmann/update-action-timestampWilliam Deegan2019-12-091-5/+5
| |\ \ | | | | | | | | Align debug action timestamps to existing conventions
| | * | Update debug=action-timestampsMats Wichmann2019-12-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Rename to action-timestamps (from action_timestamps) for consistency with other compound word options. + Put manpage entry in alphabetical order. + Describe what option does and shorten it (refers to debug=time instead of duplicating it) + Change prints a bit (and tests to match) + Show scons version where added. + Slight adjustment to manpage introduction to debug options. Along the way, fixes a lingering tag mismatch from an earlier documentation PR. Updates PR#3456 Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | Reformat test/Command.py PEP8William Deegan2019-12-081-4/+5
| | | |
| * | | Address GaryO's feedback on PR 3129. Also reformatted Command() PEP8William Deegan2019-12-081-1/+0
| | | |
| * | | Merge pull request #3129 from dragon512/update-commandWilliam Deegan2019-12-061-2/+42
| |\ \ \ | | |/ / | |/| | Allow Command to take more builder options
| | * | add py3 compatible print() functionsJason Kenny2019-12-061-1/+1
| | | |
| | * | Allow Command to take more builder optionsJason Kenny2019-12-041-1/+41
| | | | | | | | | | | | | | | | | | | | add to change log add documentation update test
* | | | Improve building of docs using Py3 [ci skip]Mats Wichmann2019-12-056-7/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * context managers on file r/w + use shutil.copy where it makes sense. * lxml wants (demands?) that xml files be processed as bytes * for the phase where we gen the entity files, read as text anyway * Need to solve a problem where the generated xml is putting the \n in literally, not evaluating it. * Fix some examples broken for py3 * Fix more octal constant instances * Cleanups suggested by PyCharm: staticmethods, two blanks before class definition, others. This addresses issues called out in #3300, but is not a complete solution because the actual doc build step still fails with the epydoc failures (which aren't directly because of Py3; epydoc build doesn't work any better on my system with Py3, even with the forked version with patches). Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Merge pull request #3474 from mwichmann/argv0-py39-testsWilliam Deegan2019-11-1812-34/+34
|\ \ \ | |/ / |/| | [3.9] change tests not to expect bare scriptname
| * | [3.9] change tests not to expect bare scriptnameMats Wichmann2019-11-0612-34/+34
| |/ | | | | | | | | | | | | | | | | | | Python 3.9 changes to give an absolute path in sys.argv[0]. Some tests expected to see just a simple path ('myyacc.py'); these now either do a test.must_contain instead of must_match, or change to do "if 'mypass.py' in sys.argv[0]' instead of the former "if sys.argv[0] == 'mypass.py'". Signed-off-by: Mats Wichmann <mats@linux.com>
* | Latin-1 log test case: compile to DVI, not PostScript; add commentmaiphi2019-11-071-1/+5
| |
* | Add test case with Latin-1 encoded Latex log file. Required fix in the test ↵maiphi2019-11-011-0/+16
|/ | | | | | | | | framework. In order to make the test work, it was necessary to handle the encoding issue also in the test framework. Otherwise, though the Latex builder can handle the case, the test framework chokes on it.
* [PR 3464] quiet sider complaintsMats Wichmann2019-10-212-3/+0
| | | | | | | unused imports in a pair of tests that were moved and thus "touched". Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR 3464] rework new tests so they match stderrMats Wichmann2019-10-212-10/+20
| | | | | | | The re.DOTALL match function somehow wasn't matching the SConstruct error path, so build it up from known information instead. Signed-off-by: Mats Wichmann <mats@linux.com>
* Remove deprecated {Source,Target}SignaturesMats Wichmann2019-10-2027-14/+130
| | | | | | | | | | These two have been deprecated since 2010 (about SCons 2.0), commit 935e6985. Methods are removed, setoption for setting them removed, doc is removed, tests are migrated to test/Removed/*/Old with a sconstest.skip file so they don't run, and two new tests are added to confirm that using the functions and setoptions generate exceptions. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3462 from mwichmann/msvc_env_cacheWilliam Deegan2019-10-121-0/+114
|\ | | | | enable experimental persistent caching of vcvars on win32
| * [PR 3462] convert json cache better way for py2Mats Wichmann2019-10-111-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | there was still a path through without fully converted data, where env['ENV'] could contain unicode, so convert the cache hit instead. This is a little slower but only for Py2 which is going away anyway. added the vs2019 exec test (vs-14.2-exec) which is just a copy of 14.0, 14.1 with the required version changed - this had never been added. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Move SConstruct from test to file fixtureWilliam Deegan2019-10-112-5/+4
| |
* | Added debug option "timestamp", completely overhauled testEdoardo Bezzeccheri2019-10-111-196/+67
| | | | | | | | Started from scratch, removing copy of debug-time.py test.
* | Merge remote-tracking branch 'origin/master'Edoardo Bezzeccheri2019-10-092-11/+71
|\ \ | | | | | | | | | | | | # Conflicts: # src/CHANGES.txt
| * \ Merge branch 'master' into CmdStringHolderWilliam Deegan2019-10-0837-563/+291
| |\ \ | | |/
| | * test whether CheckFunc properly detects memmoveJacek Kuczera2019-10-061-11/+16
| | |
| * | CmdStringHolder should not fail in SubstMats Wichmann2019-09-071-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass 1: test case showing the failure. This is WIP - need to add the fix, but want a CI build to show the fail. Closes issues #3248 Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Added debug option "timestamp", changed option "timestamp" to ↵Edoardo Bezzeccheri2019-10-091-6/+6
| | | | | | | | | | | | | | | | | | "action_timestamps" As per PR review
* | | Added debug option "timestamp", rename test fileEdoardo Bezzeccheri2019-10-091-0/+0
| | |
* | | Added debug option "timestamp", fix shadowing internal fncEdoardo Bezzeccheri2019-10-091-2/+2
| | |
* | | Added debug option "timestamp", add testEdoardo Bezzeccheri2019-10-011-0/+234
| |/ |/|
* | Merge pull request #3444 from mwichmann/depr-debugsWilliam Deegan2019-09-1712-462/+195
|\ \ | | | | | | Remove deprecated debug options
| * | [PR #3444] fix test issues with --debug removalsMats Wichmann2019-09-126-28/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were several uses of deprecated debug flags that had not been moved to to test/Deprecated, and so were missed when those moved to test/Removed. Also removed options from manpage. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Remove deprecated debug optionsMats Wichmann2019-09-127-434/+184
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options have been deprecated since 2007. They were originally announced to be disabled in SCons 2.0.0, but that didn't happen. Left the deprecated-debug-options behavior is in, but the dictionary of such options is now empty, and there's a new dict of removed options, and presence in that dict raises an exception. The four tests that were in test/Deprecated move to a new directory test/Removed and are simplified just to make sure invocation errors scons out. (git interprets most of these as remove/add for some reason) These appear to have been already removed from docs, so no doc impact. Signed-off-by: Mats Wichmann <mats@linux.com>
* | test: Fix SyntaxWarnings on escapes in Python stringsMats Wichmann2019-09-1324-90/+80
|/ | | | | | | | | | | | | | | | | | This is the remaining batch of SyntaxWarning cleanups in the test/ directory, as flagged by Python 3.8 (now tested with 3.8.0b4). Most of these are escapes in strings that are not recognized as Python-language escapes up front, due to the embedded nature of testing - tests write a string to a file which is actually Python (code or sconscript) which is later to be executed. Also changed the timestamp-fallback test to eliminate an imp module DeprecationWarning: since in all supported Python versions haslib is stdlib, drop that skip check; the md5 skip check can be a simple import now. My test runs with 3.8 show no SyntaxWarnings after this. Signed-off-by: Mats Wichmann <mats@linux.com>
* purge aegis referencesWilliam Deegan2019-09-071-79/+0
|
* Use "in" in preference to string find methodMats Wichmann2019-08-305-27/+27
| | | | | | | | In places where only the found/not found status is needed, use the membership operator (in) for checks instead - makes for easier reading and is considered faster for shorter strings. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3413 from mwichmann/ci-vs2019William Deegan2019-08-245-12/+47
|\ | | | | Add VS2019 to appveyor matrix
| * Changes to make test multi-platform (wasn't working on windows).William Deegan2019-08-232-3/+15
| |
| * skip certain tar-pkg tests on win32 [travis skip]Mats Wichmann2019-08-073-14/+20
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * do some debugging on tar bz2 and xz formatsMats Wichmann2019-08-063-10/+27
| | | | | | | | | | | | | | Don't merge this one: it has debug stuff in it, and eliminates most appveyor builds Signed-off-by: Mats Wichmann <mats@linux.com>
* | Add test and fix to regression in current 3.1.0 dropJason Kenny2019-07-301-0/+56
| |
* | Remove reference to DeciderNeedsNode from test. Logic still needed to test ↵William Deegan2019-07-241-2/+0
|/ | | | GH Issue #3303
* Merge branch 'master' into topic/grossag/msvsWilliam Deegan2019-07-195-7/+7
|\