mirror of
https://github.com/boostorg/test.git
synced 2026-02-13 12:52:10 +00:00
69 lines
4.8 KiB
HTML
Executable File
69 lines
4.8 KiB
HTML
Executable File
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>The static library variant of the UTF</title>
|
|
<link rel="stylesheet" href="../../../../style/style.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
|
<link rel="home" href="../../../index.html" title="Boost Test Library">
|
|
<link rel="up" href="../usage-variants.html" title="The UTF usage variants … or the Buridan's donkey parable">
|
|
<link rel="prev" href="../usage-variants.html" title="The UTF usage variants … or the Buridan's donkey parable">
|
|
<link rel="next" href="dynamic-lib-variant.html" title="The dynamic library variant of the UTF">
|
|
<script language="JavaScript1.2" src="../../../../js/boost-test.js"></script>
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table width="100%"><tr>
|
|
<td width="10%"><a href="../../../index.html"><img alt="Home" width="229" height="61" border="0" src="../../../../../../../libs/test/doc/img/boost.test.logo.png"></a></td>
|
|
<td valign="middle" align="left"> > <a href="../../../utf.html">The Unit Test Framework</a><a href="../../../execution-monitor.html">
|
|
>
|
|
</a><a href="../../user-guide.html">User's guide</a><a href="../../usage-recommendations.html">
|
|
>
|
|
</a><a href="../usage-variants.html">Usage variants</a><a href="../test-organization.html">
|
|
>
|
|
</a><b>Static library</b>
|
|
</td>
|
|
<td><div class="spirit-nav">
|
|
<a href="../usage-variants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a href="dynamic-lib-variant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h5 class="title">
|
|
<a name="utf.user-guide.static-lib-variant"></a>The static library variant of the <acronym class="acronym">UTF</acronym>
|
|
</h5></div></div></div>
|
|
<p class="first-line-indented">
|
|
The <acronym class="acronym">UTF</acronym> can be built into a static library. If you opt to link a test module with the
|
|
<a class="link" href="../../compilation/standalone.html" title="Standalone library compilation">standalone static library</a>, this usage is called the static library
|
|
variant of the <acronym class="acronym">UTF</acronym>.
|
|
</p>
|
|
<p class="first-line-indented">
|
|
The test runner supplied with this variant required you to implement the <a class="link" href="../glossary.html#test-module.def" title="The test module">test
|
|
module</a> initialization function that matches one of the two specifications depending on the compilation flag
|
|
<a class="xref" href="../../compilation.html#utf.flag.alt-init-api">BOOST_TEST_ALTERNATIVE_INIT_API</a>. If flag isn't defined you are required
|
|
to match the original specification. If you define the flag <a class="xref" href="../../compilation.html#utf.flag.alt-init-api">BOOST_TEST_ALTERNATIVE_INIT_API</a> during a test module compilation you are required to use the alternative
|
|
initialization function specification. The <acronym class="acronym">UTF</acronym> provides an ability to
|
|
<a class="link" href="../initialization.html#utf.user-guide.initialization.auto-generation" title="Automated generation of the test module initialization function">automatically generate</a> an empty test module
|
|
initialization function with correct specification if no custom initialization is required by a test module.
|
|
</p>
|
|
<div class="important"><table border="0" summary="Important">
|
|
<tr>
|
|
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../../doc/src/images/important.png"></td>
|
|
<th align="left">Important</th>
|
|
</tr>
|
|
<tr><td align="left" valign="top"><p>
|
|
If you opted to use an alternative initialization API, for a test module to be able to link with prebuilt library,
|
|
the flag <a class="xref" href="../../compilation.html#utf.flag.alt-init-api">BOOST_TEST_ALTERNATIVE_INIT_API</a> has to be defined both during
|
|
library and a test module compilation.
|
|
</p></td></tr>
|
|
</table></div>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"></td>
|
|
<td align="right"><div class="copyright-footer">Copyright © 2001-2012 Gennadiy Rozental</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="../usage-variants.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../usage-variants.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="dynamic-lib-variant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|