summaryrefslogtreecommitdiffstats
path: root/test/SWIG
Commit message (Collapse)AuthorAgeFilesLines
* Address PR feedbackWilliam Deegan2021-06-212-21/+8
|
* remove unnecessary python check swig testDaniel Moody2021-01-081-3/+2
|
* 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>
* rm-py2: Remove "from __future__" from more placesMats Wichmann2020-02-202-9/+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>
* [ci skip] fix typoWilliam Deegan2020-02-141-1/+1
|
* [PR #3554] trim unused bits from swig testsMats Wichmann2020-02-133-14/+1
| | | | | | | | | Three files in the previous fix got an added call to pull in the wrapper.py fixture; it turns out they didn't actually use it - appeared in a dummy call to Clone but the cloned env was never used. Drop those bits. Signed-off-by: Mats Wichmann <mats@linux.com>
* test cleanups: use harness pythonMats Wichmann2020-02-124-35/+35
| | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Fix incorrect testing assumptions for SolarisJakub Kulik2019-11-011-0/+2
|
* Tweak a few testsMats Wichmann2019-05-301-2/+2
| | | | | | | | | | | | | "for i in range(len(foo))" idiom changed to iterate directly over lists instead of indexing them. zip() generates the iterator in the case with two lists. reversed() used for the Windows drive-letter test. gdbm is not gone, just renamed. change test to find under either name. Use a context manager for closing StringIO objects opened for capturing standard I/O streams. Signed-off-by: Mats Wichmann <mats@linux.com>
* fix a couple tests broken by binary write in wrapper.py. previously compared ↵William Deegan2018-11-021-1/+1
| | | | against string with native os.linesep
* use absolute python path in sheabangsPaweł Tomulik2018-10-221-2/+3
|
* remove unnecessary sheabangs from scripts generated by end-to-end testsPaweł Tomulik2018-10-221-19/+20
|
* Correct sheabangs in code snippets under test/Paweł Tomulik2018-10-221-3/+3
|
* Additional fixes for SWIG testsMats Wichmann2018-10-162-2/+2
| | | | | | | | | | | | Two tests were missing the raw-string marker when defining the Python include path. TestSCons:get_platform_python_info needed some rework for Windows, it was failing to find the python library if running in a virtual environment. Also removed a try-block; sys.version_info is standard since Python 2.0 and so does not need wrapping. Signed-off-by: Mats Wichmann <mats@linux.com>
* get_platform_python_info fail on missing Python.hMats Wichmann2018-08-1712-24/+24
| | | | | | | | | | evolved the get_platform_python_info test method to fail only if a new flag python_h_required is True. Rolled back the previous change to have the method return the path to the Python.h, this was not really needed since the include path is already returned. Signed-off-by: Mats Wichmann <mats@linux.com>
* Move checking for python header to common locationMats Wichmann2018-08-1512-62/+16
| | | | | | | | | | | A previous change added a check for Python.h in one SWIG test which did not have it which turns that test into a skip instead of a fail if the header is not installed. It was pointed out that having 12 tests check for the same thing might be optimised by putting the check in the routine which returns info about the python development environment, so this change makes that modification. Signed-off-by: Mats Wichmann <mats@linux.com>
* SWIG recursive test checkes for Python.hMats Wichmann2018-08-131-1/+7
| | | | | | | | The generated code will #include <Python.h>, so skip the test if the appropriate development support for Python is not installed, the test will FAIL otherwise. The other SWIG tests do this already. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix for py2.7 + 3.5+William Deegan2018-07-081-0/+1
|
* stop using obsolete distutils.sysconfig to find python include, link ↵William Deegan2018-07-081-2/+3
| | | | paths,and library names. Use sysconfig.get_config_var() calls instead
* pr-3052: moved some 64 bit logic to TestCmd and used TestCmd system checksDaniel Moody2018-05-251-2/+3
|
* pr-3052: Needed to define target arch in the non-windows caseDaniel Moody2018-05-251-1/+3
|
* pr-3052: made target arch transparent to non windows platformsDaniel Moody2018-05-251-3/+3
|
* pr-3052: removed debug print statementsDaniel Moody2018-05-251-2/+2
|
* pr-3052: added a missing comma to the environment argsDaniel Moody2018-05-251-1/+1
|
* pr-3052: Updated swig tool with some default paths and fixed test to build ↵Daniel Moody2018-05-251-11/+33
| | | | on windows.
* pr-3052: updated swig test to work for windows.Daniel Moody2018-05-251-5/+1
|
* fixed swig tests to work on windowsDaniel Moody2018-05-254-8/+19
|
* fix test for osx (with macports only at this point)William Deegan2017-04-181-0/+4
|
* py2/3 fix unnecessary binary reads. pep8 format the file while we're out atWilliam Deegan2017-03-191-9/+10
|
* Use print() function. Fixes py2/3Craig Rodrigues2017-03-111-3/+5
|
* Use print() function to fix py2/3Craig Rodrigues2017-03-101-2/+4
|
* Moved common my<xxx>.py functions to global fixture and resolve byte/str.William Blevins2016-10-032-28/+4
|
* Updating tests to use fixture wrapper.py.William Blevins2016-09-241-6/+1
|
* More test fixes.William Blevins2016-09-212-2/+2
|
* Fixed print()'sWilliam Deegan2016-05-091-9/+9
|
* Merged in williamblevins/scons_20150323 (pull request #244)William Deegan2015-11-131-0/+123
|\
| * Issue 2264: Added SWIG recursive dependency tests.William Blevins2015-05-131-0/+123
| |
* | edit test/SWIG/SWIG.py to covert PR #270Pawel Tomulik2015-10-191-2/+13
|/
* SWIG: improve tool detection, and update SWIG tests to run on Windows.Gary Oberbrunner2014-08-2113-25/+118
| | | | | | | | | The tool detection is improved by checking for swig in env['SWIG'], where it is commonly set, as well as env['ENV']['PATH']. The tests mostly didn't work on Windows. I updated them all. Mostly to build 32-bit extensions when using 32-bit python on Windows, and use .pyd as the python extension on Windows.
* Removed some garbage from tests (found by accident)ptomulik2012-06-181-2/+0
|
* - fixed SWIG module names for generated *.i files (#2707)Dirk Baechle2011-09-071-0/+79
|
* Apply patch from bug 2706 and create testcase to check for whitespace after ↵William Deegan2011-01-241-0/+91
| | | | module name in %module directive
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-247-36/+0
| | | | | | | 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-03-291-1/+1
| | | | | | | | | | | | | The 'buffer' fixer simply replaces 'buffer( ... )' with 'memoryview( ... )', which is incorrect for our cases, so these changes had to be done by hand and a forward-compatibility class added. The 'xrange' fixer was applied. Manual changes were minimal: a few case in test strings and one use of 'range' as an identifer in the same scope as where 'xrange' was converted to 'range'. The "sets15" compat function, which provided backward compatibility for Python versions prior to 2.2, was removed as no longer needed.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-253-6/+4
| | | | | 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.
* Don't hard-code the swig location in the expected output.Steven Knight2009-11-281-11/+7
| | | | Use test.wrap_stdout() instead of hard-coding the SCons messages.
* Fix bug 1944 - handle non-existant .i files when swig emitter is called. ↵William Deegan2009-11-141-0/+102
| | | | Make an educated guess on the generated module name based on the .i file name.
* Solaris test portability fixes.Steven Knight2009-08-031-0/+2
|
* Modify the SWIG tests so that OS X is treated like a UNIX platform (which itGreg Noel2009-04-1811-114/+81
| | | | | | really is). OS X now not only runs all the SWIG tests (it used to skip many of them because it could not find the appropriate files), it now passes all the tests.