summaryrefslogtreecommitdiffstats
path: root/testing
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fixed Docbook Tool and updated its tests.Dirk Baechle2020-06-212-0/+71
| |
| * Added Sphinx support to the 'build' Docker images.Dirk Baechle2020-06-202-7/+2
| |
* | Fix testing subdir usageMats Wichmann2020-06-193-104/+121
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various tests called subdir several times with the same directory, which is pointless. In previous code, this emitted a message though it did not fail. Stop doing that. The dir_fixture() method did some convoluted things to make sure the directories to write to exist, change this around to simplify. The subdir() method already combines the testdir, so dir_fixture doesn't need to. Also handle more cleanly the case of the target directory being an absolute path, which seems to have been intended, but would not work. Also clean up file_fixture() along the same principles. Change the subdir() method to not need to be given an ordered list of directories; instead call os.makedirs on each so intermediate steps are made automatically. Along the way, the print about making a directory that already existed vanishes. Tests which did os.path.join on directory pieces when calling file_fixture no longer do so, since file_fixture (and dir_fixture) do joining on an arg which is a list of paths like many other scons functions. The testing doc was updated to fix some wording and reflect the above changes. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3696 from mwichmann/test-cleanupWilliam Deegan2020-06-154-262/+225
|\ | | | | Cleanups in tests and in framework
| * Cleanups in tests and in frameworkMats Wichmann2020-06-144-262/+225
| | | | | | | | | | | | | | | | | | | | | | | | * Some Py2/Py3 compat blocks were simplified to Py3 only * some sequences of define-cleaup-function + atexit.register were changed to use the decorator (this works if func needs to take no arguments) * Lightly update a bunch of docstrings in TestCmd, and reformat a few places, towards the style we're generally using now. * call_python() in TestCmdTests was modernized to use subprocess.run Signed-off-by: Mats Wichmann <mats@linux.com>
* | Bumped the Fedora version up to 32.Dirk Baechle2020-06-1214-15/+15
| | | | | | | | | | We bump up the Fedora version, since v30 has reached its EOL on 2020-05-26.
* | Moved the Docker files into the testing folder.Dirk Baechle2020-06-1029-0/+659
|/ | | | [ci skip]
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-2/+2
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Some more fixups for project directory movesMats Wichmann2020-05-121-9/+7
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Some more adjustments to doc build [ci skip]Mats Wichmann2020-05-101-3/+3
| | | | | | | | | | other changes due to path changes rewording in doc howto rst check in the doc flow image used by the howto, as it's tricky to generate Signed-off-by: Mats Wichmann <mats@linux.com>
* Use uuid lib for Visual Studio guidsMats Wichmann2020-05-011-1/+1
| | | | | | | | | | | In the Visual Studio area, use uuid (Python standard library) to generate GUID identifiers instead of specifically using md5. Simplifies things as uuid lib can provide already formatted strings of the form that we need. This is split off from PR #3447 by request. Signed-off-by: Mats Wichmann <mats@linux.com>
* drop runntest.py's run from packages. define SCONS_TOOLS_DIR and use that ↵William Deegan2020-04-091-3/+1
| | | | for scons-time tests
* Fix scons-time tests. Remove subversion testWilliam Deegan2020-04-091-4/+4
|
* [PR #3571] more work on testing document [ci skip]Mats Wichmann2020-02-291-175/+174
| | | | | | | | | | | | | Apply some of the ideas of the Python documentation style guide - headings, indents, etc. Fixed some lingering format problems. Add a table of contents (this will work on the wiki as long as we save the copy there in rest format instead of markdown - that is currently the case). Signed-off-by: Mats Wichmann <mats@linux.com>
* Add comments on skipping tests to framework doc [ci skip]Mats Wichmann2020-02-271-4/+27
| | | | | | | | Build up the skipping tests section by adding a bit of discussion on why you'd want to skip, and on not skipping too much by mocking parts of tests and organizing test code. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3571] fix error and improve docsMats Wichmann2020-02-272-50/+53
| | | | | | | | | | | | sider spotted a cut-n-paste error introduced in the PR (srcdir set instead of srcfile) framework doc now uses directory consistently (over folder, which is a desktop concept rather than a filesystem concept) tweaked wording a bit more Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix some test fixture-handling nits.Mats Wichmann2020-02-262-107/+156
| | | | | | | | | | | | | | | | | | | | | | | | dir-fixture() did not concatenate a source list into a path as the testing doc says it should. fix-fixture() did not either, and the doc didn't say so; now it does (docstring and external testing doc). There was a way to slip through both dir_fixtures and file_fixture with the path invalid - if you have fixture dirs defined, and the dir/file is not found in them, you'll come out of the loop set to the last fixture dir and not try the current dir. This doesn't break anything, just leads to a somewhat misleading message if the fixture really isn't found - the traceback indicates the fixture was not found in whatever the last passed-in fixture dir was. Now it looks like it was not found in the source testing dir. The message can still be improved to be more descriptive. A couple of minor Py2 removals. Testing doc didn't mention FIXTURE_DIRS, so this was added. A bunch of other doc fiddling. Signed-off-by: Mats Wichmann <mats@linux.com>
* rm-py2: Remove "from __future__" from more placesMats Wichmann2020-02-207-41/+34
| | | | | | | | | | | | | | | A couple of minor reformats along the way, most prominently, in tests, if being edited anyway, make sure the docstring most tests have is actually the docstring (sometimes the __revision__ line came before, which makes the string not be the docstring). Snuck in some minor framework changes that were orphaned when another draft PR was not needed: this almost all docstring changes, the functional part is using casefold instead of lower in a match func - a slightly better approach which is now possible that Py2 compatibility is not needed. Signed-off-by: Mats Wichmann <mats@linux.com>
* Update TestCommonTests.py to work with py35+ changesWilliam Deegan2020-02-181-23/+25
|
* more unicode cleanup post py27William Deegan2020-02-181-10/+3
|
* Merge branch 'master' into issue-3469William Deegan2020-01-301-0/+3
|\
| * Merge branch 'master' into topic/grossag/pythonscannerAdam Gross2020-01-102-2/+2
| |\
| * \ Merge branch 'master' into topic/grossag/pythonscannerWilliam Deegan2019-12-294-17/+17
| |\ \
| * \ \ Merge branch 'master' into topic/grossag/pythonscannerAdam Gross2019-12-173-4/+4
| |\ \ \
| * \ \ \ Merge branch 'master' into topic/grossag/pythonscannerWilliam Deegan2019-12-011-1/+1
| |\ \ \ \
| * | | | | Add sconstest.skip files and improve test-framework.rst docs in that areaAdam Gross2019-10-251-0/+3
| | | | | |
* | | | | | Improve debug output when configure test fails stdout checkWilliam Deegan2020-01-301-7/+5
| | | | | |
* | | | | | Updated to expected configure context temporary and generated files to match ↵William Deegan2020-01-301-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | new scheme to add contents and action hash to file name to avoid mistakenly reusing the wrong temp file based on changing the order and/or number of the configure tests being run between successive runs
* | | | | | updates to make tests pass on windowsWilliam Deegan2020-01-221-1/+1
| | | | | |
* | | | | | Updated TestSCons and test/Configure/option--config.py to work with new ↵William Deegan2020-01-221-26/+188
| | | | | | | | | | | | | | | | | | | | | | | | configure temporary file naming via content and action hash
* | | | | | PEP8William Deegan2020-01-211-142/+148
| |_|_|_|/ |/| | | |
* | | | | Merge pull request #3515 from bdbaddog/drop_py27_supportWilliam Deegan2020-01-021-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Drop Python 2.7 support on the road to SCons 4.0.0 release
| * | | | | [ci skip] Add logic to know when running in pypyWilliam Deegan2020-01-021-0/+1
| | |_|_|/ | |/| | |
* | | | | Get rid of remaining mktemp callsMats Wichmann2019-12-301-2/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Except for Platform/win32.py, the engine code no longer called insecure/deprecated tempfile.mktemp. That location is now also changed to use better methods. A couple of vestiges of old ways (like in comments) cleaned out. A couple of unit tests also converted - these don't have any impact on the scons engine, of course. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | syntax fixups suggested by PyCharmMats Wichmann2019-12-234-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop unneeded parens. Drop trailing semicolons. Triple double-quote docstrings. Regexes drop unneeded escapes. Spaces around parens, braces: remove/add. Some one-tuples get their missing closing comma. A couple of sets use set init syntax {foo} instead of set([iter]) now. And a fiddle in Node to reduce lookup time on md5 signature functions (came about because of a line-too-long issue, initially) Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | checker fixes: None, trailing ws, list initMats Wichmann2019-12-212-10/+10
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | checker-suggested fixes: Mostly, fix remaining instances of comparing none without "is" Some trailing whitespace on lines A couple of instances of list init followed immediately by several appends, turned into a single list init Some double comparisons turned into a single expression Signed-off-by: Mats Wichmann <mats@linux.com>
* | | 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>