Source

SCons / runtest.py

Author Commit Message Labels Comments Date
anatoly techtonik
runtest.py: Enable -o, --output to save stdout/stderr into a file
anatoly techtonik
runtest.py: Fix CRLF
anatoly techtonik
runtest.py: Replace `-o file --xml` with `--xml file` `runtest.py -o file ...` never worked right throwing exception: Traceback (most recent call last): File "...\runtest.py", line 925, in <module> tests[0].header(f) IndexError: list index out of range Leaving -o argument to gather all output into a file (work in process) also allows to capture output and format test results in parallel.
anatoly techtonik
runtest.py: Exit with an error if no tests were found
anatoly techtonik
runtest.py: remove --noqmtest option
anatoly techtonik
Merge runtest.py fixes
anatoly techtonik
runtest.py: Turn on unbuffered output ASAP.
anatoly techtonik
runtest.py: Gradually moving from getopt to optparse
Gary Oberbrunner
Add -jN support to runtest.py to run tests in parallel
anatoly techtonik
Remove subprocess compatibility code used for Python < 2.4
anatoly techtonik
os.spawnv is here since Python 1.6, removing compatibility code
dirkbaechle
- several smaller fixes to get all tests running under Buildbot again
dirkbaechle
- removed Aegis support
dirkbaechle
- fixed directory/file fixtures for "general" mode - added documentation for the testing framework - converted two old tests from the "packaging" section to using fixtures as reference examples
dirkbaechle
- renamed the '-j' option to '-k', such that we can use the former for 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)
dirkbaechle
- fixed usage of subprocess module in runtest.py - fixed tests in test/runtest (needed -j option for suppressing the count/percent messages)
dirkbaechle
- basic merge with source from the external scons-test-framework
Gary Oberbrunner
runtest.py: added doc for useful env vars.
William Deegan
allow runtest.py -f file to have list of files with whitespace before or after filenames
anatoly techtonik
remove Python 1.5.2 compatibility code from runtest.py
Steven Knight
Windows portability fixes in various tests. Fix runtest.py detection of non-zero exit status on systems that don't have os.WEXITSTATUS().
Steven Knight
Convert old-style classes in miscellaneous files to new-stylre classes: src/test_strings.py, runtest.py and doc/man/scons.1.
Greg Noel
http://scons.tigris.org/issues/show_bug.cgi?id=2345 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.
Greg Noel
http://scons.tigris.org/issues/show_bug.cgi?id=2345 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.
Greg Noel
http://scons.tigris.org/issues/show_bug.cgi?id=2345 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).
Greg Noel
Index: test/Variables/help.py =================================================================== --- test/Variables/help.py (revision 4792) +++ test/Variables/help.py (working copy) @@ -28,23 +28,15 @@ Test the Variables help messages. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') +import TestSCons str_True = str(True) str_False = str(False) -import TestSCons - test = TestSCons.TestSCons() - - workpath = test.workpath() qtpath = os.path.join(workpath, 'qt') libpath = os.path.join(qtpath, 'lib') Index: test/Variables/PackageVariable.py ==…
Steven Knight
Add a -3 option to print Python 3.x incompatibility warnings during tests.
Steven Knight
Replace remaining os.path.walk() calls with os.walk().
Greg Noel
http://scons.tigris.org/issues/show_bug.cgi?id=2329 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'). Compariso…
Greg Noel
Move 2.0 changes collected in branches/pending back to trunk for further 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.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. Next