summaryrefslogtreecommitdiffstats
path: root/test/Scanner
Commit message (Collapse)AuthorAgeFilesLines
* Fix sider issuesAdam Gross2020-11-172-3/+3
|
* Fix all testsAdam Gross2020-11-173-8/+16
| | | | This change fixes all tests. It's still a a WIP change because I think the "imports" logic is wrong for file imports.
* [ci skip] Some fixes to the Python scanner and testAdam Gross2020-11-171-1/+1
|
* [ci skip] Cancel test runs because my tests don't workAdam Gross2020-11-161-1/+1
|
* Fix up scanner a bitAdam Gross2020-11-161-1/+1
| | | | Tests still break
* Some initial fixesAdam Gross2020-11-162-4/+4
|
* Remove exception from script.pyAdam Gross2020-11-131-2/+0
|
* Change test to follow its own instructionsAdam Gross2020-11-131-4/+2
|
* First draft of teaching Python scanner about dynamic filesAdam Gross2020-11-136-0/+64
|
* Run autoflake on codeMats Wichmann2020-09-211-1/+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>
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-1/+1
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* test: Fix SyntaxWarnings on escapes in Python stringsMats Wichmann2019-09-1310-26/+26
| | | | | | | | | | | | | | | | | | This is the remaining batch of SyntaxWarning cleanups in the test/ directory, as flagged by Python 3.8 (now tested with 3.8.0b4). Most of these are escapes in strings that are not recognized as Python-language escapes up front, due to the embedded nature of testing - tests write a string to a file which is actually Python (code or sconscript) which is later to be executed. Also changed the timestamp-fallback test to eliminate an imp module DeprecationWarning: since in all supported Python versions haslib is stdlib, drop that skip check; the md5 skip check can be a simple import now. My test runs with 3.8 show no SyntaxWarnings after this. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-2510-54/+59
| | | | | | | 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>
* use absolute python path in sheabangsPaweł Tomulik2018-10-221-3/+4
|
* Correct sheabangs in code snippets under test/Paweł Tomulik2018-10-221-2/+3
|
* Change bug references from tigris -> githubMats Wichmann2018-04-241-1/+1
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix tests which break when using print() and no from __future__ import ↵William Deegan2017-09-252-2/+2
| | | | print_function under python 2.7 because the print('a','b') effectively becomes printing a tuple which doesn't match the expected strings
* py2/3 fix win32 py27 failures. Also resolve some py3 failuresWilliam Deegan2017-03-204-29/+32
|
* py2/3 fix rb/wbWilliam Deegan2017-03-203-9/+9
|
* Merged in bdbaddog/scons (pull request #419)William Deegan2017-03-191-39/+42
|\ | | | | | | More py2/py3 fixes.
| * Allow whitespace after include file name in regex. This resolves issue ↵William Deegan2017-03-191-5/+4
| | | | | | | | running with py3 on win32 (which was adding carriage returns. Remove replacing new line with cr/lf in test.must_match, this was an incorrect path to fix the test failing on win32 py3
| * incremental checkinWilliam Deegan2017-03-171-45/+41
| |
| * scanner.py works for win32 py27, but fails py3William Deegan2017-03-141-4/+12
| |
* | Fix bytes issues to fix test on Python 3.Craig Rodrigues2017-03-141-1/+3
|/
* py2/3 add mode=r to must_match to fix win32 py27,py3William Deegan2017-03-144-22/+22
|
* py2/3 byte fixesWilliam Deegan2017-03-134-13/+13
|
* Fixed print()'sWilliam Deegan2016-05-091-2/+2
|
* Fixed print()'sWilliam Deegan2016-05-091-2/+2
|
* Fixed print()'sWilliam Deegan2016-05-091-2/+2
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-243-1/+111
|\
| * Issue 2264: Removed redundant SCANNER_HINT for preference of SCANNERS.William Blevins2015-08-071-15/+6
| | | | | | | | | | Also possibly SCons.Tool.SourceFileScanner (global only). Updated test to reflect with case using SCANNERS plus root node default.
| * Issue 2264: Added test for SCANNER_HINT support, plus bug fixes.William Blevins2015-06-301-0/+119
| |
| * Issue 2264: Updated behaviour when scanning included dependencies for nodes ↵William Blevins2015-06-301-7/+7
| | | | | | | | without scanner_key mappings.
| * Issue 2264: Updated tests to reflect Node changes.William Blevins2015-05-182-7/+8
| |
| * - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-261-1/+0
| | | | | | | | - memoizer subsystem now uses decorators instead of the metaclass approach
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-1/+1
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * Expand references to tigris.org bug trackeranatoly techtonik2014-05-281-1/+1
| |
* | More __cmp__ to __eq__ (and __lt__). Resolved some UnboundLocalErrors after ↵Stefan Zimmermann2014-03-311-2/+2
| | | | | | | | except.
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-10/+10
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-5/+5
|/
* Issue 2647: In Executor.Null.get_all_children(), really return all ofSteven Knight2010-06-151-2/+9
| | | | the children, including the explicit dependencies, not just the sources.
* Convert old-style classes in Scanner/*.py modules to new-style classes.Steven Knight2010-05-161-16/+31
| | | | Ripple effect to fix monkey-patching in test/Scanner/generated.py.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-45/+3
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-1/+1
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-272-6/+2
| | | | | | | | | | | | | | | Applied a number of idiomatic changes. Uses of the 'sort()' method were converted into calls of 'sorted()' when possible and the sorted() expression was inserted into a subsequent statement whenever that made sense. The statement 'while 1:' was changed to 'while True:'. Names from the 'types' module (e.g., 'types.FooType') were converted to the equivalent build-in type (e.g., 'foo'). Comparisons between types were changed to use 'isinstance()'.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-255-29/+21
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Merged revisions 4645,4647-4651,4654-4656 via svnmerge fromSteven Knight2010-02-051-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/pending ........ r4648 | managan | 2010-01-22 09:40:52 -0800 (Fri, 22 Jan 2010) | 9 lines Added dismbiguate calls on a targets side effects in the make_ready_all and make_ready_current routines of Taskmaster.py. This fixes Stefan Hepp's problem with latex. Directories to hold the side effect files were not created when using variantDir with duplicate=0 Modifying subdir_variantdir_include2.py to run scons with an explicit target to reveal this problem. ........ r4654 | stevenknight | 2010-01-27 07:41:01 -0800 (Wed, 27 Jan 2010) | 5 lines Issue 2534: fix Scanners' default ability to return Dir nodes by making the default node_class the real SCons.Node.FS.Base class, not SCons.Node.FS.Entry (which is now, and has been for some time, a subclass). ........
* Fix handling of both UTF_16_LE and UTF_16_BE. Add an actual test forSteven Knight2009-03-021-0/+319
| | | | | scanning Unicode files for implicit dependencies. Clean up how we handle decoding, and wrap it for earlier Python versions.
* Remove more unnecessary imports from test scripts.Steven Knight2009-02-111-5/+0
|
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-0912-0/+72
|