summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
Commit message (Collapse)AuthorAgeFilesLines
* add another possible path for JAVA_HOME on OSXWilliam Deegan2015-09-291-0/+3
|
* release 2.4.0William Deegan2015-09-211-1/+1
|
* post 2.3.6 release changesWilliam Deegan2015-08-011-1/+1
|
* merging 2.3.5 changesWilliam Deegan2015-06-201-1/+1
|
* reverting 3320William Deegan2015-06-181-1/+1
|
* reverting 3321William Deegan2015-06-181-1/+1
|
* Release 2.3.5.final.0William Deegan2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Important changes -- Extended docs for InstallVersionedLib/SharedLibrary, -- Fixed symlink support (PR #227, #2395). -- Fixed incomplete LIBS flattening and substitution in Program scanner(PR #205, #2954). -- Added new method rentry_exists_on_disk to Node.FS (PR #193). -- Add support for f08 file extensions for Fortran 2008 code. -- Show --config choices if no argument is specified (PR #202). -- Fixed build crash when XML toolchain isn't installed, and activated compression for ZIP archives. -- Fix for VersionedSharedLibrary under 'sunos' platform. -- Fixed dll link with precompiled headers on MSVC 2012 -- Added an 'exclude' parameter to Glob() -- Support for multiple cmdargs (one per variant) in VS project files. -- Various improvements for TempFileMunge class. -- Added an implementation for Visual Studio users files (PR #209). -- Added support for the 'PlatformToolset' tag in VS project files (#2978). -- Added support for '-isystem' to ParseFlags.
* Release 2.3.5.final.0William Deegan2015-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | Important changes -- Extended docs for InstallVersionedLib/SharedLibrary, -- Fixed symlink support (PR #227, #2395). -- Fixed incomplete LIBS flattening and substitution in Program scanner(PR #205, #2954). -- Added new method rentry_exists_on_disk to Node.FS (PR #193). -- Add support for f08 file extensions for Fortran 2008 code. -- Show --config choices if no argument is specified (PR #202). -- Fixed build crash when XML toolchain isn't installed, and activated compression for ZIP archives. -- Fix for VersionedSharedLibrary under 'sunos' platform. -- Fixed dll link with precompiled headers on MSVC 2012 -- Added an 'exclude' parameter to Glob() -- Support for multiple cmdargs (one per variant) in VS project files. -- Various improvements for TempFileMunge class. -- Added an implementation for Visual Studio users files (PR #209). -- Added support for the 'PlatformToolset' tag in VS project files (#2978). -- Added support for '-isystem' to ParseFlags.
* Updated jni header directory expectations for tests.William Blevins2015-03-241-1/+1
| | | | | | | | | | My openjdk install link/dir also contained the architecture. Example: RPM package java-1.7.0-openjdk-devel-1.7.0.75-2.5.4.0.el6_6.x86_64 created link /usr/lib/jvm/java-1.7.0-openjdk.x86_64 Affected tests: test/Java/multi-step.py test/Java/swig-dependencies.py
* Put default branch back to develop mode, post 2.3.4.Gary Oberbrunner2014-09-271-1/+1
|
* Apply 2.3.3 release auto changes to default branchGary Oberbrunner2014-08-241-1/+1
|
* Remove extra print stmt in TestSCons.py, per review.Gary Oberbrunner2014-08-211-1/+0
|
* SWIG: improve tool detection, and update SWIG tests to run on Windows.Gary Oberbrunner2014-08-211-3/+14
| | | | | | | | | 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.
* Fix development mailing list with a new address @scons.organatoly techtonik2014-05-281-1/+1
|
* No need to update copyright_years in QMTest/TestSCons.py anymoreanatoly techtonik2014-02-251-2/+0
|
* Merged scons/scons into defaultTom Tanner2013-10-301-1/+1
|\
| * Fix broken python-version.py test. regex for deprecated version string ↵William Deegan2013-10-251-1/+1
| | | | | | | | wasn't updated with new version nor new verbiage
* | Adding documentation and a couple of testsTom Tanner2013-10-081-3/+3
|/
* Move back to 'develop' mode after rel_2.3.0.Gary Oberbrunner2013-03-041-1/+1
|
* Final auto updates for 2.3.0 release.Gary Oberbrunner2013-03-021-19/+19
|
* - moved check for an installed MSVC toolchain into its own function in TestSConsDirk Baechle2012-12-221-0/+22
|
* - extended the must_contain* methods of the test framework, such that they ↵Dirk Baechle2012-12-161-0/+28
| | | | | | all support user-defined find/search functions - relaxed several of the regex comparisons for better cross-platform compatibility
* - several smaller fixes to get all tests running under Buildbot againdirkbaechle2012-09-271-40/+31
|
* - first swoop of changes for getting all Buildbot slaves to run successfully ↵dirkbaechle2012-09-041-6/+6
| | | | again
* - fixed directory/file fixtures for "general" modedirkbaechle2012-08-121-5/+5
| | | | | - 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)
* - fixed where_is for standard modedirkbaechle2012-08-031-2/+2
|
* - basic merge with source from the external scons-test-frameworkdirkbaechle2012-08-031-61/+109
|
* Add 2012 to the copyright year listWilliam Deegan2012-01-161-1/+1
|
* Fix bug 2772William Deegan2011-06-171-1/+1
|
* Fix TEX auxiliary test by normalizing ps output to avoid spurious failures ↵Gary Oberbrunner2011-05-041-0/+12
| | | | (from Rob Managan)
* Fix test/update-release-info/update-release-info.py to work in the year 2011William Deegan2011-01-261-1/+1
|
* Updates the timing infrastructure to:Steven Knight2010-08-181-10/+32
| | | | | | | | | | 1) allow the calibration script to only use some of the variables that are settable in the configuration; 2) refactor the way the --debug= options are added to the SCons invocations so that an individual timing configuration can add SCons options without having to account for those by hand; 3) give the timing configuration script easier access to the test directory in which it lives.
* Windows fix: use shell=True on subprocess.Popen(), don't use communicate().Steven Knight2010-06-281-2/+3
|
* Generalize searching for the Fortran startup libraries (-lfrtbeginSteven Knight2010-06-271-16/+14
| | | | vs. -lgfortranbegin) for gcc version 4.4 (and later).
* This changeset increments the trunk to the next minor level, 2.1.0, andGreg Noel2010-06-151-1/+1
| | | | | | | | updates the dates and other information in the files to have the right base values. With this changeset, 2.0.0 is history and a new era has begun. It's time to celebrate; anybody want a beer?
* Increase the default timeout of TestSCons.wait_for() to 20.0 seconds.Steven Knight2010-06-101-1/+10
| | | | | | | | | | | | (--interactive mode on our Solaris buildbot slave takes longer than 10 seconds to create the necessary marker files.) Set the stdin attribute on our popen object to None after we close it, so some versions of subprocess.py don't try to write it after it's closed. If we time out waiting for a marker file to be created, then print any stdout or stderr that's already accumulated, since that may give clues about why the test failed.
* Oops, backslash must be done first, or backslashes from previous substitutionsGreg Noel2010-06-051-1/+1
| | | | will be quoted.
* The re_escape() function escapes too little. Blind fix for a Windows problem.Greg Noel2010-06-051-1/+1
|
* Prepare for checkpoint release. Everything should be set up and readyGreg Noel2010-05-301-3/+6
| | | | | | | | | | | | | | to go. Update various files to have the correct date, time, version, and floor. Rework Script/Main.py and QMTest/TestSCons.py to make automated updating possible in the future. Remove a duplicate MANIFEST-xml.in entry. Fix TeX tests, which ran 'kpsewitch' before determining if the TeX tools were installed.
* http://scons.tigris.org/issues/show_bug.cgi?id=2365Greg Noel2010-05-281-16/+77
| | | | | | Start the deprecation cycle for SourceCode() and its related factory functions. Deprecation messages are added to the functions. Regression tests are modified to deal with the messages being generated. Documentation is updated.
* Start the deprecation cycle for the BuildDir() method and the build_dirGreg Noel2010-05-261-57/+82
| | | | | | | | | | | | | | | | | | | | | | 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.
* Update deprecated features to the next life-cycle stageGreg Noel2010-05-211-0/+20
|
* Convert to Python 3.x division rules.Greg Noel2010-04-241-3/+4
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-34/+1
| | | | | | | 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-2/+0
| | | | | | 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).
* Index: test/Variables/help.pyGreg Noel2010-04-191-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =================================================================== --- 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 =================================================================== --- test/Variables/PackageVariable.py (revision 4792) +++ test/Variables/PackageVariable.py (working copy) @@ -28,14 +28,8 @@ Test the PackageVariable canned Variable type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons() Index: test/Variables/BoolVariable.py =================================================================== --- test/Variables/BoolVariable.py (revision 4792) +++ test/Variables/BoolVariable.py (working copy) @@ -28,14 +28,8 @@ Test the BoolVariable canned Variable type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons() Index: test/Deprecated/Options/help.py =================================================================== --- test/Deprecated/Options/help.py (revision 4792) +++ test/Deprecated/Options/help.py (working copy) @@ -28,24 +28,16 @@ Test the Options help messages. """ -import os.path +import os import re -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(match = TestSCons.match_re_dotall) - - workpath = test.workpath() qtpath = os.path.join(workpath, 'qt') libpath = os.path.join(qtpath, 'lib') Index: test/Deprecated/Options/PackageOption.py =================================================================== --- test/Deprecated/Options/PackageOption.py (revision 4792) +++ test/Deprecated/Options/PackageOption.py (working copy) @@ -28,14 +28,8 @@ Test the PackageOption canned Option type. """ -import os.path +import os -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) Index: test/Deprecated/Options/BoolOption.py =================================================================== --- test/Deprecated/Options/BoolOption.py (revision 4792) +++ test/Deprecated/Options/BoolOption.py (working copy) @@ -28,12 +28,6 @@ Test the BoolOption canned Option type. """ -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) Index: src/script/scons-time.py =================================================================== --- src/script/scons-time.py (revision 4792) +++ src/script/scons-time.py (working copy) @@ -45,13 +45,6 @@ import time try: - True, False -except NameError: - # Pre-2.2 Python has no True or False keyword. - exec('True = not 0') - exec('False = not 1') - -try: sorted except NameError: # Pre-2.4 Python has no sorted() function. Index: src/engine/SCons/compat/_scons_builtins.py =================================================================== --- src/engine/SCons/compat/_scons_builtins.py (revision 4792) +++ src/engine/SCons/compat/_scons_builtins.py (working copy) @@ -37,13 +37,8 @@ all() any() - bool() - dict() sorted() memoryview() - True - False - zip() Implementations of functions are *NOT* guaranteed to be fully compliant with these functions in later versions of Python. We are only concerned @@ -62,22 +57,6 @@ import builtins try: - False -except NameError: - # Pre-2.2 Python has no False keyword. - exec('builtins.False = not 1') - # Assign to False in this module namespace so it shows up in pydoc output. - #False = False - -try: - True -except NameError: - # Pre-2.2 Python has no True keyword. - exec('builtins.True = not 0') - # Assign to True in this module namespace so it shows up in pydoc output. - #True = True - -try: all except NameError: # Pre-2.5 Python has no all() function. @@ -108,42 +87,6 @@ any = any try: - bool -except NameError: - # Pre-2.2 Python has no bool() function. - def bool(value): - """Demote a value to 0 or 1, depending on its truth value. - - This is not to be confused with types.BooleanType, which is - way too hard to duplicate in early Python versions to be - worth the trouble. - """ - return not not value - builtins.bool = bool - bool = bool - -try: - dict -except NameError: - # Pre-2.2 Python has no dict() keyword. - def dict(seq=[], **kwargs): - """ - New dictionary initialization. - """ - d = {} - for k, v in seq: - d[k] = v - d.update(kwargs) - return d - builtins.dict = dict - -try: - file -except NameError: - # Pre-2.2 Python has no file() function. - builtins.file = open - -try: memoryview except NameError: # Pre-2.7 doesn't have the memoryview() built-in. @@ -185,27 +128,6 @@ return result builtins.sorted = sorted -# -try: - zip -except NameError: - # Pre-2.2 Python has no zip() function. - def zip(*lists): - """ - Emulates the behavior we need from the built-in zip() function - added in Python 2.2. - - Returns a list of tuples, where each tuple contains the i-th - element rom each of the argument sequences. The returned - list is truncated in length to the length of the shortest - argument sequence. - """ - result = [] - for i in range(min(list(map(len, lists)))): - result.append(tuple([l[i] for l in lists])) - return result - builtins.zip = zip - #if sys.version_info[:3] in ((2, 2, 0), (2, 2, 1)): # def lstrip(s, c=string.whitespace): # while s and s[0] in c: Index: runtest.py =================================================================== --- runtest.py (revision 4792) +++ runtest.py (working copy) @@ -97,17 +97,6 @@ import time try: - x = True -except NameError: - True = not 0 - False = not 1 -else: - del x - -if not hasattr(os, 'WEXITSTATUS'): - os.WEXITSTATUS = lambda x: x - -try: sorted except NameError: # Pre-2.4 Python has no sorted() function. Index: QMTest/TestSCons.py =================================================================== --- QMTest/TestSCons.py (revision 4792) +++ QMTest/TestSCons.py (working copy) @@ -23,12 +23,6 @@ import sys import time -try: - True -except NameError: - exec('True = not 0') - exec('False = not 1') - from TestCommon import * from TestCommon import __all__
* Replace remaining os.path.walk() calls with os.walk().Steven Knight2010-04-181-0/+9
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-171-5/+3
| | | | | Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.