diff --git a/doc/guidelines.qbk b/doc/guidelines.qbk index d1d78fa6..83f6418e 100644 --- a/doc/guidelines.qbk +++ b/doc/guidelines.qbk @@ -112,8 +112,8 @@ filename limit though. You will also need to provide a function prototype "`int test()`" that is declared in a namespace with the same name as the macro, but in all lower case, and which returns zero on success: - namespace boost_no_foo { + namespace boost_no_foo { int test() { // test code goes here: @@ -126,14 +126,18 @@ but in all lower case, and which returns zero on success: Once the test code is in place in libs/config/test, updating the configuration test system proceeds as: -* cd into `libs/config/tools` and run `bjam` : this generates the `.cpp` +* cd into `libs/config/tools` and run `bjam`. This generates the `.cpp` file test cases from the `.ipp` file, updates the -libs/config/test/all/Jamfile.v2, `config_test.cpp` and `config_info.cpp`. -* cd into `libs/config/test/all` and run `bjam `['MACRONAME` compiler-list`] : where +libs/config/test/all/Jamfile.v2, `config_test.cpp` and `config_info.cpp`.[br][br] + +* cd into `libs/config/test/all` and run `bjam `['MACRONAME` compiler-list`], where ['MACRONAME] is the name of the new macro, and ['`compiler-list`] is a space separated list of -compilers to test with. You should see the tests pass with those compilers -that don't have the defect, and fail with those that do. -* cd into `libs/config/test` and run `bjam config_info config_test `['`compiler-list`] : +compilers to test with.[br][br] +The xxx_pass_test and the xxx_fail_test [*should both report `**passed**`].[br][br] +If ['MACRONAME] is not defined when it should be defined, xxx_pass_test will not report `**passed**`. +If ['MACRONAME] is defined when it should not be defined, xxx_fail_test will not report `**passed**`.[br][br] + +* cd into `libs/config/test` and run `bjam config_info config_test `['`compiler-list`]. `config_info` should build and run cleanly for all the compilers in ['`compiler-list`] while `config_test` should fail for those that have the defect, and pass for those that do not. diff --git a/doc/html/boost_config/guidelines_for_boost_authors.html b/doc/html/boost_config/guidelines_for_boost_authors.html index 3468a3eb..8e45bf79 100644 --- a/doc/html/boost_config/guidelines_for_boost_authors.html +++ b/doc/html/boost_config/guidelines_for_boost_authors.html @@ -1,10 +1,11 @@
- -@@ -184,7 +187,8 @@
@@ -220,7 +224,6 @@ on success:
namespace boost_no_foo { - int test() { // test code goes here: @@ -236,24 +239,27 @@
- - cd into
+libs/config/tools
and runbjam
- : this generates the.cpp
+ cd intolibs/config/tools
and runbjam
. + This generates the.cpp
file test cases from the.ipp
file, updates the libs/config/test/all/Jamfile.v2, -config_test.cpp
andconfig_info.cpp
. -config_test.cpp
andconfig_info.cpp
.
+- cd into
+ list of compilers to test with.libs/config/test/all
and runbjam -
MACRONAMEcompiler-list
- : where MACRONAME is the name of the new macro, and + MACRONAMEcompiler-list
, + where MACRONAME is the name of the new macro, andcompiler-list
is a space separated - list of compilers to test with. You should see the tests pass with those - compilers that don't have the defect, and fail with those that do. -
The xxx_pass_test and the + xxx_fail_test should both report**passed**
.
If MACRONAME is not defined when it should + be defined, xxx_pass_test will not report**passed**
. + If MACRONAME is defined when it should not be defined, + xxx_fail_test will not report**passed**
.
+- cd into
libs/config/test
and runbjam config_info config_test -
compiler-list
- :config_info
should build +compiler-list
. +config_info
should build and run cleanly for all the compilers incompiler-list
whileconfig_test
should fail for those that have the defect, and pass for those that do not. @@ -283,7 +289,8 @@@@ -307,7 +314,8 @@
@@ -358,7 +366,7 @@
-