summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | allow test to run on all platforms. Clean up sider complaintsWilliam Deegan2022-05-041-5/+0
| | |
| * | optimized testDaniel Moody2022-05-042-18/+2
| | |
| * | fix testDaniel Moody2022-05-042-3/+9
| | |
| * | adding testDaniel Moody2022-05-042-0/+92
| |/
* | remove test clean up callDaniel Moody2022-04-201-1/+0
| |
* | Update ninja file generation to only create response files for build ↵Daniel Moody2022-04-202-0/+113
|/ | | | commands which exceed MAXLINELENGTH
* Fix some more tests to use context-mgr openMats Wichmann2022-03-308-191/+197
| | | | | | Fiddled formatting a bit. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge branch 'master' into ninja_scons_daemonWilliam Deegan2022-03-287-2/+166
|\
| * Separated just the CheckMember() checker from yuzhicang's PR #4100, changed ↵William Deegan2022-03-211-2/+14
| | | | | | | | code to have same return values as rest of checkers, updated test to work with that.
| * Merge branch 'master' into fix_ninja_mingwWilliam Deegan2022-03-084-0/+56
| |\
| | * added test for MSVC_USE_SCRIPT_ARGSWilliam Deegan2022-03-074-0/+56
| | |
| * | fix a few typos and add tests backDaniel Moody2022-02-262-0/+96
| |/
* | Merge branch 'ninja_scons_daemon' of github.com:dmoody256/scons into ↵William Deegan2022-03-191-4/+6
|\ \ | | | | | | | | | ninja_scons_daemon
| * | adjust iterative speedup to pre-launch scons daemon before taking timingDaniel Moody2022-03-151-4/+6
| | |
* | | flake8 fixesWilliam Deegan2022-03-192-3/+3
|/ /
* | update test/ninja/force_scons_callback.py to test using ↵William Deegan2022-03-142-31/+37
| | | | | | | | NINJA_SCONS_DAEMON_PORT to explicitly set the daemon port
* | add scons daemonDaniel Moody2022-02-111-2/+2
|/
* Merge pull request #4093 from mwichmann/testing/more-javaWilliam Deegan2022-02-0722-107/+116
|\ | | | | Tweak Java e2e tests some more
| * Tweak Java e2e tests some moreMats Wichmann2022-02-0222-107/+116
| | | | | | | | | | | | | | | | Formatting of embedded test scripts Extract myrmic.py to fixture dir Some more DefaultEnvironment and tools limiting for performance Signed-off-by: Mats Wichmann <mats@linux.com>
* | Tweak the scons help messageMats Wichmann2022-02-0312-52/+44
|/ | | | | | | | | | | | | Processing changed a bit - some lines can now be joined instead of split (if the usage part is short so the combination will still fit). Dropped the "Ingored for compatibility" chunk from the printout. The usage: message was changed as it didn't mention variables. A number of tests expected the exact value of that line, and so were updated. Updated docstrings (for the API docs). Signed-off-by: Mats Wichmann <mats@linux.com>
* Fixup DummyPopen() ( which is returned from Action._subproc() when ↵William Deegan2022-02-011-4/+3
| | | | subprocess.POpen() errors) so that it can also be used as a context manager. This is part of fixing Python 3.9(+) outputing warnings when file/other handles aren't properly closed.
* Merge branch 'master' of github.com:SCons/scons into fix_py_3_9_resourceWarningsWilliam Deegan2022-02-0130-650/+584
|\
| * Java not-in-path tests use limited toolsMats Wichmann2022-01-282-4/+7
| | | | | | | | | | | | | | | | | | There's no reason for these tests to initialize all tools since only checking for one. During development of unrelated PR #4088 these two failed initializing gcc tool - might as well run as lean as possible. Signed-off-by: Mats Wichmann <mats@linux.com>
| * Actually commit fixed myjava.py [skip appveyor]Mats Wichmann2022-01-241-1/+0
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * A little java/jar cleanupMats Wichmann2022-01-246-209/+159
| | | | | | | | | | | | | | | | | | | | | | | | * The Jar test is split into requires-jdk and not. * Move some inline tool definitions to fixture files. * Reformat some stuff. * Some linting and commenting in Jar tool. * Enabled test for a non-java file when Jar source is a directory (was commented out) - needed to add a Command to copy the file to the directory where the class files were generated. Signed-off-by: Mats Wichmann <mats@linux.com>
| * 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-1913-179/+154
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Also move CC and CXX mock compiler to fixtureMats Wichmann2022-01-186-94/+113
| | | | | | | | | | | | | | | | | | CC/CC.py uses a local mycc.py and CXX/CXX.py uses a local myc++.py. These could not be replaced by mycompile.py because theu usage model is different, but these two are moved to a local (to the test) fixture directory instead of being inline. 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-1711-221/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | address a number of ResourceWarning: unclosed file <_io.TextIOWrapper ↵William Deegan2022-01-232-6/+15
|/ | | | name='progress.out' mode='w' encoding='UTF-8'> type warnings which are issued when running tests with python 3.9
* Followon test fix for PR #4067Mats Wichmann2021-11-262-8/+6
| | | | | | | | | | | | | There was another hole in the tests after updating them, which was missed locally because the local test machines took the "skip for external reasons" path, and didn't actually run the test that failed. *Any* SCons test path starts with the value of %TEMP%, which by default is "C:\Users\something\AppData\Local\Temp". If not entered as a raw string, that's a unicode escape starting with the 3rd char, and leads to a decode error. I somehow uncovovered one of those that wasn't protected as a rawstring. Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #4067 from mwichmann/wintweaksWilliam Deegan2021-11-265-88/+140
|\ | | | | Fix tests to not hang on Windows with bad .py assoc
| * Fix test syntax error, update CHANGES/RELEASEMats Wichmann2021-11-261-2/+2
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Fix one new sider problem and a syntax errorMats Wichmann2021-11-262-2/+2
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Fix sider complaints and add missed CHANGES.txt updateMats Wichmann2021-11-265-27/+53
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Fix tests to not hang on Windows with bad .py assocMats Wichmann2021-11-265-77/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For systems where the association for .py files is not to an actual Python interpreter, those few cases where we need to run a Python script directly as a program don't work. This could be because the association was never set up, or because some other program (e.g. Visual Studio Code) has taken it over. In some cases may appear to "hang" because the alternate program is waiting for user interaction runtest.py now has a mechanism to check (thanks to Brett Cannon for providing this incantation). It isn't super precise (looks for the substring "py" in the queried association), but should work out. It sets an environment variable which the test framework can read and as a result set a flag which individual tests can read. Two tests in scons-time which had previously been set to skip-if-win32 now look at this flag instead. Three tests in sconsign now also look at this flag. This allows a clean run on my dev box with VS Code having taken over the .py association. Various things can break if the environment used to fire off Windows processes doesn't contain %UserProfile%. Added this to the short list of passthrough env vars. Apparently an environment without this value is now considered invalid (it blew up the erroneously launched VS Code, but we've apparently been lucky it hasn't blown up more things - believe there was also a report of a problem with the Visual Studio setup scripts). A little extra cleanup: - a couple of Py2-isms were cleaned out (Script/Main.py and in the test framework) - The paths to look for site-scons were rewritten (part of this was another Py2-ism), and the system path changed a bit - the old path is still checked, and the manpage updated to reflect this. - runtest.py dropped the unused whereis functions. - the three sconsign tests now use f-string formatting, mostly as an experiment to see how easy it is to convert. Fixes #4053 Signed-off-by: Mats Wichmann <mats@linux.com>
* | 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.
* Merge pull request #4047 from jcassagnol-public/compile-with-fips-enabledWilliam Deegan2021-11-1625-153/+272
|\ | | | | Fix tests to work with FIPS enabled
| * Two more f-strings got away.Jacob Cassagnol2021-11-101-2/+2
| | | | | | | | These lines setup the sconsign program to use the correct filename for the test.
| * Normalized all sconsfiles and sub-sconsfiles to use algorithm if not ↵Jacob Cassagnol2021-11-1015-95/+122
| | | | | | | | | | | | | | | | | | defaulted to md5. Dir search now excludes all types of sconsfiles that are now created. Environment now defaults to the current scons filename instead of .sconsfile Sconsign now has a function used by a lot of code that gets the default sconsign filename Any tests referring to .sconsfile have now been changed, including one old legacy test.
| * One f-string got away!Jacob Cassagnol2021-11-091-1/+1
| |
| * Fixing slider issues identified:Jacob Cassagnol2021-11-092-2/+1
| | | | | | | | | | | | | | | | | | | | The linter identified that warnings was unused in hash-format.py The linter found that the skip_test function call was using 2 space indentation (not sure how I managed to do that). Warning was originally added as hash-format gave a warning on ALLOWED_HASH_FORMATS != default That was changed to instead test the different cases directly. option--config.py skips the test if the default algorithm is not MD5 as the hashes used are OS-specific, and supporting it in FIPS mode would be difficult. It's better to just skip this testcase in FIPS mode instead as this specific test is different in that regard to the other FIPS-enabled tests.
| * Tests pass in python 3.6 and 3.9 in LinuxJacob Cassagnol2021-11-0910-55/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified failing tests to use the new defaulted .sconsign database based on the hash algorithm For MD5, default database will be .sconsign.dblite For other algorithms the default will be .sconsign_<hashname>.dblite. For all cases where the user changes the hash algorithm used, the database will be .sconsign_<hashname>.dblite (including md5) For sub-scons directories it remains as .sconsign Also added unit-tests for Util.py for the new hash default changes. It's difficult to setup a fips-compliant platform using containers, and instead we mock that. option--config uses multiple types of hash algorithms so was skipped. Removed one f-string (python 3.5 doesn't support those) Corrupt.py is using an explicit .sconsign so that was left as-is, and only the parent default .sconsign was changed for work test 1. A fetch-database name option was added to the testing framework. The unlink_sconsignfile was not updated as no usages of it were found.
| * Half the failing testcases fixed.Jacob Cassagnol2021-11-015-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Still failing on: SCons/UtilTests.py test/Configure/ConfigureDryRunError.py test/Configure/implicit-cache.py test/Configure/option--config.py test/option/hash-format.py test/option/option-n.py test/question/Configure.py These tests all have hardcoded md5 sums or use md5 directly Next commit should fix it so the md5-specific tests are skipped if fips mode detected. Also will figure out a way around the hardcoded m5sums.
* | Deprecate the qt tool.Mats Wichmann2021-11-1115-169/+197
| | | | | | | | | | | | | | | | Updates tests to disable the warning that this change enables. Fix runtest.py to make sure -o logging option captures all the output. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge branch 'master' into regenerate-build.ninjaWilliam Deegan2021-11-114-10/+15
|\ \
| * | Skip two scons-time tests on WindowsMats Wichmann2021-11-102-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scons-time tests trying to test the "run" subcommand of scons-time substitute a dummy script named my_python.py for Python. In order for this to work on Windows, the file association chain for .py files has to lead back to an Python interpreter, but we cannot control this - for example, systems with VS Code installed often steals this association in ways that are aren't easy to pre-detect. Note that scons-time itself carfully uses the Python interpreter to launch things so it's not affected by this, it's just the test that tries to mock part of this scheme that has problems. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Fix gcc-version test for WindowsMats Wichmann2021-11-092-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A constructed string containing the Python path wasn't listed as a raw string, which led to a unicode error, because the path string contained a \Users which was misinterpreted as a Unicode escape. Also had left a debug print in a script. Signed-off-by: Mats Wichmann <mats@linux.com>