Commit Graph

1149 Commits

Author SHA1 Message Date
Jurko Gospodnetić
943b911a6b Made Boost Build's internal core_action_output.py test a bit more strict.
[SVN r79716]
2012-07-24 07:36:58 +00:00
Jurko Gospodnetić
3eca1c873f Updated the internal Boost Build project_test3.py test to not test for the complete Boost Jam output but only the important parts. This way warnings shown at misconfigured tester locations will no longer cause this test to fail.
[SVN r79702]
2012-07-23 18:19:34 +00:00
Jurko Gospodnetić
f951fb1559 Updated Boost Build's internal testing system to allow for more detailed output and file content line testing - can now test for multiple lines in sequence, with or without having other lines in between.
[SVN r79701]
2012-07-23 18:10:36 +00:00
Jurko Gospodnetić
9076cd1e0a Reduced the time internal Boost Build testing system needs to wait after a build system test run to be sure that file touch/write operations bump up their target file's modification timestamps enough for the next build system test run to correctly recognize them as modified. Better commented related code.
[SVN r79699]
2012-07-23 17:19:01 +00:00
Jurko Gospodnetić
5522e70bd8 Boost Build internal testing framework cleanup - minor stylistic changes (Python string literal quoting, line wrapping, trailing spaces, updated expected output line leading & trailing spaces to match the actual output).
[SVN r79698]
2012-07-23 16:54:18 +00:00
Jurko Gospodnetić
a73598ec7b Updated Boost Build's internal dependency_test.py unit test report additional information on failure. Minor stylistic comment change.
[SVN r79680]
2012-07-22 20:35:40 +00:00
Jurko Gospodnetić
0cb44ba189 Minor stylistic change.
[SVN r79666]
2012-07-22 08:17:32 +00:00
Jurko Gospodnetić
66f0980384 Fixed a Boost Build bug with path feature requirements not getting expanded to a correct relative path depending on where the build was getting run from, if added by an indirect conditional feature rule. Fixes ticket http://svn.boost.org/trac/boost/ticket/7144. Thanks to dimak <dvb.kharkov _at_ gmail _dot_ com> for reporting this and preparing a reproducible test case.
[SVN r79665]
2012-07-22 07:40:52 +00:00
Jurko Gospodnetić
0f5763ba68 Cleaned up the internal Boost Build path_features.py test script to make it clearer which tests in it are decoupled from each other. Minor stylistic changes.
[SVN r79646]
2012-07-22 05:14:00 +00:00
Jurko Gospodnetić
1082919fb8 Corrected a Boost Build bug causing it to not report an error if a generator needed to determine its target name itself when a source target passed to it as third or later did not have the same name as the first one. Added a related internal Boost Build unit test.
Caught and reported by Adder <adder.thief _at_ gmail.com>.

