summaryrefslogtreecommitdiff
path: root/test/Configure
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'upstream/master' into ↵William Deegan2023-01-281-1/+5
|\ | | | | | | fix_configure_marking_up_to_date
| * Small cleanup in BoolVariable [skip appveyor]Mats Wichmann2022-10-221-1/+5
| | | | | | | | | | | | | | | | | | For consistency, have BoolVariable usage use True and False instead of 0 and 1 - mainly this is tests and doc examples. Reformatted a few embedded test files. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Add comments to code and DefaultEnvironment() with no tools loaded for testWilliam Deegan2023-01-281-0/+1
| |
* | make sure config=force doesn't cause rebuildDaniel Moody2022-05-261-6/+10
| |
* | small optimizationsDaniel Moody2022-05-261-6/+6
| |
* | update test to test real source with no depsDaniel Moody2022-05-263-3/+15
| |
* | update conftest_source_file test to make sure subsequent builds don't rebuildDaniel Moody2022-05-251-0/+4
| |
* | Fix for #2757, non conftest nodes involved in configure checks now get node ↵Daniel Moody2022-05-255-0/+64
|/ | | | info cleared after check.
* 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.
* 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.
* One f-string got away!Jacob Cassagnol2021-11-091-1/+1
|
* Fixing slider issues identified:Jacob Cassagnol2021-11-091-1/+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-094-5/+44
| | | | | | | | | | | | | | | 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.
* fixed minor issues related to is_conftest for PRDaniel Moody2021-07-202-6/+5
|
* fixed sider complaintDaniel Moody2021-07-201-1/+1
|
* make sure multi target and intermediate SConf files are mark is_conftestDaniel Moody2021-07-203-0/+72
|
* Run autoflake on codeMats Wichmann2020-09-212-2/+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>
* Remove verbose_set calls from testsMats Wichmann2020-03-183-3/+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-204-17/+8
| | | | | | | | | | | | | | | 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>
* Updated error message per sugguestion by mwichmannWilliam Deegan2020-02-161-1/+1
|
* Fix Issue #2904 - add useful error message when more than one Configure() ↵William Deegan2020-02-152-0/+62
| | | | contexts are opened
* Remove unused fixture SConsctruct.2William Deegan2020-02-041-45/+0
|
* New test. Fixes Issue #3469William Deegan2020-01-301-0/+94
|
* Updated to expected configure context temporary and generated files to match ↵William Deegan2020-01-304-6/+7
| | | | 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-26/+43
|
* Updated TestSCons and test/Configure/option--config.py to work with new ↵William Deegan2020-01-221-42/+83
| | | | configure temporary file naming via content and action hash
* possible second test for issueWilliam Deegan2020-01-211-0/+44
|
* Add base files for new testWilliam Deegan2020-01-213-0/+25
|
* syntax fixups suggested by PyCharmMats Wichmann2019-12-231-1/+1
| | | | | | | | | | | | | | 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>
* test whether CheckFunc properly detects memmoveJacek Kuczera2019-10-061-11/+16
|
* Use "in" in preference to string find methodMats Wichmann2019-08-301-1/+1
| | | | | | | | In places where only the found/not found status is needed, use the membership operator (in) for checks instead - makes for easier reading and is considered faster for shorter strings. Signed-off-by: Mats Wichmann <mats@linux.com>
* Remove reference to DeciderNeedsNode from test. Logic still needed to test ↵William Deegan2019-07-241-2/+0
| | | | GH Issue #3303
* [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-253-11/+13
| | | | | | | 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>
* Add test for GH Issue #3303William Deegan2019-02-271-0/+10
|
* 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
* Replace all instances of `int main()` with `int main(void)`Jonathon Reinhart2018-02-118-10/+10
|
* Change checkLogAndStdout() call to use boolean flag instead of 0/1 for clarity.William Deegan2017-04-031-1/+1
|
* fix py2/3 mode=r and/rb, and remove native line ending translation. fixes win32William Deegan2017-03-142-17/+17
|
* py2/3 remove code to handle dblite changing sconsigfile nameWilliam Deegan2017-03-131-1/+1
|
* added TestSCons.unlink_sconsignfile(name) method to append .p3 to expected ↵William Deegan2017-03-131-1/+1
| | | | file name on py3. about 10 tests need to be changed to use this
* py2/3 mode=r on test.read()William Deegan2017-03-131-2/+2
|
* Use print() function. Fixes py2/3Craig Rodrigues2017-03-111-1/+3
|
* Commit resolved conflicted merge.Russel Winder2016-04-102-3/+3
|\
| * Fix for backslash being treated as an escape characterThomas Tanner2016-01-302-3/+3
| | | | | | | | | | On my windows system, my python is in c:\apps\32\python. Theres a lot of places where that \32 gets turned into an ascii character and the unit tests don't run.
* | Some more print statements to functions.Russel Winder2016-01-012-2/+2
| |
* | Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-1/+1
|\ \ | |/
| * Fixed or skipped tests that fail on Windows.Gary Oberbrunner2014-08-211-1/+1
| | | | | | | | | | Mostly just per-test changes, but also made match_re strip out CR (\r) chars at end of lines to make Windows match properly.
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-0/+85
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * added test case for the SConf.Streamer issueptomulik2014-04-091-0/+85
| |