summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCmd.py
Commit message (Collapse)AuthorAgeFilesLines
* Initial python3 cut of test/Fortran.William Blevins2016-09-231-5/+5
|
* Allowed for multiple fixture dirs and added default global directory.William Blevins2016-09-231-9/+16
|
* Updating to_str and to_bytes between QMTest and SCons.Util.William Blevins2016-09-211-6/+3
| | | | -Added check to skip decode if already string; otherwise, throws TypeError.
* Fixing QMTest str and bytes issues.William Blevins2016-09-201-1/+18
|
* fix some tests for pypyDaniel Holth2016-06-061-5/+6
| | | | | | The major category of broken test is that which depends on garbage collection to flush and close an open file. Also, the empty list is apparently not a singleton in pypy.
* change to handle py3 changes to byte/string for open().write()William Deegan2016-05-151-1/+5
|
* fix default open mode for test.write() to be wb.. it was changed to just w ↵William Deegan2016-05-141-1/+1
| | | | when six was the plan. it causes many tests to fail on win32
* Guard checking for subprocess.mswindows by checking if on win32 platformWilliam Deegan2016-05-091-2/+2
|
* Remove all the six stuff.Russel Winder2016-02-021-4/+0
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-15/+2
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-14/+0
| |
| * Fixed or skipped tests that fail on Windows.Gary Oberbrunner2014-08-221-2/+3
| | | | | | | | | | Mostly just per-test changes, but also made match_re strip out CR (\r) chars at end of lines to make Windows match properly.
* | Added six module as SCons.compat.six, for python3 port.Gary Oberbrunner2014-04-201-2/+2
| |
* | Merged with [default]Stefan Zimmermann2014-03-311-2/+29
|\ \ | |/
| * Fix TestCmd to use ctypes when PyWin32 is not installed, and respect ↵Sye van der Veen2014-01-241-2/+29
| | | | | | | | os.environ.get('python_executable') in ActionTests
* | Fixed re.sub for PY3 print() in TestCmd.write().Stefan Zimmermann2014-01-081-1/+1
| |
* | QMTest: open() in text mode. Add ()s to prints on writing test scripts from str.Stefan Zimmermann2013-12-271-1/+5
| |
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-4/+3
| |
* | 2 minor issuesndbecker22013-09-091-1/+2
| | | | | | | | (transplanted from 6711a6b819f61764bb82c0f32a251b91ec66a0b2)
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-16/+16
|/
* Test harness: fail_test() can now take an optional message to print on failure.Gary Oberbrunner2013-04-201-10/+17
|
* TestCmd.py: Delay cleanup registration with atexit to avoid exessiveanatoly techtonik2012-12-191-19/+15
| | | | | tracebacks when Import fails because of missing pywin32 modules (see http://bugs.python.org/issue16718)
* Remove subprocess compatibility code used for Python < 2.4anatoly techtonik2012-12-121-59/+11
|
* - fixed directory/file fixtures for "general" modedirkbaechle2012-08-121-0/+1
| | | | | - added documentation for the testing framework - converted two old tests from the "packaging" section to using fixtures as reference examples
* - renamed the '-j' option to '-k', such that we can use the former for ↵dirkbaechle2012-08-091-5/+1
| | | | | | | | | parallel processing later on - changed list(map()) to list comprehensions - removed try/except block around os.environ.get() for SCONS_EXTERNAL_TEST - fixed a potential deadlock for subprocess.Popen by using temporary files - added the '--nopipefiles' option to switch off this temp file fix (not recommended though)
* - basic merge with source from the external scons-test-frameworkdirkbaechle2012-08-031-8/+116
|
* Fix test failures in test/explain/basic.py on Windows due to drive-name case ↵Gary Oberbrunner2012-04-071-0/+24
| | | | | | | problems (C: vs. c:) Added new test match function, match_caseinsensitive to handle this and probably other similar cases.
* Fix test/sconsign/script/dblite.py test on Windows (adjusted expected result ↵Gary Oberbrunner2011-05-151-0/+2
| | | | to match actual). Also made failing match_re more verbose for easier test debugging.
* Fix #2740, using PRESERVE with runtest.py.Gary Oberbrunner2011-03-111-1/+1
|
* Misc Windows test cleanupsGary Oberbrunner2011-02-271-1/+4
|
* Merged revisions 4727-4729,4731-4938,4940-5028 via svnmerge fromSteven Knight2010-06-151-99/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/pending ........ r4942 | stevenknight | 2010-06-03 12:41:20 -0700 (Thu, 03 Jun 2010) | 13 lines Isseu 2641: Latest drop of the TestCmd infrastructure, v. 1.3, including: * Support for test timeouts. * Ability to set separate match_stdout and match_stderr functions. * Ability to set separate diff_stdout and diff_stderr functions. * Static methods for the various underlying match* and diff* functionality. * Ability to get at the various match* and diff* functions by attribute name. * Got rid of checks for difflib now that Python 2.3 is the floor (for this infrastructure, anyway). Ripple effects in two test scripts. Added upstream unit test modules (QMTest/Test{Cmd,Common}Tests.py). Added a README.txt file. ........ r4943 | stevenknight | 2010-06-03 13:00:31 -0700 (Thu, 03 Jun 2010) | 2 lines Grab the correct TestCmd files with the updated version number. ........ r4946 | managan | 2010-06-04 09:39:20 -0700 (Fri, 04 Jun 2010) | 4 lines On Windows add a '/D' to the command line so it recognizes drive letters in the source or target file paths ........ r4947 | managan | 2010-06-04 09:51:48 -0700 (Fri, 04 Jun 2010) | 5 lines The scanner was not parsing the dependencies in \includegraphics commands when there was whitespace (including carriage returns) in the command. While we need a better long term fix this covers this concern. ........ r4948 | managan | 2010-06-04 11:13:12 -0700 (Fri, 04 Jun 2010) | 3 lines Dropped an import line that is needed by the last commit of mine for Windows depenedant option on latex command lines ........ r4949 | managan | 2010-06-04 12:27:48 -0700 (Fri, 04 Jun 2010) | 7 lines Some latex packages break up commands where you normally could not by using a comment character at the end of the first line. Our current scanner broke on this and lost some dependecies. While we need general fix, this patch solves this problem ........ r4950 | managan | 2010-06-04 15:51:36 -0700 (Fri, 04 Jun 2010) | 5 lines Tweak how we handle comments within Latex source files when scanning and looking for dependencies. We were adding a space when a comment broke a line and we should not have. ........ r4984 | managan | 2010-06-07 09:37:40 -0700 (Mon, 07 Jun 2010) | 6 lines The multi-line_include-options test failed to check for the existence of latex. Added that so this test is skipped on systems without latex. ........
* Update QMTEst/Test{Cmd,Common}.py to version 1.1 from upstream:Steven Knight2010-05-271-169/+85
| | | | | | | * incorporate and update the Python 3.0 fixer work by Greg: * full conversion to using subprocess for execution; * rename exactly_contain_all_lines() to must_contain_exactly_lines(); * other minor fixes and stylistic cleanups.
* Start the deprecation cycle for the BuildDir() method and the build_dirGreg Noel2010-05-261-3/+6
| | | | | | | | | | | | | | | | | | | | | | keyword parameter. Several existing tests were still using BuildDir() or build_dir; they were converted to use VariantDir() and variant_dir. New tests were added to validate that the --warn=deprecated-build-dir option and the SetOption method did the right thing. This led to the discovery that a commonly-used test pattern provided by the infrastructure gobbled up too much, causing tests to succeed when they should have failed. Fixing the pattern led to other tests needing to be fixed. In the process, it was discovered that the SCONSFLAG environment variable was not getting correctly reset to its original value. Fixing this also caused additional tests to misbehave, requiring them to be updated. And test/Sig.py, which tests the deprecated SCons.Sig module, was moved to the test/Deprecated directory. All in all, quite a lot of action for what was supposed to be a simple change.
* Use slice built-in instead of types.SliceTypeGreg Noel2010-05-011-2/+1
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-261-14/+10
| | | | Apply all the remaining changes from the fixers.
* Convert to Python 3.x division rules.Greg Noel2010-04-241-0/+1
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-17/+2
| | | | | | | 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-211-30/+26
| | | | | | Pass the python executable from the -P option to runtest to TestCmd.py. Create the escaped executable name in TestCmd.py as well. Pass those two values into derived test modules. Fix cascade problems in test scripts due to incorrect assumptions about the name of the executable.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-201-1/+1
| | | | | | | One-line changes: Wrap pickle.dump with staticmethod(). Keep softspace in Unbuffered wrapper class for backward compatibility with 3.x. Use ModuleType as a factory function rather than a base class. Derive exception class from something derived from BaseException (required for 3.x).
* Replace remaining os.path.walk() calls with os.walk().Steven Knight2010-04-181-48/+25
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-171-1/+1
| | | | | Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-3/+2
| | | | | | | | | Fixes due to running the regression tests with the '-3' option to Python2.6, which causes the run-time to look for potential compatibility problems with Python 3.x. In some cases, all we can do is quiet the warning since we still support Python versions that can't use the newer idiom. In other cases, we fix the problem. This patch contains a mix of quieting and fixing, plus a little lint.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-5/+5
| | | | | | 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=2345Greg Noel2010-03-291-2/+16
| | | | | | | | | | | | | 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.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-03-291-9/+0
| | | | | | | Accumulated small fixers: renames, next, zip, and intern. Files that were modified or added while developing on branches/pending didn't have the fixers previously applied. This patchset picks up those.
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-271-13/+13
| | | | | | | | | | | | | | | 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-251-34/+34
| | | | | 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.
* Update Test{Cmd,Common}.py from upstream, with a newSteven Knight2010-01-121-10/+30
| | | | | | TestCommon.must_not_contain() method, new-style classes (inherit from object), and a fix for a Windows race by only opening up a pipe to stdin if we have something to write to it.
* Minor fixes found while debuggingGreg Noel2009-09-181-3/+3
|
* Update the Test{Cmd,Common}.py 0.36, with better diff reportingSteven Knight2009-07-241-8/+103
| | | | | | | (specifically of output matches using regular expressions). Update tests for corresponding inteface changes. Add use of diff_re() to test/sconsign/script/Configure.py so we can get accurate information about its buildbot failure.