summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * Restore MD5-Timestamp performance by removing try/except from every call. ↵William Deegan2019-06-265-7/+7
| | | | | | | | Also some optimized logic for updating and using the dependency_map built as part of the decider. Fixed tests. Note Deciders now need a fourth argument 'repo_node' which is the repository node for the file if it's to be used. This is currently only used by md5-timestamp decider File.changed_timestamp_then_content()
* | Fix flake8 issues raised by siderAdam Gross2019-07-182-4/+0
| |
* | Fix msvs testsAdam Gross2019-07-1823-2096/+289
|/
* Merge pull request #3388 from mwichmann/xsl-changesWilliam Deegan2019-06-126-336/+330
|\ | | | | Update Docbook test stylesheets
| * Update Docbook test stylesheetsMats Wichmann2019-06-066-336/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Real change to two files, as apparently a system stylesheet has moved (checked in multiple Ubuntu versions, and in upstream dockbook-xsl) from html to xhtml path. Or to be more precise, in old docbook-xsl packages, both subdirectories existed but in newer releases only the xhtml subdirectory exists. - <xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/slides/html/plain.xsl"/> + <xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/slides/xhtml/plain.xsl"/> The other changes were to change file to standard line endings (not Windows) and quiet git complaints about whitespace errors. Unfortunately the line-endings change makes it look like the files were 100% replaced. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix escaping to quiet py38 warnings about bad escapesWilliam Deegan2019-06-101-3/+2
|/
* Tweak a few testsMats Wichmann2019-05-306-40/+40
| | | | | | | | | | | | | "for i in range(len(foo))" idiom changed to iterate directly over lists instead of indexing them. zip() generates the iterator in the case with two lists. reversed() used for the Windows drive-letter test. gdbm is not gone, just renamed. change test to find under either name. Use a context manager for closing StringIO objects opened for capturing standard I/O streams. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add cache hit rate to cache debuggingMathew Robinson2019-05-172-0/+21
|
* [PR #3364] small change to trigger ciMats Wichmann2019-05-041-1/+2
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Rework the failed-builds testMats Wichmann2019-05-031-31/+34
| | | | | | | test/Parallel/failed-builds.py has been sporadically failing on the CI builds. Rework it a bit to see if it improves. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3345 from mwichmann/py38warns4-testsWilliam Deegan2019-04-28337-1305/+1461
|\ | | | | [wip] Py38warns4 tests
| * [PR #3345] fix more PY3.8 failsMats Wichmann2019-04-266-25/+44
| | | | | | | | | | | | | | | | | | | | | | File closes in msvs tool Context manager in rpm tool Dummy compiler, assembler scripts can be called in unexpected ways (namely by gcc tool init), which passes --version flag. don't take exception on the getopt call. Try again to undo my breakage of _subproc, which was failing on Win+PY27 Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3345] fix a few more Py3.8 problemsMats Wichmann2019-04-252-3/+3
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3345] fix flake8 compliants on the PRMats Wichmann2019-04-252-6/+6
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-25333-1252/+1355
| | | | | | | | | | | | | | 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>
| * [PY 3.8] modernize common test fixturesMats Wichmann2019-04-255-49/+83
| | | | | | | | | | | | | | Apply changes to quiet open-file warnings. Add docstring to a few. Switch os.system usage to subprocess.call. Add if-main logic. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3341 from bdbaddog/enhanced_debug_explainWilliam Deegan2019-04-281-3/+9
|\ \ | | | | | | Enhanced debug explain
| * \ Merge branch 'master' into enhanced_debug_explainWilliam Deegan2019-04-278-0/+126
| |\ \
| * \ \ Merge branch 'master' into enhanced_debug_explainWilliam Deegan2019-04-2620-49/+58
| |\ \ \ | | | |/ | | |/|
| * | | Fix test to use path to python being used wrather than hardcoded linux pathWilliam Deegan2019-04-261-1/+1
| | | |
| * | | Enhanced --debug=explain output. Breaks out sources, depends, and implicit ↵William Deegan2019-04-021-3/+9
| | | | | | | | | | | | | | | | components to dependency list. Updated test. TODO: better formatting
* | | | Merge pull request #3359 from bdbaddog/fortran_issue_3135William Deegan2019-04-273-0/+165
|\ \ \ \ | |_|_|/ |/| | | Fix Issue #3135 - Type Bound procedures in Fortran submodules
| * | | Also ignore PURE and ELEMENTAL after MODULE in Scanner and Emitter.Peter Diener2019-04-263-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add subroutines that are declared pure and elemental to the test of the Emitter. Note that in test_1.f90, the interface is repeated in the submodule, whereas in test_2.f90 the interface is taken from the module. Also note that the regex does not check whether "module pure" or "module elemental" is actually followed by "subroutine" or "function". This would be a syntax error and should trigger a compile time error.
| * | | Fix Issue #3135 - Also add tests to check that emitter is properly ↵William Deegan2019-04-253-0/+107
| | | | | | | | | | | | | | | | processing interface module declarations
* | | | Merge remote-tracking branch ↵William Deegan2019-04-2620-49/+58
|\ \ \ \ | | | | | | | | | | | | | | | 'origin/fix_mongo_bug_33111_multiple_targets_via_emitter_spurious_rebuilds' into fix_mongo_bug_33111_multiple_targets_via_emitter_spurious_rebuilds
| * \ \ \ Merge branch 'master' into ↵William Deegan2019-04-2620-49/+58
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | fix_mongo_bug_33111_multiple_targets_via_emitter_spurious_rebuilds
| | * | | Merge branch 'master' into tool-addWilliam Deegan2019-04-2310-36/+45
| | |\ \ \
| | | * \ \ Merge pull request #3339 from mwichmann/ci-multiWilliam Deegan2019-04-237-27/+30
| | | |\ \ \ | | | | | | | | | | | | | | [WIP] Run all CI builds with -j 2
| | | | * | | [PR #3339] Updates for that failedMats Wichmann2019-04-017-27/+30
| | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the build with everything-CI-j2 triggered a couple of test fails, include the patches for open-file warnings in those test areas in the hopes it will help. Signed-off-by: Mats Wichmann <mats@linux.com>
| | | * | | Merge branch 'master' into java-versWilliam Deegan2019-04-221-6/+6
| | | |\ \ \
| | | | * | | Issue #3350 - Refactor EnvironmentError to SConsEnvironmentError to avoid ↵William Deegan2019-04-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | overriding python's native EnvironmentError
| | | * | | | Move the jdk-version-glob test to unit testsMats Wichmann2019-04-171-94/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-141-0/+6
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| | * | | | [PR #3337] clean up lex and yacc toolsMats Wichmann2019-04-131-1/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| | * | | 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
|/ / /
* | | 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
|/ /
* | [PR #333] close files to avoid scons-time racesMats Wichmann2019-03-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-291-1/+0
| | | | | | | | | | | | | | | | | | | | 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>
* | Add test to check if installed sdk version is supportedWilliam Deegan2019-03-181-0/+66
| |
* | Merge pull request #3318 from mwichmann/fedora-rpcWilliam Deegan2019-03-121-0/+8
|\ \ | | | | | | rpcgen test accomodate distros using tirpc
| * | rpcgen test accomodate distros using tirpcMats Wichmann2019-03-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fedora since 28 has removed SunRPC support from glibc and switched to using tirpc. Adjust a test to accomodate the new usage - adds an include path and if configure check passes, add libtirpc to link. This is a test-only change. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | Fix issue #2799 - Get mingw tool to respect SHCCCOMSTR, SHLINKCOMSTR and ↵William Deegan2019-03-115-0/+76
| | | | | | | | | | | | LDMODULECOMSTR
* | | Merge pull request #3316 from mwichmann/pypy-syntaxWilliam Deegan2019-03-072-2/+2
|\ \ \ | |_|/ |/| | [PYPY] adjust two expect strings for PyPy msgs
| * | [PYPY support] adjust two expect strings for PyPy msgsMats Wichmann2019-03-032-2/+2
| |/ | | | | | | | | | | | | | | To help support pypy, two test expect-strings are adjusted to accept either the error message from CPython ("Syntax error: invalid syntax") and from PyPy ("Syntax error: Unknown character"). Signed-off-by: Mats Wichmann <mats@linux.com>
* | Fix logic in test to only use --wincompat if win_flex. Improve test skip ↵William Deegan2019-03-032-3/+4
| | | | | | | | messaging