2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 00:32:11 +00:00
Commit Graph

923 Commits

Author SHA1 Message Date
Jurko Gospodnetić
81d19ead3d Boost Build cleanup - minor stylistic changes.
[SVN r79865]
2012-08-04 22:40:25 +00:00
Jurko Gospodnetić
59b1c674f4 Internal Boost Build project_root_constants.py test cleanup - minor stylistic changes + better implemented output content tests to display more detailed information on failure.
[SVN r79864]
2012-08-04 22:13:35 +00:00
Jurko Gospodnetić
aaa350a78d Boost Build cleanup - minor stylistic changes.
[SVN r79862]
2012-08-04 11:34:31 +00:00
Jurko Gospodnetić
54515f44ec Updated the internal Boost Build testing framework to work correctly with older Boost Jam releases that did not report their minimum supported path modification timestamp resolution and did not support path modification timestamp resolutions finer than 1 second.
[SVN r79831]
2012-08-01 11:41:39 +00:00
Jurko Gospodnetić
e7f4639032 Updated Boost Build's internal testing system to reduce wait times between successive build system runs depending on the supported path modification timestamp resolution. This reduces the total time needed to run the current test suite on one Windows PC from cca. 8 to cca. 6 minutes.
Additional consequences:
  * Makes the test system work correctly even should it ever be run with files stored on different file systems with different supported minimal path modification timestamp resolutions, e.g. NTFS (<1 ms) & FAT (2 sec).
  * When requesting a new file to be written with a large enough file modification timestamp, any missing folders created in the process are created with large enough modification timestamp as well.
  * Source paths with modification timestamps set too far in the future will now be reported as test environment errors instead of causing the test system to wait for some possibly long (all internal sleeps now limited to 5 seconds).

[SVN r79830]
2012-08-01 10:42:57 +00:00
Jurko Gospodnetić
108a8d05f6 Internal Boost Build testing system cleanup - removed an unused BoostBuild.Tester.mul() member function.
[SVN r79826]
2012-08-01 08:36:29 +00:00
Jurko Gospodnetić
a5287879b7 Internal Boost Build testing system cleanup - minor stylistic changes.
[SVN r79819]
2012-07-31 13:46:04 +00:00
Jurko Gospodnetić
7ea2636ad6 Internal Boost Build testing system cleanup - stopped using the deprecated indexed stat structure access and replaced it with respective member access.
[SVN r79787]
2012-07-28 14:18:21 +00:00
Jurko Gospodnetić
e68787e3e8 Internal Boost Build testing system cleanup - removed a never used BoostBuild.Tester.rename() member function.
[SVN r79785]
2012-07-28 14:14:10 +00:00
Jurko Gospodnetić
89033604eb Minor stylistic comment update in the internal Boost Build rebuilds.py test.
[SVN r79784]
2012-07-28 14:12:39 +00:00
Jurko Gospodnetić
d1aed27ea9 Internal Boost Build testing system cleanup - minor stylistic changes.
[SVN r79781]
2012-07-28 09:33:03 +00:00
Jurko Gospodnetić
1fb0b6d0e4 Updated the internal Boost Build testing system's file system - now more precisely tracks the largest file modification timestamp assigned by a test build run, corrected several invalid or outdated comments, file & folder tree modeling structure's root nodes now hold correct directory name information, minor stylistic changes.
[SVN r79775]
2012-07-27 23:41:25 +00:00
Jurko Gospodnetić
361316dadf Refactored internal Boost Build testing system's file system content modeling tree data structure. Used to be based on some old svn_tree.py Subversion project source code. Now unused parts removed and the svn_tree.py module merged into tree.py. Trees_difference class renamed to TreeDifference and corresponding factory function to tree_difference. Now correctly recognizes and reports files being converted to folders and vice versa.
[SVN r79773]
2012-07-27 22:40:48 +00:00
Jurko Gospodnetić
1b4017c2d9 Internal Boost Build testing system no longer assumes that the current time is equal to the current file modification timestamp.
[SVN r79754]
2012-07-26 11:39:42 +00:00
Jurko Gospodnetić
328ef28616 Internal Boost Build testing system cleanup - minor stylistic changes.
[SVN r79752]
2012-07-26 07:33:08 +00:00
Jurko Gospodnetić
35bac5b777 Made Boost Build's internal testing system's file stat() calls report timestamps with greater than 1-second precision if Python/OS/file-system support it even on Python versions prior to 2.5 where this became the default.
[SVN r79740]
2012-07-25 08:03:36 +00:00
Jurko Gospodnetić
6c3df7cd71 Boost Build cleanup - minor stylistic changes.
[SVN r79739]
2012-07-25 07:25:12 +00:00
Jurko Gospodnetić
b828d3531b Updated the internal Boost Build rebuilds.py test to report additional debugging information in case of failure.
[SVN r79738]
2012-07-25 07:17:01 +00:00
Jurko Gospodnetić
89f26e148b Corrected the internal Boost Build rebuilds.py test to avoid incorrectly detected failures when a file to be rebuilt ('bar') gets rebuilt too quickly in one of the test cases (used to fail if the original file and the rebuilt file did not have file modification timestamps with the same second).
[SVN r79737]
2012-07-25 07:15:06 +00:00
Jurko Gospodnetić
8e29fa56a3 Split internal Boost Build testing system's Tester.wait_for_time_change_since_last_build() operation into Tester.wait_for_time_change_since_last_build() and Tester.wait_for_time_change() to allow test code to wait for a timestamp changes unrelated to the last build run.
[SVN r79736]
2012-07-25 07:10:22 +00:00
Jurko Gospodnetić
74b443789d Updated internal Boost Build's testing system code for collecting file modification timestamps information to do so with greater than 1 second precision (if the OS, file system and the used Python implementation support this). This allows for more precise/correct recognizing whether a file has been touched by a build run or not.
[SVN r79735]
2012-07-25 07:01:43 +00:00
Jurko Gospodnetić
dff942e14b Boost Build cleanup - minor stylistic changes & comment updates.
[SVN r79733]
2012-07-25 05:15:42 +00:00
Jurko Gospodnetić
b32315556f Cleaned up the internal Boost Build indirect_conditional.py test and updated it to test the project context under which indirect conditionals are run (using the glob rule).
[SVN r79718]
2012-07-24 09:44:29 +00:00
Jurko Gospodnetić
7759f00d81 Cleaned up the internal Boost Build project_glob.py test and made it a bit more strict.
[SVN r79717]
2012-07-24 08:48:27 +00:00
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