[SVN r79629]
2012-07-20 19:12:59 +00:00
Jurko Gospodnetić
f9e355ede9 Updated the internal Boost Build testing framework to support writing or touching files in its test folder without waiting for a timestamp change from a previous build run. This should allow tweaking the tests to run with a bit less delay (up to 2s as currently implemented) between test runs where possible.
[SVN r79628]
2012-07-20 19:06:07 +00:00
Jurko Gospodnetić
ac6b378f22 Refactored the internal Boost Build generators-test.py test into a single Python script not depending on externally prepared files to make it easier to extend with additional tests unrelated the current one but reusing the functionality prepared for the already existing tests. Corrected a minor appender.jam comment typo in the process.
[SVN r79627]
2012-07-20 19:03:50 +00:00
Jurko Gospodnetić
89f740660f Boost Jam/Build code cleanup - minor stylistic changes.
[SVN r79620]
2012-07-20 14:20:55 +00:00
Jurko Gospodnetić
a80848695b Corrected the internal Boost Build library_order.py unit test - updated its test run parameter passing to use lists of strings instead of simple strings (was causing assertion failures with the latest internal Boost Build testing framework implementation), minor stylistic changes.
[SVN r79600]
2012-07-19 12:30:48 +00:00
Jurko Gospodnetić
0e4d14bfe6 Added a new internal Boost Build test illustrating a bug in the current Boost Build/Jam implementation and causing targets to be rebuilt when not necessary in some cases.
[SVN r79599]
2012-07-19 11:53:30 +00:00
Jurko Gospodnetić
e85732818d Corrected internal Boost Build testing framework bug causing it to report detected filesystem changes from a previous instead of the failed test run when the failure was caused by an unexpected exit code, unexpected stderr content, unexpected stdout content or exceeded maximal test duration.
[SVN r79597]
2012-07-19 10:16:41 +00:00
Jurko Gospodnetić
e0f7059b26 Removed an unused variable from one of the internal Boost Build tests.
[SVN r79596]
2012-07-19 04:39:42 +00:00
Jurko Gospodnetić
3c935afa5f Cleaned up Boost Build's internal 'parallel multi-file actions' tests a bit - removed some dead code and updated description comments.
[SVN r79595]
2012-07-19 04:11:50 +00:00
Jurko Gospodnetić
e6a3faf35d Corrected the internal Boost Build generators_test.py unit test to correctly split its appender 'action' into separate appender1 actions (building only a single target each), and still have them all called correctly together or none at all. Old and too-simplistic solution registered called completely independent actions for each target, causing Boost Jam to build only some of the targets in some cases, unlike what it would have done had they all actually been built by a single action.
[SVN r79579]
2012-07-18 12:23:18 +00:00
Jurko Gospodnetić
c16ae1c68a Boost Jam/Build cleanup - minor stylistic changes (comment updates; line wrapping; removed some dead/unused function declarations, parameters & code; declared variables as const; reordered some #include directives alphabetically, removed some unnecessary ones and added several missing ones discovered by the reordering).
[SVN r79569]
2012-07-17 08:56:49 +00:00
Jurko Gospodnetić
678fe54e15 Updated Boost Build tests to run the collect_debug_info.py test only when running the tests non-interactively, i.e. when collecting the test results in an xml output file. When running the tests interactively and observing the results on the console there is no need for this always-failing test to spoil the 'all tests passed' result - the user will generally know everything about his system and can still run this test directly if he wishes to see what it would have returned.
[SVN r79478]
2012-07-13 19:17:04 +00:00
Jurko Gospodnetić
53576e4073 Boost Build testing system code cleanup. Mainly stylistic changes + stopped using old deprecated string module functions in the test_all.py module.
[SVN r79476]
2012-07-13 19:03:54 +00:00
Jurko Gospodnetić
8bc155d307 Boost Build testing system cleanup - separated the concept of the 'time when a test run finished' from 'highest timestamp assigned by a test run'. This is a tiny preparation step towards making Boost Build support timestamp resolutions finer than 1 second.
[SVN r79475]
2012-07-13 18:43:18 +00:00
Jurko Gospodnetić
740cb760de Minor stylistic internal Boost Build testing system changes.
[SVN r79474]
2012-07-13 18:30:09 +00:00
Jurko Gospodnetić
09e4708742 Boost Build cleanup - removed an extra Python module import from the internal core_at_file.py Boost Build test.
[SVN r79473]
2012-07-13 18:20:34 +00:00
Jurko Gospodnetić
9905deabee Fixed a Boost Jam error reporting bug where it would report the error as originating from an incorrect file & line in case the error occurred after parsing the final token in some file. It usually reported it as the file including the file in question or, if the file is the main project build script not included from anywhere, then it reported the error as originating from file '(builtin)' and line -1. Added a related internal Boost Build unit test (core_source_line_tracking.py).
[SVN r79449]
2012-07-12 13:21:46 +00:00
Jurko Gospodnetić
343b4d6532 Updated the internal Boost Build testing system to use the Python subprocess module (introduced in Python 2.4) for running external processes instead of popen2 (deprecated since Python 2.6). We are already using Python 2.4 features in this codebase so there is no need to support Python releases older than 2.4.
Related changes:
  * BoostBuild.Tester & TestCmd.TestCmd interfaces now accept external process parameters as a list of strings, thus avoiding problems with parsing arguments containing spaces.
  * Avoided a potential process hang in case an external process being run prints out enough output to fill up the OS's pipe buffer (OS would pause the process until someone read the data from the pipe but the testing framework would not do this until the process in question had terminated).

[SVN r79448]
2012-07-12 12:55:25 +00:00
Jurko Gospodnetić
c5e5b5324e Boost Build cleanup - minor stylistic internal Boost Build test script & testing system changes.
[SVN r79445]
2012-07-12 12:22:14 +00:00
Jurko Gospodnetić
b9ed6db9e3 Updated the documentation comment for Boost Build testing system's BoostBuild.Tester constructor with information on its pass_d0 parameter.
[SVN r79257]
2012-07-04 09:13:41 +00:00
Jurko Gospodnetić
1791d078cc Boost Build/Jam cleanup - stylistic code changes.
[SVN r79244]
2012-07-03 15:58:26 +00:00
Jurko Gospodnetić
bcbd74f5be Updated Boost Build test_rc.py test to make its internal dummy-RC toolset always use the .obj suffix when generating OBJ targets. This is another attempt at correcting failures for this test on non-Windows platforms.
[SVN r79231]
2012-07-02 18:59:11 +00:00
Jurko Gospodnetić
8704397f4a Yet another attempt at getting Boost Build's test_rc.py test to use its internal dummy-RC toolset correctly. Now disabled reading any external Boost Build configuration files to avoid having other, not actually used, toolsets (e.g. gcc) change the OBJ target suffix used by Boost Build.
[SVN r79225]
2012-07-02 09:50:12 +00:00
Jurko Gospodnetić
60184aec1f Updated Boost Build test_rc.py test to use its internal dummy-RC toolset even when the test site has a different toolset configured in its site-config.jam or user-config.jam configuration files. Added more detailed output information in case this test fails.
[SVN r79221]
2012-07-01 23:53:22 +00:00
Jurko Gospodnetić
c48a0c9ddc Fixed a Boost Build testing framework bug causing occasional & sporadic failures when you have one test build run making some changes, then another making no changes and then try to wait for the clock ticker to change enough to make newly touched or created files newer than the ones already existing on the system. In those cases the second test build run would clear the 'last build finished' timestamp and newly touched files might end up with the last modification timestamp equal to those already existing in the system. Also removed unnecessary wait_for_time_change_since_last_build() calls in BoostBuild.Tester.copy() and BoostBuild.Tester.rm().
[SVN r79173]
2012-06-29 18:24:52 +00:00
Jurko Gospodnetić
18b914bd54 Minor stylistic change in the Boost Build testing framework.
[SVN r79171]
2012-06-29 18:18:28 +00:00
Jurko Gospodnetić
173d1e16ff Updated Boost Build's testing system to close its files explicitly after it is done with them instead of leaving that up to the Python garbage collector.
[SVN r79170]
2012-06-29 18:17:36 +00:00
Jurko Gospodnetić
8ddc6dfeb5 Updated Boost Build's alias.py test to display additional information in case of failure.
[SVN r79169]
2012-06-29 18:10:25 +00:00
Jurko Gospodnetić
8c46361707 Updated the Boost Build test_rc.py test to use an internal dummy toolset to test the functionality in gc.jam. Before, using the some toolsets (e.g. gcc toolset on a non-Windows platform) was using the silent 'null' resource compiler which did not display the output messages required by this test.
[SVN r79168]
2012-06-29 18:07:10 +00:00
Jurko Gospodnetić
41125133ad Boost Build cleanup - minor stylistic changes & comment typo corrections.
[SVN r79166]
2012-06-29 17:59:49 +00:00
Jurko Gospodnetić
270d13afe1 Updated the Boost Build test_rc.py test to display some additional debugging information in case of failures to help debugging some detected test failures on different non-Windows Boost library test runners.
[SVN r79155]
2012-06-28 12:27:44 +00:00
Jurko Gospodnetić
58fca42099 Updated the Boost Build collect_debug_info.py test to correctly parse version variable information from Boost Jam output when they contain colon characters. Minor stylistic changes.
[SVN r79151]
2012-06-28 09:11:55 +00:00
Jurko Gospodnetić
0170776ece Updated the Boost Build core_language.py test to not fail when run on Windows OSs that have a HKLM\SYSTEM\CurrentControlSet\AddServices key, as detected on the VeecoFTC Boost library tester Windows XP Professional SP3 machine.
[SVN r79150]
2012-06-27 22:50:07 +00:00
Jurko Gospodnetić
317f9b1c51 Minor stylistic changes in the Boost Build core_language.py test.
[SVN r79149]
2012-06-27 22:46:10 +00:00
Jurko Gospodnetić
9dc325c5de Added a new Boost Build test - testing the rc.jam toolset. Guards against a regression causing targets depending on a .rc script file to rebuild every time if the .rc script includes a resource file newer than itself.
[SVN r79148]
2012-06-27 22:20:33 +00:00
Jurko Gospodnetić
29c405650d Minor correction to unused code in the collect_debug_info.py Boost Build test.
[SVN r79147]
2012-06-27 20:24:10 +00:00
Jurko Gospodnetić
7f4aff4adb Corrected the Boost Build core_action_output.py test that had a typo causing it to fail when run under a non-Windows OS.
[SVN r79136]
2012-06-27 13:14:44 +00:00
Jurko Gospodnetić
3b7ea5210d Updated the Boost Build collect_debug_info.py test to avoid an assertion failure reported by some Boost library testers (e.g. Sandia-darwin-4.4) and see more information on what caused them.
[SVN r79132]
2012-06-27 09:56:49 +00:00
Jurko Gospodnetić
aff0ad7f04 Updated Boost Build's collect_debug_info.py test to report the used Boost Jam/Build version information and commented out its environment variable usage testing.
[SVN r79126]
2012-06-27 00:48:26 +00:00
Jurko Gospodnetić
01321fb209 Added a new Boost Build/Jam -p command line option handling test.
[SVN r79124]
2012-06-26 20:27:59 +00:00
Jurko Gospodnetić
a690d471a4 Updated the Boost Build core_nt_cmd_line.py test to make it compatible with the ancient Python releases prior to Python version 2.5. It seems those versions do not support the 'x = 1 if condition else 2' construct and report it as a SyntaxError.
[SVN r79119]
2012-06-26 17:46:37 +00:00
Jurko Gospodnetić
353ea4756e Corrected the Boost Build core_nt_cmd_line.py test failure caused by empty actions now getting reported to stdout correctly. Updated the test to make sure all the whitespace action content gets printed out correctly.
[SVN r79106]
2012-06-26 11:03:29 +00:00
Jurko Gospodnetić
bca364c875 Cleaned up the Boost Build core_d12.py test a bit. Still failing with the current Boost Jam implementation.
[SVN r79100]
2012-06-26 10:25:00 +00:00
Jurko Gospodnetić
e17fa79213 Updated Boost Jam to execute commands directly on Windows when that is requested by setting the JAMSHELL variable to '%', the same as for Unix OSs, and not change the user's request under covers to running the command via the default shell if it is 8191 characters long or shorter. Renamed the related Boost Build core_nt_line_length.py test to core_nt_cmd_line.py and updated it with more detailed test cases.
[SVN r79097]
2012-06-25 23:01:59 +00:00
Jurko Gospodnetić
d55d846b27 Updated Boost Build's internal test system to not report an error as if it was not able to run the external diff tool when that tool returns 1 to indicate that the two files given to it are different.
[SVN r79037]
2012-06-23 23:16:01 +00:00
Jurko Gospodnetić
559765ff88 Minor stylistic change in the Boost Build test system.
[SVN r79036]
2012-06-23 23:12:21 +00:00
Jurko Gospodnetić
16016a7b7a Minor stylistic changes in Boost Build tests.
[SVN r79035]
2012-06-23 23:07:29 +00:00
Jurko Gospodnetić
9f82cfe8c3 Cleaned up the Boost Build module_actions.py test. Now the test's source file no longer needs to contain lines with trailing spaces.
[SVN r79034]
2012-06-23 21:18:32 +00:00
Jurko Gospodnetić
838568f286 Minor Boost Build test system Python code cleanup - removed unnecessary trailing semicolons.
[SVN r79003]
2012-06-19 10:08:33 +00:00
Jurko Gospodnetić
283e2bf18e Added support for explicitly failing Boost Build tests without displaying the changes caused by the last build command.
[SVN r79002]
2012-06-19 10:06:12 +00:00
Jurko Gospodnetić
bcbfaa30e9 Updated the Boost Build core_arguments.py test to test all of the supported 19 Boost Jam positional arguments instead of only 9.
[SVN r78984]
2012-06-18 12:59:42 +00:00
Jurko Gospodnetić
147252d9e1 Boost Build's core_arguments.py test now correctly tests whether or not specific arguments passed to a rule cause Boost Jam to exit with an error code.
[SVN r78981]
2012-06-18 11:53:56 +00:00
Jurko Gospodnetić
83b5bd6332 Cleaned up the Boost core_arguments.py test code to reduce duplication.
[SVN r78980]
2012-06-18 11:52:09 +00:00
Jurko Gospodnetić
304712946d Removed redundant module import in Boost Build's core_arguments.py test.
[SVN r78977]
2012-06-18 11:19:32 +00:00
Jurko Gospodnetić
6020b81c8d Corrected a slight error reporting defect in the Boost Build's unit-testing system.
[SVN r78974]
2012-06-17 14:44:41 +00:00
Jurko Gospodnetić
f7aeca291a Added a missing source file for the generators_test.py Boost Build test that got missed in a previous commit (revision [78964]).
[SVN r78971]
2012-06-16 06:25:16 +00:00
Jurko Gospodnetić
6beaaefcb0 Updated the generators_test.py Boost Build test to explicitly check some conditions that were before only listed in test code comments but never explicitly tested.
[SVN r78970]
2012-06-16 02:45:09 +00:00
Jurko Gospodnetić
d90686df32 Made the Boost Build example_make.py test explicitly use its own Python interpreter instead of relying on the 'python' executable being available on the system path.
[SVN r78969]
2012-06-16 02:41:44 +00:00
Jurko Gospodnetić
cb7f8671ab Corrected a bug in the Boost Build testing framework causing it to read file content with an additional newline character at the end when it already had one there instead of when it was missing.
[SVN r78968]
2012-06-16 02:29:36 +00:00
Jurko Gospodnetić
ede5a51520 Comment typo correction.
[SVN r78967]
2012-06-16 02:27:03 +00:00
Jurko Gospodnetić
aad774f8a1 Updated the rest of the Boost Build generator_selection.py test to not use the default CPP --> OBJ generator and use a custom 'simple copy file generator' instead to avoid problems with misconfigured test runners. Also made the test a bit stricter. This should fix the test failing on Sandia-darwin-intel test runners.
[SVN r78966]
2012-06-16 01:29:30 +00:00
Jurko Gospodnetić
a2ef66ba29 Minor stylistic changes.
[SVN r78965]
2012-06-16 01:22:58 +00:00
Jurko Gospodnetić
f33d140ee7 Reorganized the Boost Build generators-test.py test completely. Now no longer used regular OBJ, LIB & EXE target generators to avoid having to deal with specific compiler/linker features, e.g. some compilers causing test failures by returning an error code on a warning about an unexpected source file .target_cpp extension being used. Removed lots of duplication, made the test code much more readable, reviewed and cleaned up all the comments.
Broken commit - missing the appender.jam source file.

[SVN r78964]
2012-06-16 00:46:51 +00:00
Jurko Gospodnetić
f98d3aef09 Made the generators_test.py Boost Build test more detailed.
[SVN r78962]
2012-06-15 22:46:27 +00:00
Jurko Gospodnetić
5695c65f8b Extracted static/shared library testing out of the generators_test.py Boost Build test and into a separate new static_and_shared_library.py test. Updated the test a bit in the process to make it test some additional use cases.
[SVN r78961]
2012-06-15 20:17:17 +00:00
Jurko Gospodnetić
fd2c21b147 Minor stylistic changes.
[SVN r78960]
2012-06-15 19:20:21 +00:00
Jurko Gospodnetić
121a0381d5 Minor stylistic changes.
[SVN r78959]
2012-06-15 19:13:27 +00:00
Jurko Gospodnetić
12d90df529 Updated the Boost Build generator_selection.py test to not use the default CPP --> OBJ generator and use a custom 'simple copy file generator' to avoid problems with some test runners using compilers/toolsets refusing to compile sources with unknown extensions. This should fix the test failing on IBM's AIX test runner.
[SVN r78952]
2012-06-15 06:57:02 +00:00
Jurko Gospodnetić
998067a318 Minor stylistic changes.
[SVN r78951]
2012-06-15 06:52:28 +00:00
Jurko Gospodnetić
f502135687 Comment typo correction. Trimmed trailing spaces.
[SVN r78950]
2012-06-15 06:04:53 +00:00
Jurko Gospodnetić
b9ef06781a Code cleanup - removed an unneeded module import from Boost Build's startup_v2.py test.
[SVN r78946]
2012-06-14 12:31:27 +00:00
Jurko Gospodnetić
5c6c7e1cf6 Updated Boost Build's startup_v2.py test to cleanly report and there is an unexpected boost-build.jam file found in any of the folders along the test's current working folder path. Before, such a file would break the test making sure Boost Build correctly reports if such a file is missing, and in such a way that made debugging the problem difficult.
[SVN r78945]
2012-06-14 12:27:24 +00:00
Jurko Gospodnetić
aa5bbb84c1 Minor stylistic changes made to Boost Build's startup_v2.py test.
[SVN r78944]
2012-06-14 12:19:13 +00:00
Jurko Gospodnetić
27032c15b2 Corrected a defective Boost Build configuration.py test that gets run only on non-Windows platforms.
[SVN r78921]
2012-06-13 12:36:55 +00:00
Jurko Gospodnetić
0c1b6c255b Added a new, temporary, always-failing Boost Build test named collect_debug_info.py. Used to collect additional debugging information about specific test sites, e.g. Python & OS version. Currently collects information required for debugging detected configuration.py test failures. Registered expected Boost library test failures.
[SVN r78918]
2012-06-13 01:02:02 +00:00
Jurko Gospodnetić
9ec86fca3b Corrected how Boost Build's configuration.py test detects whether the current platform interprets setting an environment variable to an empty string literally or as unsetting that variable.
[SVN r78917]
2012-06-13 00:17:28 +00:00
Jurko Gospodnetić
7595fd910b Corrected a few Python errors that snuck trough in the previous two Boost Build configuration.py test commits.
[SVN r78916]
2012-06-13 00:04:53 +00:00
Jurko Gospodnetić
eb2c285ad9 Corrected a bug in the Boost Build configuration.py test that was causing it to leave behind an invalid BOOST_BUILD_USER_CONFIG environment variable setting after it finishes running with a Python interpreter prior to version 2.6 (calling os.environ.pop() did not actually clear the environment variable in question).
[SVN r78915]
2012-06-13 00:01:01 +00:00
Jurko Gospodnetić
af4fc9b85b Minor Boost Build configuration.py test cleanup.
[SVN r78914]
2012-06-12 23:55:54 +00:00
Jurko Gospodnetić
d3a49d8cb4 Cleaned up the Boost Build testing framework implementation a bit.
[SVN r78913]
2012-06-12 23:51:47 +00:00
Jurko Gospodnetić
a7d4564872 Removed temporary '--plinky-plonky' Boost Build debugging code.
[SVN r78906]
2012-06-12 08:11:48 +00:00
Jurko Gospodnetić
5db647087b Added some temporary Boost Build debugging code as a part of the effort to track down some of the mysterious Boost Build test failures reported by the Boost library regression tests (namely, how on some platforms we are encountering empty target ids). Related code enabled using the '--plinky-plonky' command-line option.
[SVN r78891]
2012-06-11 13:22:17 +00:00
Jurko Gospodnetić
e636d36fa4 Minor sylistic changes - trimmed trailing spaces.
[SVN r78890]
2012-06-11 12:54:29 +00:00
Jurko Gospodnetić
34b5b33315 Cleaned up how Boost Build's test system reports unhandled exceptions. Now no longer uses deprecated global sys.exc_* variables and prints out the exception stack trace correctly.
[SVN r78889]
2012-06-11 12:53:54 +00:00
Jurko Gospodnetić
aa71370570 Corrected a Python error in the configuration.py Boost Build test script that might have caused the test to crash on startup if the surrounding environment had the 'UGNABUNGA_FOO_BAR_BAZ_FEE_FAE_FOU_FAM' environment set.
[SVN r78886]
2012-06-11 02:15:09 +00:00
Jurko Gospodnetić
78d1c7f9f4 Removed temporary debugging code from the configuration.py Boost Build test, now made redundant by better unhandled exception handling implemented in the main Boost Build test runner script.
[SVN r78885]
2012-06-11 02:13:13 +00:00
Jurko Gospodnetić
1764edd076 Minor stylistic changes.
[SVN r78884]
2012-06-11 02:09:24 +00:00
Jurko Gospodnetić
24002030db Made the main Boost Build test runner script correctly report unhandled and unexpected exceptions raised from specific test scripts. Before, such an exception would terminate the whole test run while now it gets cleanly reported as just another test failure. This makes Boost library regression test results correctly report any Python errors (e.g. using a Python feature not supported by the used Python version) which previously developers had no built-in way of getting feedback about.
[SVN r78883]
2012-06-11 02:02:59 +00:00
Jurko Gospodnetić
b8d4657d9c Made the main Boost Build test runner script not assume that successful tests will leave behind no annotations, thus making result processing with and without XML output symmetric. Before, with XML output, if a passed test left behind some annotations, they would get reported as annotations for the next failing test.
[SVN r78882]
2012-06-11 01:58:05 +00:00
Jurko Gospodnetić
6acb36bc11 Removed some 'regression' test specialized debugging code from the main Boost Build test runner script that seems to have been left behind from some debugging efforts. It would cause annotations to be displayed to the user if that test failed and no XML output was requested, while for all the other failed tests such annotations are ignored. This seems unnecessary since this output can be collected by directly running the regression.py test script, same as what is done with any other failed test.
[SVN r78881]
2012-06-11 01:55:43 +00:00
Jurko Gospodnetić
05887be75a Made the main Boost Build test runner script better align its test results on screen when not run with XML output. Now the maximum test name length is no longer hardcoded.
[SVN r78880]
2012-06-11 01:49:52 +00:00
Jurko Gospodnetić
028a05d91a Comment typo correction.
[SVN r78879]
2012-06-11 01:47:08 +00:00
Jurko Gospodnetić
34e2f59a2c Minor stylistic cleanup in the main Boost Build test runner script.
[SVN r78878]
2012-06-11 01:46:24 +00:00
Jurko Gospodnetić
bcf6b92952 Stopped using the Python string.format() method in the Boost Build configuration.py test to support running that test using Python versions older than 2.6.
[SVN r78875]
2012-06-11 00:26:11 +00:00
Jurko Gospodnetić
7f65d1e113 Updated Boost Build configuration.py test debugging code to re-raise any non-SystemExit unhandled exceptions as SystemExit exceptions to avoid aborting the test runner test_all.py script.
[SVN r78873]
2012-06-10 16:41:22 +00:00
Jurko Gospodnetić
3c23ae405f Added additional temporary debugging code to the Boost Build configuration.py test to help with debugging related test failures reported on different platforms.
[SVN r78871]
2012-06-10 16:18:33 +00:00
Jurko Gospodnetić
673c3d765c Minor stylistic changes.
[SVN r78870]
2012-06-10 16:02:02 +00:00
Jurko Gospodnetić
d029652eee Temporarily commented out all Boost Build configuratio.py test code related to setting empty-string environment variables. Part of the effort to make this test pass on all supported platforms - trying to make sure this is the part of the test causing problems on some non-Windows platforms.
[SVN r78869]
2012-06-10 10:05:04 +00:00
Jurko Gospodnetić
7211406abb Updated the configuration.py Boost Build test to adapt to whether the platform running that test supports setting an environment variable to an empty string value. Made the same test use explicitly specified test case ids since now some of those test cases may be skipped on specific platforms.
[SVN r78867]
2012-06-10 00:54:13 +00:00
Jurko Gospodnetić
90e7e882e7 Update the Boost Build testing framework to work correctly when calling Boost Jam with arguments containing extra spaces. Such argument strings get split on whitespace characters and cause the constructed argument list to contain empty elements which code using that list was not handling correctly.
[SVN r78866]
2012-06-09 23:19:07 +00:00
Jurko Gospodnetić
9f58e0d2da Updated the configuration.py Boost Build test to display more detailed information about which of its test cases failed exactly. Now each test case there displays a unique identifier on stdout when run.
[SVN r78865]
2012-06-09 23:02:42 +00:00
Jurko Gospodnetić
1d6b11b0db Minor stylistic configuration.py Boost Build test changes.
[SVN r78864]
2012-06-09 22:58:35 +00:00
Jurko Gospodnetić
475d86e17e Updated the Boost Build configuration.py test so it tests explicitly disabling user configuration loading and tests specifying the user configuration file using the BOOST_BUILD_USER_CONFIG environment variable. This fixes invalid test failures when the BOOST_BUILD_USER_CONFIG environment was set on the test runner machines.
[SVN r78857]
2012-06-08 08:23:58 +00:00
Jurko Gospodnetić
b26297d8f3 Commented two new test case ideas for Boost Build's timedata test - 'time' targets with sources representing more than one virtual target and sources representing a virtual target that gets built by multiple actions in sequence.
[SVN r78684]
2012-05-27 15:10:24 +00:00
Jurko Gospodnetić
6e3f389e6f Fix for Boost Build testing.jam module's time action on Windows. It now no longer outputs extra quote characters when run under the Windows cmd shell and so no longer fails when Boost Build passes it an even number of sources. Updated related unit test (to see the full effect run using the Windows cmd shell and the Cygwin gcc toolset as this test still fails for other reasons when using the msvc toolset). Better commented related code.
[SVN r78671]
2012-05-27 06:36:49 +00:00
Jurko Gospodnetić
bd4d630f69 Added a new Boost Build unit test exercising the Jam variable expansion in actions.
[SVN r78670]
2012-05-27 00:00:30 +00:00
Jurko Gospodnetić
2fd4ebc4cc Added a new Boost Build unit test exercising the SPLIT_BY_CHARACTERS built-in rule.
[SVN r78669]
2012-05-26 23:27:33 +00:00
Jurko Gospodnetić
cd29f50042 Made the Boost Build core-language test pass on Windows 7. This test expects certain registry keys to exist under HKLM\SYSTEM\CurrentControlSet but Windows 7 added an additional 'Policies' one there.
[SVN r78626]
2012-05-25 18:59:05 +00:00
Steven Watanabe
b7d2e4d06c Make unit-test handle paths containing spaces.
[SVN r78538]
2012-05-22 04:20:29 +00:00
Steven Watanabe
d3b0ec3508 Handle cycles when determining target fate in make0.
[SVN r78259]
2012-04-30 01:21:04 +00:00
Steven Watanabe
4fbd8fa775 Pass the correct argument to make1breakcycle and make sure that we don't add a spurious self-dependency.
[SVN r78252]
2012-04-29 04:27:55 +00:00
Steven Watanabe
9e04ceafc3 Stop targets that depend on an include cycle from updating before all the required generated headers are built.
[SVN r78250]
2012-04-29 01:06:55 +00:00
Steven Watanabe
e6b3927ef3 Detect cycles created by rescanning.
[SVN r78249]
2012-04-28 22:05:28 +00:00
Steven Watanabe
52b16cdc4d Add test of rescanning for headers.
[SVN r78248]
2012-04-28 19:51:01 +00:00
Steven Watanabe
f7c880765e Reduce pauses.
[SVN r77648]
2012-03-30 14:52:38 +00:00
Steven Watanabe
ee897c8bd3 Test for ECHO.
[SVN r77646]
2012-03-30 14:04:44 +00:00
Steven Watanabe
2a23d156c7 Test for EXIT
[SVN r77644]
2012-03-30 12:51:59 +00:00
Steven Watanabe
33ddd8221b Fix test
[SVN r77524]
2012-03-25 00:10:32 +00:00
Steven Watanabe
3fd7ecbccd More correct behavior of -n with FAIL_EXPECTED targets and across multiple calls to UPDATE_NOW.
[SVN r76045]
2011-12-18 16:51:43 +00:00
Steven Watanabe
295e3d222c Fix the result of while.
[SVN r75945]
2011-12-14 21:49:34 +00:00
Steven Watanabe
01b1d78744 Fix a subtle problem in the result of if statements.
[SVN r75944]
2011-12-14 21:33:26 +00:00
Steven Watanabe
ce2ca5e4f1 Restore the original BACKTRACE behavior that I inadvertently changed.
[SVN r75929]
2011-12-13 00:03:38 +00:00
Steven Watanabe
fc186f2603 Tests for join
[SVN r75881]
2011-12-09 23:21:40 +00:00
Steven Watanabe
feb63badf1 Remove project-test1. It's hopelessly broken and not run by test_all.py.
[SVN r75880]
2011-12-09 19:37:53 +00:00
Steven Watanabe
e187955f5e Update unused.py and add it to test_all.py.
[SVN r75879]
2011-12-09 18:19:50 +00:00
Steven Watanabe
cf2e6f77ed Fix direct_request_test and add it to test_all.py.
[SVN r75877]
2011-12-09 16:08:44 +00:00
Steven Watanabe
97a17f42ee Remove some out-dated tests. The functionality is already tested elsewhere, so they don't need to be ported.
[SVN r75873]
2011-12-09 04:59:16 +00:00
Steven Watanabe
791ef6d70a Handle STDOUT and STDERR in @ files.
[SVN r75872]
2011-12-09 03:56:02 +00:00
Steven Watanabe
0dc10e9d7d Fix tests using sleep on Windows.
[SVN r75871]
2011-12-09 01:36:04 +00:00
Steven Watanabe
c9f73695e3 Remove file_name_handling.py. The functionality that it was testing was a horrible hack that never really worked to solve a problem that has since been fixed in another way.
[SVN r75857]
2011-12-07 19:49:17 +00:00
Steven Watanabe
7eb75eabb5 Fix the two example tests.
[SVN r75855]
2011-12-07 17:45:52 +00:00
Steven Watanabe
91252f29d1 Grep for modules with a __test__ rule.
[SVN r75854]
2011-12-07 17:33:49 +00:00
Steven Watanabe
4f0085fc89 Avoid copying the entire test directory.
[SVN r75853]
2011-12-07 17:26:08 +00:00
Steven Watanabe
c555793cd3 Remove testing prototype.
[SVN r75851]
2011-12-07 17:03:55 +00:00
Steven Watanabe
ec4d53ec97 Remove tests from Boost.Build V1.
[SVN r75850]
2011-12-07 16:52:58 +00:00
Steven Watanabe
67c759581d Integrate everything useful from check-jam-patches into the Python test system.
[SVN r75835]
2011-12-07 05:05:03 +00:00
Steven Watanabe
71b24b5005 Integrate the tests in test/engine/ into the Python test scripts.
[SVN r75834]
2011-12-07 02:43:29 +00:00
Steven Watanabe
c8480a9cf5 Try to test the language semantics thoroughly
[SVN r75738]
2011-11-30 00:06:31 +00:00
Steven Watanabe
e53d9ada43 Fix a few test problems on cygwin and mingw
[SVN r75737]
2011-11-30 00:03:54 +00:00
Vladimir Prus
d7e539e68a Adjust configuration.py to Boost.Build/Python.
[SVN r75506]
2011-11-16 13:00:41 +00:00
Steven Watanabe
889fff3e70 Fix Jamfile loading for Boost.Test.
[SVN r75407]
2011-11-08 15:54:54 +00:00
Vladimir Prus
d4c51760cb Fix the functionality of ignoring using config in Python port.
[SVN r75110]
2011-10-25 08:26:40 +00:00
Vladimir Prus
38d95bfc4e Fix conditionals_multiple.py test in Boost.Build/Python.
Patch from Georgy Gritsenko.


[SVN r75109]
2011-10-25 08:05:06 +00:00
Vladimir Prus
a52f70a901 Adjust the 'prebuilt' test to use the 'os' module, to help Python port.
[SVN r75032]
2011-10-18 08:58:06 +00:00
Jürgen Hunold
0d73eb1f3e Fix #5802: Add response file support for moc.
[SVN r74058]
2011-08-25 18:09:59 +00:00
Jürgen Hunold
128b44ce04 Maintenance and Qt-4.7.x support
[SVN r73300]
2011-07-22 12:24:17 +00:00
Vladimir Prus
ff650d6ff1 Unbreak Boost.Build tests
[SVN r72883]
2011-07-03 21:05:59 +00:00
Steven Watanabe
9e87df467c Implement a preprocessed rule for generating preprocessed source files. Refs #5390. This is not yet complete as it is only implemented for gcc and msvc.
[SVN r71094]
2011-04-07 23:41:19 +00:00
Vladimir Prus
e1f1c99d2f Move engine tests. Remove some releng bits that were useful only for
standardlone engine.


[SVN r68591]
2011-02-01 08:08:56 +00:00
Daniel James
c44506a7e3 Link fixes.
[SVN r66273]
2010-10-30 14:32:50 +00:00
Vladimir Prus
e42df53686 Fix test/using.py.
[SVN r64639]
2010-08-06 13:04:21 +00:00
Vladimir Prus
6182a77099 Preserve current project across 'using' statements.
[SVN r64638]
2010-08-06 13:02:27 +00:00
Vladimir Prus
b0805afaa2 Do not make source-location attribute always absolute.
Also, adjust reporting and expectations for metatarget reference
recursion.


[SVN r64636]
2010-08-06 12:45:48 +00:00
Vladimir Prus
1b4c2cf91d Fix alternative selection and some error reporting and a test.
[SVN r64635]
2010-08-06 12:32:34 +00:00
Vladimir Prus
ac7f0272b9 Fix lots of things.
[SVN r64625]
2010-08-06 08:40:42 +00:00
Vladimir Prus
67cb81915b Remove unused bits
[SVN r64613]
2010-08-05 09:11:17 +00:00
Vladimir Prus
c411fb609b Port build/configure.jam.
Also allow to expose Python class to Jam, which fixes
tag.py and inline.py testcases.


[SVN r64610]
2010-08-05 06:22:58 +00:00
Vladimir Prus
b679616a3b Ubreak tests/dll_path.py in non-python mode.
[SVN r64593]
2010-08-04 10:24:59 +00:00
Vladimir Prus
707aca5155 Somewhat fix searched libraries.
[SVN r64554]
2010-08-02 21:27:33 +00:00
Vladimir Prus
1241fa5b84 Fix test/suffix.py
[SVN r64553]
2010-08-02 20:24:50 +00:00
Vladimir Prus
7052e98b3a Make test/standalone.py pass.
[SVN r64549]
2010-08-02 17:30:46 +00:00
Vladimir Prus
d675ae0aea Initial support for making Python module act as project.
[SVN r64548]
2010-08-02 16:53:42 +00:00
Vladimir Prus
bd0c1a9b1b Partially upgrade build/generators.py
[SVN r64539]
2010-08-02 14:15:50 +00:00
Vladimir Prus
f4a0ff6125 Fix the 'chain' and 'inherited_dependency' tests.
[SVN r64460]
2010-07-30 08:46:20 +00:00
Vladimir Prus
b80c89386a Fix expected status
[SVN r64433]
2010-07-29 11:40:00 +00:00
Vladimir Prus
487f970c15 Port notfile.py. Attempt to clean the mess with decorating action names.
[SVN r64431]
2010-07-29 10:39:31 +00:00
Vladimir Prus
77d60028bb Various fixes
[SVN r64426]
2010-07-29 05:35:32 +00:00
Vladimir Prus
78fc7e42c3 More header dependencies fixes
[SVN r64408]
2010-07-28 12:39:39 +00:00
Vladimir Prus
23174ae216 More changes
[SVN r64406]
2010-07-28 12:04:31 +00:00
Vladimir Prus
d9169015d1 Make default build work.
Also, return non-zero status if there were errors.


[SVN r64384]
2010-07-27 11:53:37 +00:00
Vladimir Prus
12688d3182 Make build-dir project attribute and command-line option work.
[SVN r64357]
2010-07-26 11:40:00 +00:00
Vladimir Prus
9f9e7f163b Make test framework not crash when reading nonexistent file
[SVN r64353]
2010-07-26 09:20:54 +00:00
Vladimir Prus
3d92c23c29 Major update of top level 'build_system.py' module.
[SVN r64351]
2010-07-26 08:28:12 +00:00
Vladimir Prus
6ce5d75ab1 When test fails and --preserve is set, also show the command line.
[SVN r64348]
2010-07-26 07:51:18 +00:00
Vladimir Prus
e963e2842c Unbreak conditional requirements work.
[SVN r64305]
2010-07-23 15:08:14 +00:00
Vladimir Prus
a12b8de478 Fix search for Boost.Jam in Boost.Build testing
[SVN r64217]
2010-07-21 11:04:12 +00:00
Vladimir Prus
d894ae7f90 Don't check for non-existent paths
[SVN r63919]
2010-07-12 08:15:41 +00:00
Vladimir Prus
90c3f1170f Fix detection of exit status. We use close on pipe to get return status
and if program does exit(1) we get '1'. The code for checking was
using os.WIFSIGNALLED, and that returns true for '1' -- it seems like
it is expecting result of os.system, which would be 256, or something.


[SVN r62634]
2010-06-09 07:09:29 +00:00
Vladimir Prus
2f11a215e4 Disambiguiate targets and directories passed to 'build-project'.
Previously, if a Jamfile had:
    exe a : a.cpp ;
    build-project a ;
where a is also a subdirectory, we'd get error.


[SVN r61054]
2010-04-04 21:04:48 +00:00
Vladimir Prus
69c43f3002 Ignore bin/config.log when testing
[SVN r60253]
2010-03-06 18:49:05 +00:00
Jürgen Hunold
8cfbc7c18e Add support for QtMultimedia framework in upcoming Qt-4.6.
[SVN r56132]
2009-09-10 10:14:46 +00:00
Vladimir Prus
8c1bd79f33 Reset everyting back to revision 56032.
My partial reverts of things appear to be creating bigger mess.


[SVN r56042]
2009-09-05 12:44:28 +00:00
Vladimir Prus
5368d5d44f Revert revision 48644.
It contains so many formatting changes to as make porting things to
Python impossible. I'll cherry-pick the todo and non-formatting changes
soonish.


[SVN r56034]
2009-09-05 12:01:30 +00:00
Vladimir Prus
2a5d05b79a More diagnostics for tests that fail on OSX.
[SVN r55865]
2009-08-29 13:34:09 +00:00
Vladimir Prus
4d9d7d2ab6 Testsuite fixes for windows.
[SVN r55332]
2009-08-01 10:31:05 +00:00
Vladimir Prus
5c9481211d Improve reporting of failed test due to unexpected changes.
[SVN r55220]
2009-07-28 07:11:09 +00:00
Vladimir Prus
5930635366 Attempt at fixing generators_test on windows
[SVN r55198]
2009-07-27 07:20:34 +00:00
Vladimir Prus
5066c210e0 Properly report failures to add/remove/modify file.
[SVN r55152]
2009-07-25 06:47:43 +00:00
Vladimir Prus
2b66a7dc04 Exclude default_toolset.py
[SVN r54972]
2009-07-15 19:06:04 +00:00
Vladimir Prus
bb5579e553 Make toolchain check work if version is provided.
[SVN r52437]
2009-04-17 07:42:34 +00:00
Jurko Gospodnetić
9de7e80a1a Makes the Boost Build testing system correctly report the number of passed test cases instead of reporting all test cases as passed.
[SVN r51396]
2009-02-22 17:36:30 +00:00
Jurko Gospodnetić
478d847f17 Converted tabs to spaces in the Boost Build test/test_all.py to make all whitespace style used in this file consistent.
[SVN r51391]
2009-02-22 16:02:58 +00:00
Jurko Gospodnetić
955acd74da Removed trailing spaces.
[SVN r51390]
2009-02-22 15:55:04 +00:00
Jürgen Hunold
18b11c7960 Add support for QtScriptTools (Qt-4.5)
[SVN r51300]
2009-02-17 19:30:19 +00:00
Steven Watanabe
34c4942aee Fix generator_selection on windows
[SVN r51227]
2009-02-12 19:10:40 +00:00
Steven Watanabe
9f46413ba8 Make c-scanner use native path format for included headers in order to match the names of generated headers
[SVN r50390]
2008-12-27 20:31:15 +00:00
Vladimir Prus
182ce6525e Include more attributes in test results
[SVN r50179]
2008-12-07 14:56:43 +00:00
Vladimir Prus
6d6162bc99 Include annotations in test log
[SVN r50173]
2008-12-07 08:41:56 +00:00
Vladimir Prus
c3c4a6ac16 Make sure 'FAILED' is printed on failure
[SVN r49787]
2008-11-16 13:19:26 +00:00
Vladimir Prus
bed238bee8 Fix typo
[SVN r49785]
2008-11-16 12:46:11 +00:00
Vladimir Prus
3166e502a4 XML output support
[SVN r49731]
2008-11-13 21:30:05 +00:00
Vladimir Prus
2c7c99a5f7 When source resides in a subdirectory of source dir, preserve that
subdirectory in the target path.


[SVN r49714]
2008-11-13 08:26:39 +00:00
Vladimir Prus
04a996fd57 Unbreak generator_selection test on Linux
[SVN r49711]
2008-11-13 07:12:12 +00:00
Steven Watanabe
77a9d5d406 Make common.copy set the timestamp of the destination to the current time on windows
[SVN r49463]
2008-10-27 16:27:53 +00:00
Jurko Gospodnetić
2a4e376943 Added a regression test for and fixed a bug causing Boost Build's action timing rule not to work correctly if triggered on targets containing spaces in their name.
[SVN r48650]
2008-09-07 08:45:39 +00:00
Jurko Gospodnetić
7ee3357c1b Added documentation comments for the action timing 'time' rule in the Boost Build tools/testing.jam module. Added a test for this rule. Corrected a bug with this rule not storing user time in its output file.
[SVN r48648]
2008-09-07 08:38:15 +00:00
Jurko Gospodnetić
4f5346a3ad Minor stylistic changes in the Boost Build internal unit testing implementation Python script.
[SVN r48647]
2008-09-07 08:36:03 +00:00
Jurko Gospodnetić
03b33009ec Fixed how Boost Build's automated testing results get reported in case of tests running on files containing spaces in their path. Regression test added as well.
[SVN r48645]
2008-09-07 07:33:30 +00:00
Jurko Gospodnetić
92aea5bb39 Minor stylistic changes throughout several Boost Build modules. Added several todo comments.
[SVN r48644]
2008-09-07 06:10:32 +00:00
Jurko Gospodnetić
cd67c38e31 Reordered all Boost Build test declarations alphabetically to make it easier to scan through them visually.
[SVN r48597]
2008-09-05 02:04:51 +00:00
Jurko Gospodnetić
ed748f97f2 Added a test for and fixed a Boost Build generator selection bug caused by caching viable source target types for different target types and generators and not maintaining those caches when their content gets invalidated by defining a new derived target type. Currently quick-fixed by clearing most of the cached values when registering a new derived target type. Later on this could be made more detailed by clearing only the actually invalidated cache values or updating them directly by simply added the derived target type to them.
[SVN r48596]
2008-09-05 01:58:07 +00:00
Jurko Gospodnetić
571c336bfb Improved the Boost Build generator_selection.py test case by adding additional assertions to it.
[SVN r48595]
2008-09-05 01:55:01 +00:00
Jurko Gospodnetić
324e6bc227 Added a test for and fixed a Boost Build generator selection bug caused by caching viable source target types for different target types and generators and not maintaining those caches when their content gets invalidated by defining a new generator. Currently quick-fixed by clearing most of the cached values when registering a new generator. Later on this could be made more detailed by clearing only the actually invalidated cache values or updating them or even only marking them to be lazily updated when needed next.
Problem detected & and a reproducible example constructed by Juraj Ivančić. Debugged by Vladimir Prus. Patched and packaged by Jurko Gospodnetić.

[SVN r48590]
2008-09-05 00:26:43 +00:00
Jurko Gospodnetić
677aefd23b Minor stylistic changes in several Boost Build unit tests.
[SVN r48589]
2008-09-04 23:12:25 +00:00
Jurko Gospodnetić
f20f88b91d Renamed differently named Jamroot and Jamfile files throughout Boost Build's test suite to jamroot.jam & jamfile.jam. Stylistic changes throughout the whole Boost Build test suite.
[SVN r48504]
2008-08-31 21:42:27 +00:00
Jurko Gospodnetić
cff7f85e77 Minor stylistic changes made to the Boost Build make example test.
[SVN r48443]
2008-08-29 12:35:11 +00:00
Vladimir Prus
6a12a760dc Make build_file test work on Linux
[SVN r48389]
2008-08-25 19:09:30 +00:00
Vladimir Prus
bc2225da16 Actually unbreak the 'make' test
[SVN r48388]
2008-08-25 19:05:39 +00:00
Vladimir Prus
466fee25cc Unbreak file_name_handling on Linux.
The "(" and ")" characters have special meaning to the shell, and must be quoted.


[SVN r48387]
2008-08-25 18:55:06 +00:00
Jurko Gospodnetić
e8cebe30f4 Added Boost Build database unit tests related to inherited dependency property handling.
Part of the work by Steven Watanabe on fixing the Boost Build trac ticket #13 (http://zigzag.cs.msu.su/boost.build/ticket/13).

[SVN r48317]
2008-08-23 12:22:43 +00:00
Jurko Gospodnetić
858a87c9ab Minor stylistic changes made to the Boost Build test/generators_test.py test case module.
[SVN r48310]
2008-08-23 09:08:24 +00:00
Jurko Gospodnetić
265c102f67 Dumping test results no longer fails due to test sources not being located under the main project folder. Added a corresponding unit test which can also be used as a focal point for future test result dumping tests.
[SVN r48296]
2008-08-22 22:06:57 +00:00
Jurko Gospodnetić
9306c3f12c Minor stylistic changes made to the Boost Build test/clean.py test script. Corrected the second test case the --clean option was getting tested instead of --clean-all.
See the trac ticket http://zigzag.lvk.cs.msu.su:7813/boost.build/ticket/198 on what still needs to be improved with this test.

[SVN r47970]
2008-08-04 17:58:53 +00:00
Rene Rivera
4563c7e34e Revert changeset [47536].
[SVN r47571]
2008-07-18 16:13:20 +00:00
Steven Watanabe
f7298b43cf Make c-scanner search directories specified
with <include>a&&b

* tools/buitin.jam
  (c-scanner.__init__) split includes at &&

* test/test_all.py test/ordered_include.py
  Test case for this fix.


[SVN r47537]
2008-07-18 03:25:20 +00:00
Steven Watanabe
8518a6fd56 Make dependency properties specified in project requirements
not cause errors in subprojects.

* build/property.jam
  (tranlate-dependencies) New rule to bind dependency
  properties to the project that they are specified in.

* build/property-set.jam
  (create-from-user-input) Add call to property.translate-dependencies

* test/test_all.py test/inherited_dependency.py
  Test case for this fix.


[SVN r47536]
2008-07-18 03:11:08 +00:00
Jürgen Hunold
80ce5b2b76 Refactoring of library declaration in qt4.jam.
Simplyfied declaration of Qt component libraries.
Removed duplicated code.
Add test cases for most of the Qt component libraries.


[SVN r47391]
2008-07-13 18:40:02 +00:00
Jurko Gospodnetić
bd36639325 Corrected the Boost Build conditionals_multiple.py test case.
[SVN r47343]
2008-07-12 11:25:04 +00:00
Jürgen Hunold
077d0cbc93 Fix: adjust to r40898: Fix: remove <user-interface>gui from usage-requirements of QtGui.
[SVN r47140]
2008-07-06 19:14:42 +00:00
Jurko Gospodnetić
d539f344a3 Minor stylistic comment change.
[SVN r45168]
2008-05-06 09:34:20 +00:00
Jurko Gospodnetić
84a9f25f9f Fixed a bug causing Boost Jam not to handle target file names specified as both short and long file names correctly. Bug fixed by making bindtarget() function map names to TARGETs by using their long file names.
When scanning directories and creating a list of all their content (filent.c) it would identify all the located files and folders using their long file names. On the other hand, referencing a target using its short file name inside a Jam script caused Boost Jam to reference those files twice using two separate TARGET structures - one identified using the file's short name and one using the file's long name.

  One bad example was the MkDir which would always attempt to create a folder identified by its short name even if that folder already existed (due to the NOUPDATE rule getting applied on the incorrect TARGET).

  The change does not affect targets whose names do not represent existing file names.

  Also, it seems to me that the short_path_to_long_path() call in file_dirscan() in the filent.c module should most likely be moved to file_info() in the filesys.c module. This would make mapping file names to file_info_t & TARGET structures consistent. However, I have not done this in this patch just to make the patch as minimal as possible.

  Prepared tests have been do nothing on non Windows platforms.


[SVN r45144]
2008-05-05 15:52:56 +00:00
Jurko Gospodnetić
d7edf299d8 Cleaned up the main Boost Build module a bit related to how it processes explicit file (not target) references specified on the command line. Improved the related unit test. Minor stylistic changes.
[SVN r45070]
2008-05-03 16:05:17 +00:00
Jurko Gospodnetić
b800e2be7a Updated the Boost Build test system's documentation about Tester.run_build_system() parameters. Minor stylistic changes.
[SVN r45005]
2008-05-02 01:02:01 +00:00
Jurko Gospodnetić
e10cbb7c2a Minor stylistic changes.
[SVN r45004]
2008-05-02 00:57:29 +00:00
Jurko Gospodnetić
91c3a8c504 Added a new regression test making sure that the Boost Jam SORT builtin rule does not start getting quadratic behavior in some special cases as well as testing that the sorting algorithm works correctly. Related to the patch committed in revision 44195. Trimmed trailing spaces in tools/build/v2/test/test_all.py.
[SVN r45001]
2008-05-02 00:36:23 +00:00
Jurko Gospodnetić
9f994d6c90 Added support for tests checking that a build run did not take longer than expected to finish. Minor stylistic changes.
[SVN r45000]
2008-05-02 00:12:29 +00:00
Jurko Gospodnetić
692d2cb469 Minor stylistic changes.
[SVN r44995]
2008-05-01 21:19:11 +00:00
Jurko Gospodnetić
4372b775a9 Upgraded the internal Boost Build test system so it can be run from folders whose names contain spaces on Windows. Also added a workaround for a Python bug on Windows where it has some undocumented behavior when starting processes using commands containing quotes.
[SVN r44993]
2008-05-01 20:22:12 +00:00
Jurko Gospodnetić
eff732b908 Fixed a bug with BOOST_BUILD_PATH not getting set correctly in Boost Build unit tests in case it contained spaces.
[SVN r44991]
2008-05-01 19:47:37 +00:00
Jurko Gospodnetić
21648313a7 Updated the Boost Build test system documentation. Now all the command line options are described. Several function descriptions updated.
[SVN r44983]
2008-05-01 17:08:04 +00:00
Jurko Gospodnetić
f23d32f8b2 Updated the main Tester class comment in tools/build/v2/build/v2/test/BoostBuild.py describing all of its available constructor parameters. Minor stylistic changes.
[SVN r44982]
2008-05-01 17:06:02 +00:00
Jurko Gospodnetić
a4fc3f6257 Added explanation comments for match_exact() and match_re() functions in tools/build/v2/test/TestCmd.py. Removed corpse interpreted member from the TescCmd class and the related setter function in tools/build/v2/test/TestCmd.py. Minor stylistic comment changes.
[SVN r44981]
2008-05-01 17:04:22 +00:00
Jurko Gospodnetić
6e3eb35cca Renamed the Tester.wait_for_time_change() function to Tester.wait_for_time_change_since_last_build() to avoid confusion.
[SVN r44970]
2008-05-01 09:55:47 +00:00
Jurko Gospodnetić
c98691d310 Consistently converted tabs to spaces in tools/build/v2/test/BoostBuild.py to avoid confusion reading the Python source.
[SVN r44969]
2008-05-01 09:39:45 +00:00
Rene Rivera
7e238d9b7c Use local sorted() function to support Python < 2.4.
[SVN r44165]
2008-04-11 05:34:00 +00:00
Vladimir Prus
02e16a934e For BoostBuild regression test, handle OSX intel.
Patch from Hugo Duncan.


[SVN r43989]
2008-04-01 18:22:21 +00:00
Jurko Gospodnetić
75cbaf0563 Updated the test so it passes on Windows. Had to change it to enable action output logging and compensate for the fact that now action names are sent to the output as well. Minor stylistic changes.
[SVN r42639]
2008-01-09 17:03:45 +00:00
Jurko Gospodnetić
101e52bea6 Updated the test so it passes on Windows. Had to change it to enable action output logging and compensate for the fact that now action names are sent to the output as well. Minor stylistic changes.
[SVN r42637]
2008-01-09 14:36:37 +00:00
Rene Rivera
a375083c27 Revert various changes that break backward compatibility, and also some minor edits.
[SVN r42633]
2008-01-09 04:34:12 +00:00
Rene Rivera
6f12bd5e02 Revert various changes that break backward compatibility, and also some minor edits.
[SVN r42632]
2008-01-09 04:31:58 +00:00
Jurko Gospodnetić
28ee146607 Fixed a failing test by making it access its action results using the __ACTION_RULE__ rule. Now it works with the default debug level settings (i.e. no action output displayed).
[SVN r42631]
2008-01-09 04:30:25 +00:00
Jurko Gospodnetić
e8474dd69f Fixed a failing test by making it access action output using the __ACTION_RULE__ rule so it would not be affected by the level of debug output given by Boost Build/Jam.
[SVN r42630]
2008-01-09 04:15:35 +00:00
Jurko Gospodnetić
5b239afb81 Added a new test making sure properties conditioned on multiple different feature values are handled correctly. This especially includes testing the case when one of those features is <toolset> and the value given for it includes a toolset version.
[SVN r42613]
2008-01-08 14:40:24 +00:00
Jurko Gospodnetić
67c18a2efd Added a new configuration test making sure that the bug with not being able to process absolute user-config configuration file references never rears its ugly head again.
[SVN r42568]
2008-01-07 18:38:28 +00:00
Jurko Gospodnetić
bca21b46da Code cleanup. Converted to using True/False instead of 1/0. Changed to obey documented coding conventions regarding whitespace and function parameters. Renamed private member functions to use the __ name prefix.
[SVN r42567]
2008-01-07 18:15:13 +00:00
Jurko Gospodnetić
d289a56902 Added new tests related to Boost Build's default toolset handling. They test that the correct default toolset gets use and that when it gets used that has no different status than any other explicitly specified toolset.
[SVN r42549]
2008-01-06 20:56:20 +00:00
Jurko Gospodnetić
7449bd72d2 Added support for tests configuring whether they want their Boost Build to ignore toolset requirements instead of always ignoring them. Minor stylistic changes.
[SVN r42548]
2008-01-06 20:43:25 +00:00
Jurko Gospodnetić
5ab291e73a Simple code cleanup. Typo corrections.
[SVN r42547]
2008-01-06 20:37:55 +00:00
Jurko Gospodnetić
d7df2d92ca Stylistic changes: typo corrections, comment alignments, output string updates, no functional changes, etc.
[SVN r42516]
2008-01-06 08:16:34 +00:00
Jurko Gospodnetić
275694b5db Upgraded the tool for testing that a certain line exists in the given output support so that it now also knows how to test that a certain line does not exist in the given output.
[SVN r42513]
2008-01-06 07:26:46 +00:00
Jurko Gospodnetić
a8f922c12c Added a --test-config command-line option for specifying where the test configuration file should be loaded from instead of always being looked up in Boost Build's test folder. This allows non-test builds to not use test config when it exists on the system and different tests to use different test configurations when needed.
[SVN r42509]
2008-01-06 06:50:56 +00:00
Jurko Gospodnetić
54cf208294 No functional changes but only stylistic changes such as: comment typo corrections, wrapping lines to 80 characters, indentations, removing trailing spaces, removing empty lines, removed unnecessary module imports, etc.
[SVN r42507]
2008-01-06 00:53:09 +00:00
Jurko Gospodnetić
9b97e0ac91 No functional changes but only stylistic changes such as: comment typo corrections, wrapping lines to 80 characters, indentations, removing trailing spaces, removing empty lines, made tests use Jamfile.jam and Jamroot.jam Boost Build script names, removed unnecessary module imports, etc.
[SVN r42506]
2008-01-06 00:25:48 +00:00
Jurko Gospodnetić
1cca32571d Refactored the test into two separate test functions. Made the 'directory names with dots' test use the expect_output_line() tool instead of a manual find, causing a better diagnostic to be displayed in case of a failure. Made one of the test Jam scripts more compact. Made the test use the Jamroot.jam file instead of project-root.jam.
[SVN r42504]
2008-01-05 23:18:17 +00:00
Jurko Gospodnetić
970d44358f Test code cleaned up a bit. No functional changes.
[SVN r42499]
2008-01-05 21:37:15 +00:00
Jurko Gospodnetić
b871e58f62 Renamed some Jamfile and project-root.jam references to Jamfile.jam and Jamroot.jam respectively.
[SVN r42498]
2008-01-05 20:48:50 +00:00
Jurko Gospodnetić
07ba5ac218 Minor stylistic changes - cleaned up import calls, wrapped much text at 80 characters updated comments, typo corrections, removed trailing spaces, etc.
[SVN r42497]
2008-01-05 20:37:44 +00:00
Jurko Gospodnetić
f108323c1e Simplified the used make rules. Removed some dead code. Minor stylistic changes.
[SVN r42490]
2008-01-05 18:14:20 +00:00
Jurko Gospodnetić
e54169f771 Stylistic comment changes & typo corrections in several files. Corrected an incorrect error message in boost-build/build/project.jam displayed when a --build-dir command-line option and a non top-level project build-dir attribute are specified.
[SVN r42486]
2008-01-05 17:52:31 +00:00
Vladimir Prus
eb1a8a77d0 Make the Tester.copy method open files in binary mode.
This fixes the searched_lib.py failure on Windows.

Patch from Jurko Gospodnetic.


[SVN r42301]
2007-12-25 09:43:44 +00:00
Vladimir Prus
60ae680af7 Make inherit_toolset.py pass.
Patch from Jurko Gospodnetic.


[SVN r42300]
2007-12-25 09:38:19 +00:00
Vladimir Prus
36a79b841f Fix typos.
Patch from  Jurko Gospodnetic


[SVN r42296]
2007-12-25 09:25:25 +00:00
Rene Rivera
ad236a1ea7 Fix time related callbacks to new arguments.
[SVN r42247]
2007-12-22 21:32:17 +00:00
Rene Rivera
a42f466fd2 Inspection report fixes.
[SVN r41212]
2007-11-18 20:24:25 +00:00
Beman Dawes
8aeb9f160a Get rid of .cvsignore files
[SVN r41107]
2007-11-15 15:20:27 +00:00
Vladimir Prus
2eb44eeb35 Attemp to fix searched_lib on windows
[SVN r39831]
2007-10-09 06:37:00 +00:00
Vladimir Prus
a53633a6cf Windows fix
[SVN r39821]
2007-10-08 21:47:05 +00:00
Vladimir Prus
06a13cedeb Windows fix
[SVN r39820]
2007-10-08 21:28:09 +00:00
Vladimir Prus
26a974cb03 Windows fix
[SVN r39818]
2007-10-08 21:13:05 +00:00
Vladimir Prus
372d909cdb Windows fix
[SVN r39817]
2007-10-08 21:10:41 +00:00
Vladimir Prus
0fa6aa1374 Correct example test-config.jam
[SVN r39630]
2007-10-01 06:04:17 +00:00
Vladimir Prus
d1e6123a09 Update example test-config.jam
[SVN r39623]
2007-09-30 19:05:38 +00:00
Vladimir Prus
62adc78a70 Adjust Qt4 example test
[SVN r39606]
2007-09-29 18:21:49 +00:00
Vladimir Prus
49e9219a61 Adjust boostbook test for boostbook changes. It
seems that doxygen target now produces a target
with different name, and it does not produce
any target unless there's explicit dependency
on it. I'm not sure I like the change, but
anyway.


[SVN r39605]
2007-09-29 18:17:27 +00:00
Vladimir Prus
9af56e0e97 Don't run gcc_runtime test on msvc
[SVN r39197]
2007-09-11 19:36:48 +00:00
Vladimir Prus
de592346b0 * BoostBuild.py (wait_for_time_change): Wait
for more serious time change, in order to
        fix sporadic dependency_test failures.


[SVN r39195]
2007-09-11 19:17:49 +00:00
Vladimir Prus
3bac4643ae Don't try to apply --build-dir to standalone projects.
Fixes build_dir test failure on linux.


[SVN r39194]
2007-09-11 19:16:06 +00:00
Vladimir Prus
f09fd1a197 Record failure reason when we fail to open a file.
[SVN r39169]
2007-09-08 17:10:26 +00:00
Vladimir Prus
3fac77c14d Fix the rebuilds test on linux.
* BoostBuild.py (wait_for_time_change): Use floor,
	to avoid waiting 0.5 seconds.
	* rebuilds.py: Wait for time change as necessary.

[SVN r39168]
2007-09-08 16:24:50 +00:00
Vladimir Prus
8edaa3e0f1 Print test results summary at the end
[SVN r39166]
2007-09-08 00:26:18 +00:00
Vladimir Prus
a14761fd47 Fix remove_requirements test. I have no idea how
it could have passed as-is.


[SVN r39165]
2007-09-08 00:15:23 +00:00