scons.git
14 years agoFix some tests so they can still run on Windows system without
stevenknight [Wed, 6 Jan 2010 01:56:48 +0000 (01:56 +0000)]
Fix some tests so they can still run on Windows system without
.py file associations.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4594 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix path name checks for case-insensitive file systems.
stevenknight [Wed, 6 Jan 2010 01:56:25 +0000 (01:56 +0000)]
Fix path name checks for case-insensitive file systems.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4593 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix handling the -C option by recording the absolute path to
stevenknight [Tue, 5 Jan 2010 21:42:53 +0000 (21:42 +0000)]
Fix handling the -C option by recording the absolute path to
the original script directory.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4592 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoChange scanner to properly search for included file from the
managan [Mon, 4 Jan 2010 17:34:11 +0000 (17:34 +0000)]
Change scanner to properly search for included file from the
directory of the main file instead of the file it is included from.
Also update the emitter to add the .aux file associated with
\include{filename} commands. This makes sure the required directories
if any are created for variantdir cases.
Half of the patch from Stefan Hepp.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4591 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix time-sensitivity (< 0.002 second execution) in output format.
stevenknight [Sat, 2 Jan 2010 14:44:28 +0000 (14:44 +0000)]
Fix time-sensitivity (< 0.002 second execution) in output format.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4590 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoRemove unnecessary imports to avoid javac warnings.
stevenknight [Fri, 1 Jan 2010 08:48:06 +0000 (08:48 +0000)]
Remove unnecessary imports to avoid javac warnings.
Add a necessary serialVersionUID.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4589 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDefine "static final long serialVersionUID" in java classes in
stevenknight [Fri, 1 Jan 2010 02:01:15 +0000 (02:01 +0000)]
Define "static final long serialVersionUID" in java classes in
RMIC tests to silence warnings from gcj-4.4.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4588 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAvoid GCC 4.4 warnings from the code generated by our dummy QT
stevenknight [Thu, 31 Dec 2009 00:45:19 +0000 (00:45 +0000)]
Avoid GCC 4.4 warnings from the code generated by our dummy QT
moc and uic utilities by using fputs() instead of printf().

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4587 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdding 1.2.0.d20091224 release
bdbaddog [Tue, 29 Dec 2009 06:46:07 +0000 (06:46 +0000)]
Adding 1.2.0.d20091224 release

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4586 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoPull up the tigris.org page for SVN revisions, at least for now, in
stevenknight [Sun, 27 Dec 2009 15:36:09 +0000 (15:36 +0000)]
Pull up the tigris.org page for SVN revisions, at least for now, in
response to clicks on the detailed graph.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4582 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoInterface tweaks:
stevenknight [Sat, 26 Dec 2009 17:40:32 +0000 (17:40 +0000)]
Interface tweaks:
Display 150 revs in the dashboard thumbnails, but full history
in the click-through graphs.  Rewrite the top-of-page title and
have it display which stat is being displayed.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4580 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a -p option to support calibrating against build SCons packages.
stevenknight [Tue, 22 Dec 2009 16:43:30 +0000 (16:43 +0000)]
Add a -p option to support calibrating against build SCons packages.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4575 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix the view-change detail tab. Minor wording improvement.
stevenknight [Tue, 22 Dec 2009 14:26:37 +0000 (14:26 +0000)]
Fix the view-change detail tab.  Minor wording improvement.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4574 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDon't look for copyright strings in buildbot timings files.
stevenknight [Tue, 22 Dec 2009 07:57:36 +0000 (07:57 +0000)]
Don't look for copyright strings in buildbot timings files.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4572 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoIssue 2482: Avoid wrapping decider unnecessarily
gregnoel [Sun, 20 Dec 2009 19:14:04 +0000 (19:14 +0000)]
Issue 2482: Avoid wrapping decider unnecessarily

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4571 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a message to the UserError raised when trying to do a Dir lookup with create...
garyo [Sun, 20 Dec 2009 16:04:13 +0000 (16:04 +0000)]
Add a message to the UserError raised when trying to do a Dir lookup with create=False.  Should not normally happen, but it did to me, and it is better to have some explanatory message when it happens rather than failing silently.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4570 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoUpdate the number of the "base" revision of bin/time-scons.py to use
stevenknight [Sat, 19 Dec 2009 16:18:25 +0000 (16:18 +0000)]
Update the number of the "base" revision of bin/time-scons.py to use
for historical statistics.  Close the triple-quote in the doc string
I added right before the last checkin.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4569 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoSpeed up the time-scons.py "build" of SCons with compiled *.pyc files,
stevenknight [Sat, 19 Dec 2009 16:11:40 +0000 (16:11 +0000)]
Speed up the time-scons.py "build" of SCons with compiled *.pyc files,
by just invoking setup.py directly instead of packing and unpacking the
distributable .tar.gz file.

