summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [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
* | fix typo in skip_testWilliam Deegan2019-03-031-2/+2
| |
* | Add test to cover this issue with MD5-timestamp decider breaking ↵William Deegan2019-03-035-0/+122
|/ | | | dependencies only on windows when one generated souce implicitly depends on another generated source.
* Add support for usign chocolatey install winflexbison package with tools ↵William Deegan2019-03-032-6/+4
| | | | named win_bison
* Merge pull request #3290 from dmoody256/make_lex_tool_cross_platformWilliam Deegan2019-03-038-20/+202
|\ | | | | Add windows default paths to lex tool
| * add win_flex as option for windows, add choco default path, and add flag for ↵Daniel2019-02-207-30/+200
| | | | | | | | nounistd on windows. also more testing
| * add check for tar before trying to run testDaniel2019-02-161-0/+4
| |
| * update lex tool to find paths on windowsDaniel2019-02-161-5/+13
| |
* | Merge pull request #3320 from mwichmann/test-file-closingsWilliam Deegan2019-03-034-38/+37
|\ \ | | | | | | [PYPY] [PY 3.8] more context manager use in tests
| * | For PR #3320 re-unindent expect strings in with blockMats Wichmann2019-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Previous change created a with: block but accidentally indented two literal strings used as the expected stderr, causing them to no longer match; these are restored to original state. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | [PYPY] [PY 3.8] more context manager use in testsMats Wichmann2019-03-024-41/+40
| | | | | | | | | | | | | | | | | | | | | | | | Similar to #3319, add additional use of context managers inside written tests. Fixes som PyPy3 fails and quiets matching warnings from Python 3.8. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | [PYPY3] [PY 3.8] CacheDir tests use context managersMats Wichmann2019-03-0213-58/+70
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3.8 complains about unclosed files on nearly all of the CacheDir tests. PyPy3 fails 8 of the 20 tests for the same reason, though since it's based on an earlier version of Python (3.5 at the moment) it does not display the resourcewarning messages. Update sequences of open().write() which are the primary problem area to use context managers for automatic closing, and for consistency, the rest of the open/read/write stuff as well. With this change, all these tests pass in PyPy3. Python 3.8 does not, as it is spewing other warning messages which also end up in the stderr, which is fatal to this set of tests, but it has quieted the warnings from the CacheDir tests themselves. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3314 from mwichmann/runtest-no-ttWilliam Deegan2019-03-0116-30/+50
|\ \ | | | | | | for #3304: drop use of -tt if py3
| * | [WIP] for #3304: drop use of -tt if py3Mats Wichmann2019-03-0116-30/+50
| |/ | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #3313 from ↵William Deegan2019-02-282-0/+14
|\ \ | |/ |/| | | | | bdbaddog/fix_gh_3303_force_config_alters_env_decider Fix issue #3303 - --config=force overwriting environment passed to Configure()
| * Add test for GH Issue #3303William Deegan2019-02-272-0/+14
| |
* | Merge pull request #3270 from dmoody256/mingw_link_issueWilliam Deegan2019-02-151-0/+102
|\ \ | | | | | | Mingw link issue
| * \ Merge remote-tracking branch 'origin/master' into mingw_link_issueDaniel2019-02-086-64/+139
| |\ \
| * | | switch to 32 bit mingw in appveyor and add mingw env testDaniel2019-02-081-0/+102
| | | |
* | | | Clean up some tests: use context managersMats Wichmann2019-02-1414-32/+57
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Add textfile tool to defaultsMats Wichmann2019-02-081-1/+3
| |/ |/| | | | | | | | | | | | | | | PR #3242 added the Textfile and Substfile builders to the default builder list (for issue #3147), but didn't finish the job: the textfile tool needs to be added to the default list of tools as well. This time with a testcase that fails if the tool is not added. Minor doc tweak. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3286 from dmoody256/make_m4_test_crossplatformWilliam Deegan2019-02-061-26/+12
|\ \ | | | | | | make M4 test cross platform
| * | update m4 test to use mingw on windows and not pass if m4 doesn't existDaniel Moody2019-02-041-26/+12
| | |
* | | add sconstest.skip for test fixturesDaniel2019-02-051-0/+0
| | |
* | | fix for case where nothing is return from vswhereDaniel2019-02-053-0/+73
|/ /
* | Fix new test binary/text read issue for py3.5+. Changed mode to 'r' as just ↵William Deegan2019-02-021-42/+39
| | | | | | | | plain part of a line
* | Add test to check for configure calling configured decider not handling ↵William Deegan2019-02-021-0/+19
|/ | | | DeciderNeedsNode exception which can be thrown by MD5-Timestamp decider logic
* Add test for TEMPFILESUFFIXMats Wichmann2019-01-162-3/+130
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* merged masterDaniel2019-01-141-0/+49
|\
| * accidently reset changes, so recommitingDaniel2019-01-131-0/+49
| |
* | removed unused imports and other sider changesDaniel2019-01-124-7/+1
| | | | | | | | fixed syntax issue
* | added test for vs 14.1 and checking arm targetsDaniel2019-01-125-0/+456
| |
* | added name for cl.exe and have older versions walk for cl.exeDaniel2019-01-101-4/+3
| | | | | | | | | | | | fixed syntax error removed debug print
* | added support for checking for arm target support, and UWP apps for 2017Daniel2019-01-101-49/+92
| |
* | reverted tests so they can use a default host == target platform for find msvcDaniel Moody2019-01-0911-18/+16
| | | | | | | | fixed some other tests
* | added ability to get vc dir without env (assume host == target) and fixed testDaniel Moody2019-01-091-2/+2
| |
* | use the vcvars batch script to find installed vc'sDaniel2019-01-0911-14/+16
|/
* Update EnsureSConsVersion test expected fail version check from version 3 to ↵William Deegan2019-01-071-1/+1
| | | | version 4
* fix missing code contents that should be included in signature of a function ↵Zachary Tessler2018-12-221-33/+41
| | | | action
* Add APPLELINK_NO_CURRENT_VERSION and APPLELINK_NO_COMPATIBILITY_VERSION to ↵William Deegan2018-12-102-3/+72
| | | | allow user to disable generating either or both -current_version and/or -compatibility_version to the applelink linker. Updates to docs. Add docstrings to generator functions