mirror of
https://github.com/boostorg/test.git
synced 2026-02-12 12:32:09 +00:00
91 lines
5.3 KiB
HTML
91 lines
5.3 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>The UTF usage variants</title>
|
|
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
|
<link rel="home" href="../../index.html" title="Boost.Test">
|
|
<link rel="up" href="../users_guide.html" title="User's guide">
|
|
<link rel="prev" href="../users_guide.html" title="User's guide">
|
|
<link rel="next" href="usage_variants/static_lib_variant.html" title="The static library variant of the UTF">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table cellpadding="2" width="100%"><tr>
|
|
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
|
|
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
|
|
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
|
|
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
|
|
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="../users_guide.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.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="usage_variants/static_lib_variant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h3 class="title">
|
|
<a name="boost_test.users_guide.usage_variants"></a><a class="link" href="usage_variants.html" title="The UTF usage variants">The <span class="emphasis"><em>UTF</em></span>
|
|
usage variants</a>
|
|
</h3></div></div></div>
|
|
<div class="toc"><dl class="toc">
|
|
<dt><span class="section"><a href="usage_variants/static_lib_variant.html">The
|
|
static library variant of the <span class="emphasis"><em>UTF</em></span></a></span></dt>
|
|
<dt><span class="section"><a href="usage_variants/dynamic_lib_variant.html">The
|
|
dynamic library variant of the <span class="emphasis"><em>UTF</em></span></a></span></dt>
|
|
<dt><span class="section"><a href="usage_variants/single_header_variant.html">The
|
|
single-header variant of the <span class="emphasis"><em>UTF</em></span></a></span></dt>
|
|
<dt><span class="section"><a href="usage_variants/extern_test_runner_variant.html">The
|
|
external test runner variant of the <span class="emphasis"><em>UTF</em></span></a></span></dt>
|
|
</dl></div>
|
|
<p>
|
|
The <span class="emphasis"><em>UTF</em></span> presents you with 4 different variants how it
|
|
can be used.
|
|
</p>
|
|
<div class="orderedlist"><ol class="orderedlist" type="1">
|
|
<li class="listitem">
|
|
The static library variant
|
|
</li>
|
|
<li class="listitem">
|
|
The dynamic library variant
|
|
</li>
|
|
<li class="listitem">
|
|
The single-header variant
|
|
</li>
|
|
<li class="listitem">
|
|
The external test runner variant
|
|
</li>
|
|
</ol></div>
|
|
<p>
|
|
Unlike the Buridan's donkey though, you shouldn't have problems deciding
|
|
which one to use, since there are clear reasons why would you prefer each
|
|
one.
|
|
</p>
|
|
<p>
|
|
In most cases to compile a test module based on the <span class="emphasis"><em>UTF</em></span>
|
|
all you need to include is just the single header
|
|
</p>
|
|
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">test</span><span class="special">/</span><span class="identifier">unit_test</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
|
</pre>
|
|
<p>
|
|
This header includes internally most of the other headers that contains the
|
|
<span class="emphasis"><em>UTF</em></span> definitions. Some advanced features, like the floating
|
|
point comparison or the logged expectations testing, are defined in independent
|
|
headers and need to be included explicitly.
|
|
</p>
|
|
</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-2014 Gennadiy
|
|
Rozental<p>
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
|
</p>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="../users_guide.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.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="usage_variants/static_lib_variant.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|