summaryrefslogtreecommitdiffstats
path: root/test/MSVC
Commit message (Collapse)AuthorAgeFilesLines
* minor formatting updatesWilliam Deegan2022-07-256-30/+25
|
* Add special case for msvc 14.0 and store/uwp specified via script args and ↵Joseph Brill2022-07-184-183/+141
| | | | sdk specified via construction variable or forced. Revise forced default toolset handling (may have passed default toolset as an argument inadvertently). Add more tests.
* Add msvc spectre libs test. Add library path checks to msvc sdk version and ↵Joseph Brill2022-07-173-6/+184
| | | | msvc toolset version tests.
* Rework special case for 9.0 VCForPython handling (vc dir and batchfile ↵Joseph Brill2022-07-141-57/+0
| | | | location). Add additional tests.
* Move individual tests file content into vcTests.pyJoseph Brill2022-07-133-269/+0
|
* Update UtilTests with version components tests and remove separate msvc ↵Joseph Brill2022-07-131-61/+0
| | | | version components test.
* Add additional tests. Remove trailing whitespace.Joseph Brill2022-07-113-57/+1
|
* Local flake8 recommendations.Joseph Brill2022-07-111-1/+0
|
* Fix msvc toolset versions test when not msvc version not installed.Joseph Brill2022-07-102-4/+5
|
* Modify msvc_query_version_toolset when version is None to use default ↵Joseph Brill2022-07-105-4/+186
| | | | version. Add additional tests.
* Move toolset version regexes to utility module. Rename default version method.Joseph Brill2022-07-091-2/+2
|
* Fix sider issues.Joseph Brill2022-07-091-2/+2
|
* Rework version convenience functions. Add additional tests.Joseph Brill2022-07-096-4/+271
|
* Disable cache for MSVC/MSVC_USE_SCRIPT_ARGS test.Joseph Brill2022-07-081-0/+3
|
* Fix sider issues.Joseph Brill2022-07-081-5/+5
|
* Add MSVC_SDK_VERSION tests.Joseph Brill2022-07-083-2/+240
|
* Additional policy tests for coverage.Joseph Brill2022-07-082-0/+25
|
* Add utility function for msvc_version components. Add convenience function ↵Joseph Brill2022-07-072-23/+7
| | | | to return list of installed msvc version component tuples for the test suite.
* Minor update to msvc exceptions and rework new unit tests.Joseph Brill2022-07-073-97/+148
|
* Fix invalid msvc version test.Joseph Brill2022-07-071-3/+2
|
* Return empty list instead of None in msvc_toolset_versions. Expand msvc ↵Joseph Brill2022-07-071-118/+180
| | | | toolset version tests.
* Fix typo in comment and add msvc not found, msvc script error, and msvc ↵Joseph Brill2022-07-073-0/+450
| | | | toolset versions tests.
* Added test for invalid env['MSVC_NOTFOUND_POLICY'] valueWilliam Deegan2022-06-061-0/+10
|
* Merge branch 'master' into jbrill-msvc-warnfixJoseph Brill2022-05-151-0/+76
|\ | | | | | | Manually resolved conflicts in SCons/Tool/MSCommon/vc.py
| * Test MSVCUseSettingsError exception raised for type errorJoseph Brill2022-05-051-0/+8
| |
| * Test that MSVC_USE_SETTINGS empty dictionary produces msvc compiler not ↵Joseph Brill2022-05-051-0/+8
| | | | | | | | found warning
| * Add MSVC_USE_SETTINGS testJoseph Brill2022-05-031-0/+60
| |
* | Update test script header with template/test.py headerJoseph Brill2022-05-151-4/+3
| |
* | Replace msvc_exists in tools exists functions for msvc tools with ↵Joseph Brill2022-04-262-4/+18
| | | | | | | | msvc_setup_env_tool that also registers the tool name. The new function may indicate that the tool should be included even when no instances of msvc are installed. This is necessary for some error checking. Add a tool name argument to msvc_setup_env_once as well. Add default msvc version detection. Add a global and environment local policy variable for handling warnings and/or exceptions: error, warn, ignore. By default warnings are produced. Update tests accordingly.
* | Rework exception message construction when a specified msvc version is not ↵Joseph Brill2022-04-241-1/+1
| | | | | | | | found. Remove exception for default msvc version and adjust test accordingly.
* | Raise MSVCVersionNotFound exception instead of returning an empty/undefined ↵Joseph Brill2022-04-122-3/+82
|/ | | | dictionary when attempting to find a valid msvc batch script. Raise an MSVCVersionNotFound exception when the default msvc version is requested and there are no msvc versions installed. Suppress raising an MSVCVersionNotFound exception during default msvc tool initialization. Add additional tests.
* added test for MSVC_USE_SCRIPT_ARGSWilliam Deegan2022-03-074-0/+56
|
* update copyright blurb to current versionWilliam Deegan2021-11-261-5/+2
|
* Add test to verify script not found exception for msvc script specified via ↵Joseph Brill2021-11-261-0/+53
| | | | MSVC_USE_SCRIPT. Update CHANGES.txt and RELEASE.txt and adjust whitespace.
* Fix variable name (msvs_143 to msvc_143) and minor updates based on slider ↵Joseph Brill2021-10-051-1/+1
| | | | output.
* Merge branch 'master' into jbrill-msvs-2022Joseph Brill2021-10-0514-72/+169
|\ | | | | | | Manually resolve conflict in CHANGES.txt
| * reorg code a bit so MSCommon has some of the logic. Also changed ↵William Deegan2021-09-253-20/+39
| | | | | | | | MSVC/hierarchical.py to use File('StdAfx.pch') Best to start recommending File() or Node from env.PCH() as value for PCH.
| * fix remaining PCH tests.William Deegan2021-09-182-3/+2
| |
| * add test to verify that a generator specified for PCH with returns a false ↵William Deegan2021-09-182-10/+32
| | | | | | | | value will disable PCH being added to compile and link lines
| * update pch_gen test to use non-default names and verify existance of ↵William Deegan2021-09-182-2/+9
| | | | | | | | expected files
| * remove propagating os.environ INCLUDE and LIB from tests. Add comments to ↵William Deegan2021-09-183-8/+8
| | | | | | | | explain how the dir/file fixture in pch_gen's logic is working
| * add logic to ensure PCH is subst() evaluated when it should beWilliam Deegan2021-09-1812-64/+114
| |
* | Add support for Visual Studio 2022Joseph Brill2021-09-231-3/+21
|/
* Add timing of sconsign write if --debugMats Wichmann2021-02-081-4/+4
| | | | | | | | | | | A line is now emitted showing sconsign sync time if --debug=time Some calls to time.time replaced with time.perf_counter, where the objective was to time sections of code (i.e. where there wasn't an actual need to get time-since-epoch) - Python recommends this as getting the best-available timer. Signed-off-by: Mats Wichmann <mats@linux.com>
* Run autoflake on codeMats Wichmann2020-09-214-4/+0
| | | | | | | | | | Eliminate unneeded imports, and a few unneeded statements - usually "pass" where it is not syntactically needed. A couple of import try blocks were eliminated or changed when they're "cannot happen" due to current floor Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* Rework vc.py caching of installed vcs and remove cached_get_installed_vcs ↵Joseph Brill2020-08-071-1/+1
| | | | function. Replace external references to cached_get_installed_vcs with get_installed_vcs. Update CHANGES.txt.
* Add system test for setting and retrieving VSWHEREWilliam Deegan2020-04-232-0/+123
|
* Remove verbose_set calls from testsMats Wichmann2020-03-181-1/+0
| | | | | | | | test.verbose_set() enables verbose mode, can be a useful debugging aid. Shouldn't be left in in production tests, as it creates noise in the test log. Signed-off-by: Mats Wichmann <mats@linux.com>
* rm-py2: Remove "from __future__" from more placesMats Wichmann2020-02-202-8/+4
| | | | | | | | | | | | | | | 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>
* [PR #3538] MSVC UWP test was never updated for 14.2Mats Wichmann2020-02-021-11/+28
| | | | | | | Has been reporting skipped because not supported due to lookup logic in the testcase. Adding. Signed-off-by: Mats Wichmann <mats@linux.com>