Refactor to be able to capture historical statistics (of previous
revisions) by preparing the "built" revision once and then running all
of the requested timing scripts, with output going to a separate log
file for each revision + script.

Fix TestSCons.py so that it interprets the scons script name to be tested
relative to the invoking directory, not always relative to src/script.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4568 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd config.js files to the timing configurations, and update graph.html
stevenknight [Fri, 18 Dec 2009 09:26:23 +0000 (09:26 +0000)]
Add config.js files to the timing configurations, and update graph.html
to use them to display configuration-specific info (right now just
the title) for each graph's page.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4566 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoMove the timings-specific pieces of the buildbot infrastructure into
stevenknight [Fri, 18 Dec 2009 08:03:50 +0000 (08:03 +0000)]
Move the timings-specific pieces of the buildbot infrastructure into
the trunk/timings directory.  We'll map them into the buildbot directory
using svn:externals.  This will let us keep all the pieces of a timing
configuration, including its buildbot pieces, in one place, and will
let us simplify the Master initialization (since it will be able to look
on-disk for the configurations for which it should set up buildbot steps,
instead of querying the SVN server).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4562 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoTrace the system load average (Linux-only code) before starting the
stevenknight [Fri, 18 Dec 2009 06:58:37 +0000 (06:58 +0000)]
Trace the system load average (Linux-only code) before starting the
help / full / null builds in a timing run.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4561 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoRunning PDF() on an .eps file on windows with MikTex 2.7.2767 does not work,
managan [Thu, 17 Dec 2009 22:06:41 +0000 (22:06 +0000)]
Running PDF() on an .eps file on windows with MikTex 2.7.2767 does not work,
because it does not support '-o <outfile>'. This patch uses --outfile= instead,
since this works both unter linux and windows.

