Skip to content

Commit

Permalink
Automatic deploy (build number 458)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConanCI bot committed Mar 22, 2023
1 parent 0145dbf commit 98ab986
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 14 deletions.
9 changes: 6 additions & 3 deletions 2.0/_sources/reference/conanfile/methods/test.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
test()
======

The ``test()`` method is only used for **test_package/conanfile.py**. It will execute immediately after ``build()`` has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created. Note that it is intended to be used as a test of the package: the headers are found, the libraries are found, it is possible to link, etc. But it is **not intended** to run unit, integration or functional tests.
The ``test()`` method is only used for **test_package/conanfile.py**.
It will execute immediately after ``build()`` has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created.
Note that it is intended to be used as a test of the package: the headers are found, the libraries are found,
it is possible to link, etc. But it is **not intended** to run unit, integration or functional tests.

It usually takes the form:
It usually takes the form of:

.. code:: python
Expand All @@ -18,4 +21,4 @@ It usually takes the form:
.. seealso::

See :ref:` the "testing packages" tutorial<tutorial_creating_test>` for more information.
See :ref:`the "testing packages" tutorial<tutorial_creating_test>` for more information.
Binary file modified 2.0/conan.pdf
Binary file not shown.
9 changes: 6 additions & 3 deletions 2.0/reference/conanfile/methods/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@

<div class="section" id="test">
<span id="reference-conanfile-methods-test"></span><h1>test()<a class="headerlink" href="#test" title="Permalink to this headline"></a></h1>
<p>The <code class="docutils literal notranslate"><span class="pre">test()</span></code> method is only used for <strong>test_package/conanfile.py</strong>. It will execute immediately after <code class="docutils literal notranslate"><span class="pre">build()</span></code> has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created. Note that it is intended to be used as a test of the package: the headers are found, the libraries are found, it is possible to link, etc. But it is <strong>not intended</strong> to run unit, integration or functional tests.</p>
<p>It usually takes the form:</p>
<p>The <code class="docutils literal notranslate"><span class="pre">test()</span></code> method is only used for <strong>test_package/conanfile.py</strong>.
It will execute immediately after <code class="docutils literal notranslate"><span class="pre">build()</span></code> has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created.
Note that it is intended to be used as a test of the package: the headers are found, the libraries are found,
it is possible to link, etc. But it is <strong>not intended</strong> to run unit, integration or functional tests.</p>
<p>It usually takes the form of:</p>
<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">test</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">if</span> <span class="n">can_run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">cmd</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">cpp</span><span class="o">.</span><span class="n">build</span><span class="o">.</span><span class="n">bindir</span><span class="p">,</span> <span class="s2">&quot;example&quot;</span><span class="p">)</span>
Expand All @@ -251,7 +254,7 @@
</div>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last">See :ref:` the “testing packages” tutorial&lt;tutorial_creating_test&gt;` for more information.</p>
<p class="last">See <a class="reference internal" href="../../../tutorial/creating_packages/test_conan_packages.html#tutorial-creating-test"><span class="std std-ref">the “testing packages” tutorial</span></a> for more information.</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion 2.0/searchindex.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions 2/_sources/reference/conanfile/methods/test.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
test()
======

The ``test()`` method is only used for **test_package/conanfile.py**. It will execute immediately after ``build()`` has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created. Note that it is intended to be used as a test of the package: the headers are found, the libraries are found, it is possible to link, etc. But it is **not intended** to run unit, integration or functional tests.
The ``test()`` method is only used for **test_package/conanfile.py**.
It will execute immediately after ``build()`` has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created.
Note that it is intended to be used as a test of the package: the headers are found, the libraries are found,
it is possible to link, etc. But it is **not intended** to run unit, integration or functional tests.

It usually takes the form:
It usually takes the form of:

.. code:: python
Expand All @@ -18,4 +21,4 @@ It usually takes the form:
.. seealso::

See :ref:` the "testing packages" tutorial<tutorial_creating_test>` for more information.
See :ref:`the "testing packages" tutorial<tutorial_creating_test>` for more information.
Binary file modified 2/conan.pdf
Binary file not shown.
9 changes: 6 additions & 3 deletions 2/reference/conanfile/methods/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@

<div class="section" id="test">
<span id="reference-conanfile-methods-test"></span><h1>test()<a class="headerlink" href="#test" title="Permalink to this headline"></a></h1>
<p>The <code class="docutils literal notranslate"><span class="pre">test()</span></code> method is only used for <strong>test_package/conanfile.py</strong>. It will execute immediately after <code class="docutils literal notranslate"><span class="pre">build()</span></code> has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created. Note that it is intended to be used as a test of the package: the headers are found, the libraries are found, it is possible to link, etc. But it is <strong>not intended</strong> to run unit, integration or functional tests.</p>
<p>It usually takes the form:</p>
<p>The <code class="docutils literal notranslate"><span class="pre">test()</span></code> method is only used for <strong>test_package/conanfile.py</strong>.
It will execute immediately after <code class="docutils literal notranslate"><span class="pre">build()</span></code> has been called, and its goal is to run some executable or tests on binaries to prove the package is correctly created.
Note that it is intended to be used as a test of the package: the headers are found, the libraries are found,
it is possible to link, etc. But it is <strong>not intended</strong> to run unit, integration or functional tests.</p>
<p>It usually takes the form of:</p>
<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">test</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">if</span> <span class="n">can_run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">cmd</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">cpp</span><span class="o">.</span><span class="n">build</span><span class="o">.</span><span class="n">bindir</span><span class="p">,</span> <span class="s2">&quot;example&quot;</span><span class="p">)</span>
Expand All @@ -251,7 +254,7 @@
</div>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last">See :ref:` the “testing packages” tutorial&lt;tutorial_creating_test&gt;` for more information.</p>
<p class="last">See <a class="reference internal" href="../../../tutorial/creating_packages/test_conan_packages.html#tutorial-creating-test"><span class="std std-ref">the “testing packages” tutorial</span></a> for more information.</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion 2/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 98ab986

Please sign in to comment.