summaryrefslogtreecommitdiffstats
path: root/test/fixture
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4174 from jcbrill/jbrill-msvc-batchargsWilliam Deegan2022-07-254-1/+49
|\ | | | | MSVC enhancement to add all remaining msvc batch file command-line options as SCons variables
| * minor formatting updatesWilliam Deegan2022-07-253-2/+5
| |
| * Modify msvc_query_version_toolset when version is None to use default ↵Joseph Brill2022-07-101-0/+15
| | | | | | | | version. Add additional tests.
| * Rework version convenience functions. Add additional tests.Joseph Brill2022-07-092-0/+30
| |
| * Rename msvc functions for consistency. Make additional msvc functions and ↵Joseph Brill2022-07-051-1/+1
| | | | | | | | exceptions available via MSCommon module.
| * Fix msvc notfound policy module path for testJoseph Brill2022-06-201-1/+1
| |
* | Add lex/yacc filegen consvarsMats Wichmann2022-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | lex and yacc tools both got two new construction variables for specifying side-effect creation of additional files, this method avoids the user embedding the options in LEXFLAGS and YACCFLAGS - the latter lets the commands generate the files, but the paths would not be properly relocated by SCons, so if the build was initiated in a subdirectory, the generated files would go into the top directory instead. Fixes #4154 Signed-off-by: Mats Wichmann <mats@linux.com>
* | Improvements to lex and yacc toolsMats Wichmann2022-06-301-1/+30
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | The mocked tools mylex.py and myyacc.py now understand the file-generation options, and generate a dummy file with predictable contents, for checking. This allows more testing of the path through the SCons support for these two without needing live commands. New tests added which invoke the file-generation options, and make sure the extra files are created, and that SCons detects and tracks the added targets. Work is done in a subdirectory, which exposes some existing known inconsistent behavior (the regular generated file goes in the subdir per the LEXCOM and YACCOM generated line, while the ones generated from commandline options go in the topdir) - but we're going to allow that behavior to continue for backwards compat. Same fix applied to yacc tool that PR #4168 did for lex - do subst_list() instead of subst() to preserve spaces in paths. That fix left the lex tool unable to pass the new test, as it could not see the individual arguments in the FLAGS variable, which was solved by indexing into the subst'd list so we can iterate over the args again. Test and tool cleanup; add DefaultEnvironment calls, etc. Note this mentions, but does not address the problem described in issue 4154. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix tool name in test fixtureJoseph Brill2022-05-161-1/+1
|
* Replace msvc_exists in tools exists functions for msvc tools with ↵Joseph Brill2022-04-262-0/+3
| | | | 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.
* Raise MSVCVersionNotFound exception instead of returning an empty/undefined ↵Joseph Brill2022-04-123-1/+28
| | | | 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.
* flake8: remove unused import in test fixtureMats Wichmann2022-01-191-1/+0
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* A bit more test fixture workMats Wichmann2022-01-196-25/+74
| | | | | | | | | | | | mylex.py is now a general fixture Some of the existing fixtures had a bit more cleanup. the unneeded mylink_win32.py is dropped (only referenced by a test which already skips on win32, and the general mylink.py covers the win32 case anyway). Signed-off-by: Mats Wichmann <mats@linux.com>
* Drop an unused import - sider complaintMats Wichmann2022-01-171-1/+0
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Massage test fixtures a bitMats Wichmann2022-01-175-46/+67
| | | | | | | | | | | | | | | | | | To avoid double loops, a couple now use fileinput module. CC and CXX tests switch to using general mylink.py fixture instead of locally defined linker script. This did mean that the marker for the mock linker that the script removes had to be harmonized as #link - some were using /*link*/. Could not switch CC/CXX to use the general mycompile.py mock compiler due to difference in intent: mycompile.py is intended to plug in as a *COM variable, which means the whole cmdline is in the caller's control. mycc.py is intended to plug in as CC and mycxx.py as CXX, which means standard os-dependent construction vars will be passed via the default CCCOM and CXXCOM and have to be handled. Signed-off-by: Mats Wichmann <mats@linux.com>
* [ci skip] Fix flake8 warnings, add description to CHANGES.txtAdam Gross2020-11-171-3/+3
|
* Fix tests, implement smarter version of scannerAdam Gross2020-11-175-0/+7
|
* Added TEMPFILEDIR to allow configuring where TEMPFILEMUNGE create's it's ↵William Deegan2020-07-111-0/+2
| | | | temporary files
* Swap the argument order for DummyVsWhere to match the signature of ↵Joseph Brill2020-06-271-1/+1
| | | | find_vc_pdir_vswhere in vc.py.
* [appveyor skip][travis skip] fix sider warningWilliam Deegan2020-06-151-0/+3
|
* [appveyor skip][travis skip] fix sider warningWilliam Deegan2020-06-151-3/+3
|
* Fix fake mylink.py was broken on win32.William Deegan2020-06-141-12/+37
|
* [skip appveyor] [skip travis] resolve sider complaints in test fixturesWilliam Deegan2020-05-221-3/+3
|
* resolve sider complaints in test fixturesWilliam Deegan2020-05-222-6/+6
|
* address sider issuesWilliam Deegan2020-05-191-1/+0
|
* more test updatesWilliam Deegan2020-05-193-39/+33
|
* extract fake gcc and link python scripts to fixture. We'll use these for ↵William Deegan2020-05-192-0/+17
| | | | CompilationDatabase tests
* Resolve issue #3605. Allow specifying VSWHERE to environmentWilliam Deegan2020-04-101-1/+1
|
* [PR #3554] restore wrapper.py for former stateMats Wichmann2020-02-131-2/+2
| | | | | | Changes didn't work on Windows. Signed-off-by: Mats Wichmann <mats@linux.com>
* test cleanups: use harness pythonMats Wichmann2020-02-125-12/+12
| | | | | | | | | | | | | | | | | | | | In a few places, a command line was built to execute a wrapper script written in Python, but the Python used was not the one used to invoke the test run (which is made available by TestSCons), but the result of running test.where_is('python'). On a system which still has the thing named 'python' resolve to Python 2, this fails, through no fault of scons itself. The two fixture wrapper scripts used occasionally by the tests used subprocess.call; this is considered "old" though not marked as deprecated at this time. Switched to subprocess.run. See: https://docs.python.org/3/library/subprocess.html#older-high-level-api One of these scripts was doing unnecessary bytes-twiddling. Modernized the inline myswig.py script (in test/SWIG/SWIG.py). This script was reformatted using Black along the way. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add sconstest.skip files and improve test-framework.rst docs in that areaAdam Gross2019-10-257-0/+0
|
* Convert PythonTests to use directory fixtureAdam Gross2019-10-2424-0/+12
|
* Move SConstruct from test to file fixtureWilliam Deegan2019-10-111-0/+3
|
* Merge pull request #3345 from mwichmann/py38warns4-testsWilliam Deegan2019-04-285-49/+84
|\ | | | | [wip] Py38warns4 tests
| * [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-254-11/+12
| | | | | | | | | | | | | | 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>
* | 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
* Add test for GH Issue #3303William Deegan2019-02-271-0/+4
|
* add sconstest.skip for test fixturesDaniel2019-02-051-0/+0
|
* fix for case where nothing is return from vswhereDaniel2019-02-052-0/+22
|
* Fix to write string as bytesWilliam Deegan2018-11-021-1/+1
|
* Fix m4.py test on windowsWilliam Deegan2018-11-011-1/+1
|
* removed b from file open py2/3William Deegan2017-03-131-1/+1
|
* copied old wrapper logic from java tests.William Deegan2017-03-131-0/+7
|
* Moved common my<xxx>.py functions to global fixture and resolve byte/str.William Blevins2016-10-032-0/+15
|
* Moved fixture directory under #test.William Blevins2016-09-243-0/+37