Commit Graph

16 Commits

Author SHA1 Message Date
Rene Rivera
85e5a2caa8 Port b2 tests to dual py2 and py3.
Now that the tests work in py2 or p3 we don't set py version in AP. This
allows for dealing with the AP images that don't have a way to set the
py version.
2019-03-31 15:37:03 -05:00
Steven Watanabe
ee613a6a28 Implement feature relevance.
* New feature <relevant> which is automatically deduced in most cases.
* Features which are not relevant do not affect target paths and
  do not prevent merging of virtual targets.
* generators.jam: generator.run always returns usage-requirements
  to allow usage-requirements in non-top-level generators.  This
  is necessary because we're using usage-requirements to track
  relevance from flags.
* New rule toolset.uses-features to specify features that the rule
  checks manually, instead of using toolset.flags.  In the future,
  we should consider restricting the properties actually passed,
  to detect errors.
* Adjust tests to handle the new paths (verified by inspection).
* Add temporary option --ignore-relevance to consider all features relevant
  to aid migration.
* New rule property.evaluate-conditional-relevance which helps tracking
  relevance in <conditional>.
* Widely scattered changes to use the new interfaces.
2018-01-13 09:13:49 -07:00
Rene Rivera
40e7f0e8dd Fix tests to pass on Windows after removing toolset requirements ignore.
Various restructure of test framework handling of paths to avoid duplicate path editing which caused failed tests. Adjust many tests to deal with added subdirectories in build outputs now that toolset requirements are active.
2017-07-02 23:28:48 -05: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ć
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ć
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ć
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
Vladimir Prus
bd0c1a9b1b Partially upgrade build/generators.py
[SVN r64539]
2010-08-02 14:15:50 +00:00
Steven Watanabe
34c4942aee Fix generator_selection on windows
[SVN r51227]
2009-02-12 19:10:40 +00:00
Vladimir Prus
04a996fd57 Unbreak generator_selection test on Linux
[SVN r49711]
2008-11-13 07:12:12 +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