boost/libs/test/doc/html/boost_test/runtime_config.html
2018-01-12 21:47:58 +01:00

84 lines
4.9 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Runtime parameters</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Boost.Test">
<link rel="up" href="../index.html" title="Boost.Test">
<link rel="prev" href="test_output/summary.html" title="Summary of the API for controlling the output">
<link rel="next" href="runtime_config/test_unit_filtering.html" title="Test unit filtering">
</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="test_output/summary.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="runtime_config/test_unit_filtering.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="boost_test.runtime_config"></a><a class="link" href="runtime_config.html" title="Runtime parameters">Runtime parameters</a>
</h2></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="runtime_config/test_unit_filtering.html">Test unit
filtering</a></span></dt>
<dt><span class="section"><a href="runtime_config/summary.html">Summary of run-time
parameters</a></span></dt>
</dl></div>
<p>
The <span class="emphasis"><em>Unit Test Framework</em></span> supports multiple parameters that
affect test module execution. To set the parameter's value you can either use
a runtime configuration subsystem interface from within the test module initialization
function or you can specify the value at runtime during test module invocation.
</p>
<p>
The <span class="emphasis"><em>Unit Test Framework</em></span> provides two ways to set a parameter
at runtime: by specifying a command line argument and by setting an environment
variable. The command line argument always overrides the corresponding environment
variable.
</p>
<p>
During test module initialization the <span class="emphasis"><em>Unit Test Framework</em></span>
parses the command line and excludes all parameters that belong to it and their
values from the argument list. The rest of command line is forwarded to the
test module initialization function supplied by you. The command line argument
format expected by the <span class="emphasis"><em>Unit Test Framework</em></span> is:
</p>
<pre class="programlisting"> --&lt;command_line_argument_name&gt;=&lt;argument_value&gt;
</pre>
<p>
The command line argument name is case sensitive. It is required to match exactly
the name in parameter specification. There should not be any spaces between
'=' and either command line argument name or argument value.
</p>
<p>
The corresponding environment variable name is also case sensitive and is required
to exactly match the name in the parameter specification.
</p>
<p>
All information about supported parameters is summarized below in the reference
section.
</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 &#169; 2001-2017 Boost.Test contributors<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="test_output/summary.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="runtime_config/test_unit_filtering.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>