summaryrefslogtreecommitdiffstats
path: root/testing
Commit message (Collapse)AuthorAgeFilesLines
* Update version stringsWilliam Deegan2019-12-171-1/+1
|
* Merge pull request #3473 from kulikjak/masterWilliam Deegan2019-12-101-2/+2
|\ | | | | Fix incorrect testing assumptions for Solaris
| * Fix incorrect testing assumptions for SolarisJakub Kulik2019-11-011-2/+2
| |
* | Typo in testing document [ci skip]Mats Wichmann2019-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | lack of a consistent indent confused ReST readers: System Message: WARNING/2 (/home/mats/github/scons/testing/framework/test-framework.rst, line 32) Block quote ends without a blank line; unexpected unindent. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Add test case with Latin-1 encoded Latex log file. Required fix in the test ↵maiphi2019-11-011-1/+1
|/ | | | | | | | | 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.
* purge aegis referencesWilliam Deegan2019-09-071-19/+0
|
* Changes for 3.1.1 release3.1.1William Deegan2019-08-081-1/+1
|
* changes for release 3.1.0William Deegan2019-07-211-1/+1
|
* Fix accidental removal of some VS versionsAdam Gross2019-07-181-2/+1
| | | | My last change accidentally had several VS versions commented out in get_tested_proj_file_vc_versions().
* Fix msvs testsAdam Gross2019-07-181-510/+135
|
* test harness: fix TestCmd testsMats Wichmann2019-06-072-269/+318
| | | | | | | | | | | | | | | | | | | | | | This is the companion to PR #3382. The testing/harness/TestCmdTests.py unit tests do not currently pass. Note they are not run by the CI system, or in fact by doing runtests -a, since they're in a directory that is not searched. After these changes, there are no fails. This is a test-only change. The method simple_diff, modeled on difflib functions, is converted to a generator to match difflib, and now has a doctest as well. This means calls to it which aren't going to iterate needs to convert the return with list(), but that just makes usage more consistent, since the calls to difflib.context_diff and difflib.unified_diff already had to do so. Also, the methods that used Google-style docbook markup are changed to REsT-style markup. Our current doc producer, epydoc, does not understand the Google style, and we shouldn't mix styles; can convert them all in bulk later if we switch to Sphinx as the production tool. Signed-off-by: Mats Wichmann <mats@linux.com>
* PY38: Resolve duplicate creation of 'work' subdir which yielded warnings. ↵William Deegan2019-05-301-1/+1
| | | | Also improve exception handling message in test.subdir()
* Merge pull request #3345 from mwichmann/py38warns4-testsWilliam Deegan2019-04-283-41/+42
|\ | | | | [wip] Py38warns4 tests
| * [PR #3345] fix a few more Py3.8 problemsMats Wichmann2019-04-251-12/+12
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-253-36/+37
| | | | | | | | | | | | | | On a linux host (missing some things that may be on the Travis CI setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3360 from mwichmann/isnotWilliam Deegan2019-04-281-15/+13
|\ \ | | | | | | Some more lint-derived cleanups
| * | Some more lint-derived cleanupsMats Wichmann2019-04-271-15/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | Consistently use "not is" and "not in", many instances used the form "not x is y" instead, which pylint objected to. A couple of bare except clauses got a qualifier. Files otherwise touched had trailing whitespace cleaned up as well. These are all things that sider would complain about if a change happened nearby, so this is pre-emptive. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3359 from bdbaddog/fortran_issue_3135William Deegan2019-04-271-0/+6
|\ \ | |/ |/| Fix Issue #3135 - Type Bound procedures in Fortran submodules
| * Remove debug logicWilliam Deegan2019-04-251-1/+0
| |
| * Add initializing fixture_dirs from shell variable FIXTURE_DIRSWilliam Deegan2019-04-251-0/+7
| |
* | Merge branch 'master' into java-versWilliam Deegan2019-04-221-3/+3
|\ \
| * | Issue #3350 - Refactor EnvironmentError to SConsEnvironmentError to avoid ↵William Deegan2019-04-181-3/+3
| | | | | | | | | | | | overriding python's native EnvironmentError
* | | Fix problems with jdk detectionMats Wichmann2019-04-141-9/+53
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | [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-301-1/+1
| | | | | | | | | | | | One was "real": had failed to indent a with: block Signed-off-by: Mats Wichmann <mats@linux.com>
* | [WIP] [PY 3.8] fix more warningsMats Wichmann2019-03-305-58/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | [PR #333] close files to avoid scons-time racesMats Wichmann2019-03-291-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Release file updates for Release 3.0.53.0.5William Deegan2019-03-261-1/+1
| |
* | Merge branch 'master' into scons-time-fixesWilliam Deegan2019-03-101-1/+1
|\ \
| * | [skip ci] reset to develop mode3.0.5a2William Deegan2019-03-051-1/+1
| |/
* | scons-time needed to revert some changesMats Wichmann2019-03-071-4/+4
| | | | | | | | | | | | were breaking Windows tests. Signed-off-by: Mats Wichmann <mats@linux.com>
* | [PYPY] [PY 3.8] add context mgr use in scons-timeMats Wichmann2019-03-051-13/+16
|/ | | | | | | | | | | | | | | | To fix some test problems for pypy, which seem more prone to problems of lost data if files are written and not explicitly closed, add context managers on file opens in scons-time. Also quiets warnings which are emitted by the much noisier Python 3.8. Changes are to the scons-time script and to the framework. After visual inspection of outputs while debugging, switched the framework's created tools in the scons-time area to use os.linesep instead of explicit '\\n' strings, tools should operate in a native way. Signed-off-by: Mats Wichmann <mats@linux.com>
* [WIP] for #3304: drop use of -tt if py3Mats Wichmann2019-03-013-4/+14
| | | | | | | | | | As noted in issue #3304, the Python flag to error on inconsistent tabs/spaces has been dropped for Python 3 interpreters; while CPython still accepts it, silently ignoring it, PyPy3 errors out. This change adds the flag throughout the testsuite run only if using a Python2 interpreter. Signed-off-by: Mats Wichmann <mats@linux.com>
* Clean up some tests: use context managersMats Wichmann2019-02-142-7/+32
| | | | | | | | | Plenty of complaints coming from Python 3.8alpha on unclosed files. Targeted those areas which intersect with PyPy failures - this changeset reduces the PyPy fails by 17 on the local test environment. So this affects both Issue #3299 and the PyPy support project. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix is/is not syntaxMats Wichmann2019-02-111-1/+1
| | | | | | | | In a few places, "is" and "is not" are used to compare with a string or integer literal. Python 3.8 flags these with a SyntaxWarning. Changed to == and != Signed-off-by: Mats Wichmann <mats@linux.com>
* Updated files per ReleaseConfig for 3.0.4 releaseWilliam Deegan2019-01-201-1/+1
|
* added test for vs 14.1 and checking arm targetsDaniel2019-01-121-0/+108
|
* reverted tests so they can use a default host == target platform for find msvcDaniel Moody2019-01-091-1/+1
| | | | fixed some other tests
* use the vcvars batch script to find installed vc'sDaniel2019-01-091-1/+1
|
* updates from update-release-info for 3.0.3 releaseWilliam Deegan2019-01-061-1/+1
|
* Updates for 3.0.2 releaseWilliam Deegan2019-01-011-1/+1
|
* Allow TestCmd.diff() to accept lists as well as stringsWilliam Deegan2018-12-061-1/+7
|
* Merge pull request #3236 from ptomulik/whereisWilliam Deegan2018-11-091-17/+5
|\ | | | | attempt fixing TestSCons.where_is() for win32
| * attempt fixing TestSCons.where_is() for win32Paweł Tomulik2018-11-061-17/+5
| |
* | For PR #3231, update some docstrings per reviewMats Wichmann2018-11-052-12/+28
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix some problems found if no MS compiler at allMats Wichmann2018-10-302-2/+5
|/ | | | | | | | A few tests blew up with exceptions (AttributeError, IndexError) if no compiler is installed on Windows - from where they are it could possibly happen on other platforms as well. Signed-off-by: Mats Wichmann <mats@linux.com>
* Additional fixes for SWIG testsMats Wichmann2018-10-161-7/+16
| | | | | | | | | | | | Two tests were missing the raw-string marker when defining the Python include path. TestSCons:get_platform_python_info needed some rework for Windows, it was failing to find the python library if running in a virtual environment. Also removed a try-block; sys.version_info is standard since Python 2.0 and so does not need wrapping. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge remote-tracking branch 'upstream/master' into ↵William Deegan2018-10-152-65/+96
|\ | | | | | | fix_java_tests_path_with_spaces
| * remove editor junkPaweł Tomulik2018-10-101-0/+0
| |
| * fixed minor typosPaweł Tomulik2018-10-052-5/+5
| |