Patch from Stefan Hepp

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4560 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd scanning of files included in Latex by means of \lstinputlisting{}
managan [Thu, 17 Dec 2009 21:13:17 +0000 (21:13 +0000)]
Add scanning of files included in Latex by means of \lstinputlisting{}
Patch from Stefan Hepp.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4559 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAvoids bailing on non-zero exit status from commands. This will lets
stevenknight [Thu, 17 Dec 2009 15:23:20 +0000 (15:23 +0000)]
Avoids bailing on non-zero exit status from commands.  This will lets
us collect as many stats as possible, even when a test for a revision
in the middle of the list fails due to a bug.
Updates the "baseline" timing revision (the revision that has
the earliest "stable" TimeSCons infrastructure
Removes --noqmtest, since the "baseline" revision no longer uses
QMTest by default.
Changes the --logfiles option to a --logsdir option.
Updates the usage message.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4558 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoIgnore the exit status from the --help run on timing builds, since some
stevenknight [Thu, 17 Dec 2009 07:11:51 +0000 (07:11 +0000)]
Ignore the exit status from the --help run on timing builds, since some
early revisions have bugs and we can still go on and get useful stats
from the full and null builds.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4557 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a separate test of the runtest.py --qmtest option.
stevenknight [Thu, 17 Dec 2009 05:51:33 +0000 (05:51 +0000)]
Add a separate test of the runtest.py --qmtest option.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4556 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix the time-scons.py --logfiles option.
stevenknight [Thu, 17 Dec 2009 02:09:50 +0000 (02:09 +0000)]
Fix the time-scons.py --logfiles option.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4555 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix the tests of runtest.py now that QMTest is no longer being used
stevenknight [Wed, 16 Dec 2009 07:07:13 +0000 (07:07 +0000)]
Fix the tests of runtest.py now that QMTest is no longer being used
by default.  Fix use of subprocess in Python 2.4+ and exit statuses
of popen'ed scripts in earlier versions of Python.  Support the ability
to execute a directory's tests by naming the directory as a command-
line argument.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4554 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBetter fix for #2530: dont exit at all on unimplemented options, just print a warning...
garyo [Wed, 16 Dec 2009 02:29:54 +0000 (02:29 +0000)]
Better fix for #2530: dont exit at all on unimplemented options, just print a warning and keep going.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4553 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years ago...and call the correct method.
stevenknight [Tue, 15 Dec 2009 23:46:55 +0000 (23:46 +0000)]
...and call the correct method.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4552 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoTypo fix.
stevenknight [Tue, 15 Dec 2009 23:44:04 +0000 (23:44 +0000)]
Typo fix.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4551 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDisable QMTest by default, leave it available when --qmtest is used.
stevenknight [Tue, 15 Dec 2009 22:40:17 +0000 (22:40 +0000)]
Disable QMTest by default, leave it available when --qmtest is used.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4550 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a bin/time-scons.py script to manage invocation of runtest.py to
stevenknight [Tue, 15 Dec 2009 21:44:56 +0000 (21:44 +0000)]
Add a bin/time-scons.py script to manage invocation of runtest.py to
collect SCons timings.

The script will build SCons and time the pre-compiled *.pyc files,
and also provides options for timing a range of revisions directly
from SVN.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4548 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a TestSCons.option_not_yet_implemented() method and use it so
stevenknight [Tue, 15 Dec 2009 06:35:05 +0000 (06:35 +0000)]
Add a TestSCons.option_not_yet_implemented() method and use it so
the tests of those options expect an exit status of 1.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4547 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoIntegrated patch for bug 2530: SCons should not exit with 0 (success) on unimplemente...
garyo [Tue, 15 Dec 2009 02:43:01 +0000 (02:43 +0000)]
Integrated patch for bug 2530: SCons should not exit with 0 (success) on unimplemented option error.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4546 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoProvide an environment variable that can be used to override
stevenknight [Thu, 10 Dec 2009 16:27:03 +0000 (16:27 +0000)]
Provide an environment variable that can be used to override
setting --warn=no-visual-c-missing when trying to run the new
timing-script infrastructure against older versions of SCons that
don't have that warning.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4545 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd separate memory graphs for the stats in the full and null runs.
stevenknight [Thu, 10 Dec 2009 16:00:17 +0000 (16:00 +0000)]
Add separate memory graphs for the stats in the full and null runs.
Refactor stats-gathering so we collect them from the output in one step
and can then trace them in multiple different ways.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4544 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoRecord memory in kbytest, not bytes.
stevenknight [Thu, 10 Dec 2009 13:36:10 +0000 (13:36 +0000)]
Record memory in kbytest, not bytes.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4543 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a script for calibrating settings for timing configurations.
stevenknight [Thu, 10 Dec 2009 06:19:43 +0000 (06:19 +0000)]
Add a script for calibrating settings for timing configurations.
Update the timings scripts with calibrated settings that run
a full build between 9.5 and 10.0 seconds on the buildbot slave.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4542 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoInfrastructure to support calibration runs of TimeSCons tests, which
stevenknight [Thu, 10 Dec 2009 03:42:30 +0000 (03:42 +0000)]
Infrastructure to support calibration runs of TimeSCons tests, which
only run a full build and report back the values of any variables
affecting the configuration, and the elapsed time of the full build.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4541 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoUpdate the TimeSCons class for use of the sort= keyword instead of
stevenknight [Wed, 9 Dec 2009 19:28:41 +0000 (19:28 +0000)]
Update the TimeSCons class for use of the sort= keyword instead of
important=.  Fix an old-version Python problem (use of True in
keyword arg initialization).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4539 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoHave the TimeSCons class examine the run output for the reported memory
stevenknight [Wed, 9 Dec 2009 18:23:57 +0000 (18:23 +0000)]
Have the TimeSCons class examine the run output for the reported memory
use and timings, and translate these into TRACE: lines with keyword=value
pairs that will be processed by the now more generic buildbot-side log
processor to populate the timings graph data.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4538 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoUpdate the TimeSCons "elapsed time" message to match the log processor.
stevenknight [Tue, 8 Dec 2009 22:02:30 +0000 (22:02 +0000)]
Update the TimeSCons "elapsed time" message to match the log processor.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4534 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix typo in man page, per patch in issue #2529.
garyo [Sun, 6 Dec 2009 14:17:33 +0000 (14:17 +0000)]
Fix typo in man page, per patch in issue #2529.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4513 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoIntegrate patch from issue #2436: fix regression from r3691 which stopped printing...
garyo [Sat, 5 Dec 2009 02:39:27 +0000 (02:39 +0000)]
Integrate patch from issue #2436: fix regression from r3691 which stopped printing "Entering Directory" with -C/-u.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4512 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoExplicitly initialize the environment tools=['mssdk', 'msvc', 'mslink']
stevenknight [Mon, 30 Nov 2009 13:47:11 +0000 (13:47 +0000)]
Explicitly initialize the environment tools=['mssdk', 'msvc', 'mslink']
to get the path to the SDK include directory (so our test program can
#include <windows.h>).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4498 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix c++ compiler detection: correct the order of values returned,
stevenknight [Sun, 29 Nov 2009 05:11:31 +0000 (05:11 +0000)]
Fix c++ compiler detection:  correct the order of values returned,
return the dirname of the executables found, not the full path.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4495 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd missing "import string" to test that uses string.replace().
stevenknight [Sun, 29 Nov 2009 04:25:57 +0000 (04:25 +0000)]
Add missing "import string" to test that uses string.replace().

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4494 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix get_host_target()'s use of platform.machine() on Python versions
stevenknight [Sat, 28 Nov 2009 06:17:41 +0000 (06:17 +0000)]
Fix get_host_target()'s use of platform.machine() on Python versions
before 2.6, when it always returns a null string.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4493 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDon't hard-code the swig location in the expected output.
stevenknight [Sat, 28 Nov 2009 04:52:19 +0000 (04:52 +0000)]
Don't hard-code the swig location in the expected output.
Use test.wrap_stdout() instead of hard-coding the SCons messages.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4492 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoRemove the obsolete msvs_exists() unit test.
stevenknight [Sat, 28 Nov 2009 00:41:44 +0000 (00:41 +0000)]
Remove the obsolete msvs_exists() unit test.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4491 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix test infrastructure querying for installed Visual Studio versions.
stevenknight [Sat, 28 Nov 2009 00:41:26 +0000 (00:41 +0000)]
Fix test infrastructure querying for installed Visual Studio versions.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4490 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a compat module for the (Python 2.3) platform.py module so that tests
stevenknight [Fri, 27 Nov 2009 16:41:56 +0000 (16:41 +0000)]
Add a compat module for the (Python 2.3) platform.py module so that tests
using early Python versions work correctly, and without relying on the
QMTest infrastructure adding the installed Python version's directories
to sys.path.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4489 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd __COPYRIGHT__ strings.
stevenknight [Fri, 27 Nov 2009 15:30:53 +0000 (15:30 +0000)]
Add __COPYRIGHT__ strings.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4488 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix wrong var name in r4486, thanks Greg!
garyo [Thu, 26 Nov 2009 22:09:23 +0000 (22:09 +0000)]
Fix wrong var name in r4486, thanks Greg!

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4487 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoUse VisualCMissingWarning instead of making a stack trace for unsupported MSVC version.
garyo [Thu, 26 Nov 2009 21:13:37 +0000 (21:13 +0000)]
Use VisualCMissingWarning instead of making a stack trace for unsupported MSVC version.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4486 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoPython 1.5 fix: no +=
stevenknight [Thu, 26 Nov 2009 19:20:47 +0000 (19:20 +0000)]
Python 1.5 fix:  no +=

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4485 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAdd a test for the case where a latex file uses \input{} to include the
managan [Wed, 25 Nov 2009 21:47:43 +0000 (21:47 +0000)]
Add a test for the case where a latex file uses \input{} to include the
file that contains the documentclass command

Add logic to is_LaTeX routine to search through included files until
\documentclass is found

Also added comments, converted comments at start of 2 routines into doc
strings..

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4483 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoAnother test fix for the MSVS tests.
garyo [Wed, 25 Nov 2009 03:51:06 +0000 (03:51 +0000)]
Another test fix for the MSVS tests.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4482 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoA couple more test fixes, to make test/import.py work on Linux.
garyo [Wed, 25 Nov 2009 03:27:20 +0000 (03:27 +0000)]
A couple more test fixes, to make test/import.py work on Linux.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4481 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix tests to ignore missing MSVC warnings.
garyo [Wed, 25 Nov 2009 02:17:20 +0000 (02:17 +0000)]
Fix tests to ignore missing MSVC warnings.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4480 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDoc tweaks for MSVC_VERSION and TARGET_ARCH.
garyo [Tue, 24 Nov 2009 03:13:13 +0000 (03:13 +0000)]
Doc tweaks for MSVC_VERSION and TARGET_ARCH.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4477 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoRename the TimeSCons.run_build() method to just TimeSCons.run() so
stevenknight [Tue, 24 Nov 2009 02:12:50 +0000 (02:12 +0000)]
Rename the TimeSCons.run_build() method to just TimeSCons.run() so
the parent class TestSCons.up_to_date() method will use it to print
the --debug=memory and --debug=times stats during up-to-date runs.
Fix the TestSCons.up_to_date() regular expression so the memory
and timing output won't cause the check to fail.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4476 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix check for too-old Visual Studio with non-x86 arch; thanks to Roberto De Vecchi.
garyo [Tue, 24 Nov 2009 02:05:34 +0000 (02:05 +0000)]
Fix check for too-old Visual Studio with non-x86 arch; thanks to Roberto De Vecchi.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4475 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFix incorrectly inverted condition in test for non-TimeSCons entries.
stevenknight [Tue, 24 Nov 2009 01:58:03 +0000 (01:58 +0000)]
Fix incorrectly inverted condition in test for non-TimeSCons entries.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4474 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: explicit check for supported arch per version when using batch file.
cournape [Mon, 23 Nov 2009 07:44:43 +0000 (07:44 +0000)]
ENH: explicit check for supported arch per version when using batch file.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4471 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoREF: query host/target arch only when using bat file.
cournape [Mon, 23 Nov 2009 07:43:58 +0000 (07:43 +0000)]
REF: query host/target arch only when using bat file.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4470 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoPython 1.5 compat: if 'text' in kw.keys()
stevenknight [Mon, 23 Nov 2009 01:59:17 +0000 (01:59 +0000)]
Python 1.5 compat:  if 'text' in kw.keys()

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4467 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoPython 1.5 fixes in the TimeSCons class.
stevenknight [Sun, 22 Nov 2009 18:26:25 +0000 (18:26 +0000)]
Python 1.5 fixes in the TimeSCons class.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4465 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoFaster backward-compatible code
gregnoel [Fri, 20 Nov 2009 01:44:49 +0000 (01:44 +0000)]
Faster backward-compatible code

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4464 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoCapture initial infrastructure for working performance tests.
stevenknight [Thu, 19 Nov 2009 08:03:26 +0000 (08:03 +0000)]
Capture initial infrastructure for working performance tests.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4463 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: add a cache for get_installed_vcs, as it used for every MS tool exists function...
cournape [Thu, 19 Nov 2009 05:38:09 +0000 (05:38 +0000)]
ENH: add a cache for get_installed_vcs, as it used for every MS tool exists function and is expensive.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4462 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: fix caching bug for msvc_setup_once.
cournape [Thu, 19 Nov 2009 05:22:18 +0000 (05:22 +0000)]
BUG: fix caching bug for msvc_setup_once.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4461 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDOC: add doc for TARGET_ARCH/HOST_ARCH + obsolete MSVS_VERSION.
cournape [Thu, 19 Nov 2009 05:09:27 +0000 (05:09 +0000)]
DOC: add doc for TARGET_ARCH/HOST_ARCH + obsolete MSVS_VERSION.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4460 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoREF: remove duplicated function msvc_setup_env_once.
cournape [Thu, 19 Nov 2009 05:08:51 +0000 (05:08 +0000)]
REF: remove duplicated function msvc_setup_env_once.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4459 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: fix MSVC_USE_SCRIPT=False case.
cournape [Thu, 19 Nov 2009 05:08:16 +0000 (05:08 +0000)]
BUG: fix MSVC_USE_SCRIPT=False case.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4458 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: return early with warning if no version of vc is found.
cournape [Thu, 19 Nov 2009 05:07:41 +0000 (05:07 +0000)]
BUG: return early with warning if no version of vc is found.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4457 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: catch any VisualCException when querying available versions through find_vc_pdir.
cournape [Thu, 19 Nov 2009 05:07:01 +0000 (05:07 +0000)]
BUG: catch any VisualCException when querying available versions through find_vc_pdir.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4456 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: add support for Itanium architecture.
cournape [Thu, 19 Nov 2009 05:06:20 +0000 (05:06 +0000)]
ENH: add support for Itanium architecture.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4455 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: use Gary error checking, but using exception instead of returning error message...
cournape [Thu, 19 Nov 2009 05:05:37 +0000 (05:05 +0000)]
ENH: use Gary error checking, but using exception instead of returning error message (thanks Gary).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4454 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: set up MSVS_VERSION and MSVS dict while setting up msvc as well.
cournape [Thu, 19 Nov 2009 05:04:55 +0000 (05:04 +0000)]
ENH: set up MSVS_VERSION and MSVS dict while setting up msvc as well.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4453 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: catch error while canonalizing arch for host/target.
cournape [Thu, 19 Nov 2009 05:04:17 +0000 (05:04 +0000)]
BUG: catch error while canonalizing arch for host/target.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4452 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: use msvc_exists for all tools in the Visual Studio toolchain.
cournape [Thu, 19 Nov 2009 05:03:36 +0000 (05:03 +0000)]
ENH: use msvc_exists for all tools in the Visual Studio toolchain.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4451 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: handle MSVS_VERSION additionally to MSVC_VERSION, but raise deprecation warnings...
cournape [Thu, 19 Nov 2009 05:02:55 +0000 (05:02 +0000)]
ENH: handle MSVS_VERSION additionally to MSVC_VERSION, but raise deprecation warnings if used.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4450 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoREF: move vc2 to vc module.
cournape [Thu, 19 Nov 2009 05:02:08 +0000 (05:02 +0000)]
REF: move vc2 to vc module.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4449 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: use a pre-sorted list for MSVC versions to check.
cournape [Thu, 19 Nov 2009 05:01:22 +0000 (05:01 +0000)]
ENH: use a pre-sorted list for MSVC versions to check.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4448 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoDOC: add a TODO for updated vc support.
cournape [Thu, 19 Nov 2009 05:00:41 +0000 (05:00 +0000)]
DOC: add a TODO for updated vc support.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4447 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: raise an exception when we detect an error while executing the batch file.
cournape [Thu, 19 Nov 2009 04:59:58 +0000 (04:59 +0000)]
ENH: raise an exception when we detect an error while executing the batch file.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4446 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: fix get_installed_vcs such as most recent versions are the first ones.
cournape [Thu, 19 Nov 2009 04:59:23 +0000 (04:59 +0000)]
BUG: fix get_installed_vcs such as most recent versions are the first ones.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4445 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: do not set up the SDK for now - it messes up cross compilation.
cournape [Thu, 19 Nov 2009 04:58:46 +0000 (04:58 +0000)]
BUG: do not set up the SDK for now - it messes up cross compilation.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4444 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: start a new, simpler and more robust vc module.
cournape [Thu, 19 Nov 2009 04:58:09 +0000 (04:58 +0000)]
ENH: start a new, simpler and more robust vc module.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4443 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: fix cross-compilation from x86 -> x86_64 for VS 2008.
cournape [Thu, 19 Nov 2009 04:57:30 +0000 (04:57 +0000)]
BUG: fix cross-compilation from x86 -> x86_64 for VS 2008.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4442 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: do not call msvs bat file in merge_default_version, only set up version.
cournape [Thu, 19 Nov 2009 04:56:55 +0000 (04:56 +0000)]
BUG: do not call msvs bat file in merge_default_version, only set up version.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4441 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: use msvc env, not msvs to set up mslib and mslink paths.
cournape [Thu, 19 Nov 2009 04:56:16 +0000 (04:56 +0000)]
ENH: use msvc env, not msvs to set up mslib and mslink paths.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4440 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: add a wrapper around msvc_setup_env to guarantee the function is called only...
cournape [Thu, 19 Nov 2009 04:55:31 +0000 (04:55 +0000)]
ENH: add a wrapper around msvc_setup_env to guarantee the function is called only once.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4439 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoBUG: fix arch argument to pass to batfile.
cournape [Thu, 19 Nov 2009 04:54:49 +0000 (04:54 +0000)]
BUG: fix arch argument to pass to batfile.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4438 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: move user info gathering at the top of msvc_setup_env.
cournape [Thu, 19 Nov 2009 04:54:08 +0000 (04:54 +0000)]
ENH: move user info gathering at the top of msvc_setup_env.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4437 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: factor host/target handling in separate function.
cournape [Thu, 19 Nov 2009 04:53:31 +0000 (04:53 +0000)]
ENH: factor host/target handling in separate function.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4436 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: bypass complicated VisualC logic, and use the .bat file to get correct arch...
cournape [Thu, 19 Nov 2009 04:52:55 +0000 (04:52 +0000)]
ENH: bypass complicated VisualC logic, and use the .bat file to get correct arch settings instead.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4435 fdb21ef1-2011-0410-befe-b5e4ea1792b1

14 years agoENH: script_env now takes an args argument to forward arguments to the executed script.
cournape [Thu, 19 Nov 2009 04:52:17 +0000 (04:52 +0000)]
ENH: script_env now takes an args argument to forward arguments to the executed script.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4434 fdb21ef1-2011-0410-befe-b5e4ea1792b1