2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-19 04:42:13 +00:00
Files
René Ferdinand Rivera Morell a5e435df96 Add support for modular build structure. (#426)
* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Remove uses of BOOST_ROOT in Jamfiles.

* Add missing NO_LIB usage requirements.

* Add missing import-search for cconfig/predef checks.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Change all <source> references to <library>.

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Add included target to mirror build//* targets.

* Add missing import-search.

* Change Boost Test build refs to work with both old and modular test lib targets.

* Update build deps.

* Update UBSAN CI run

---------

Co-authored-by: Matt Borland <matt@mattborland.com>
2025-04-07 10:21:41 -04:00
..
2019-10-31 08:54:50 +01:00
2022-03-08 19:11:32 +01:00
2015-02-11 14:22:13 -05:00
2019-10-31 08:54:50 +01:00
2019-10-31 08:54:50 +01:00
2019-10-31 08:54:50 +01:00
2020-04-07 20:02:30 +02:00
2019-10-31 08:54:50 +01:00
2019-10-31 08:54:50 +01:00
2022-03-07 00:08:55 +01:00
2022-03-07 00:08:55 +01:00

This folder contains the documentation for the Boost.Test library. Any contribution or submission to the library should be accompanied by the corresponding documentation.

The format of the documentation uses Quickbook.

How to build the documentation

In order to generate the documentation, the following is needed:

  • Docbook
  • Doxygen
  • xsltproc

Doxygen

Part of the documentation needs Doxygen. doxygen should be accessible from the PATH.

Docbook

Quickbook needs Docbook (XSL and XML) to be installed. Download and untar the docbook archives:

The directories $docbook_xsl_directory and $docbook_dtd_directory, respectively, will refer to the location of the deflated archive.

Download xsltproc

This program is needed by Docbook, in order to be able to transform XMLs into HTMLs. xsltproc should be accessible from the PATH.

note: xsltproc seems to be distributed with macOS.

Construct b2

Simply by typing in a console at the root of the Boost repository:

> ./bootstrap.[sh|bat]

Build the documentation

Running the following commands will construct the documentation with b2 and all the needed dependencies:

> cd $boost_root/libs/test/doc
> ../../../b2 -sDOCBOOK_XSL_DIR=$docbook_xsl_directory -sDOCBOOK_DTD_DIR=$docbook_dtd_directory

It is possible to run directly

> ../../../b2

but this results in a download from the Internet of the Docbook XLS and DTD, which is much slower.

Recommendations

  • Documentation is part of the "definition of done". A feature does not exist until it is implemented, tested, documented and reviewed.
  • It is highly recommended that each of your pull request comes with an updated documentation. Not doing so put this work on the shoulders of the maintainers and as a result, it would be likely that the pull request is not addressed in a timely manner.
  • Please also update the changelog in the file change_log.qbk indicating your contribution
  • Every file should come with a copyright notice at their very beginning