<div class="section" id="testing">
<h1>Testing<a class="headerlink" href="#testing" title="Permalink to this headline">¶</a></h1>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo Hello, world!
</span>Hello, world!
</pre></div>
</td></tr></table></div>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo Hello, world! Again.
</span>Hello, world! Again.
</pre></div>
</td></tr></table></div>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo Hello, world! Again. Again.
</span>Hello, world! Again. Again.
</pre></div>
</td></tr></table></div>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo This will fail soon!
</span>This will fail soon!
</pre></div>
</td></tr></table></div>
<p>This should fail and include the diag output instead:</p>
<div class="highlight-none"><div class="highlight"><pre>ERROR executing test &#39;tests.sphinx.hello-world-fail&#39; (part 2)

% &#39;echo StDeRr &gt;&amp;2; echo 1 | grep -q 2&#39; failed unexpectedly (exit code 1)
% cat .stderr
 StDeRr
</pre></div>
</div>
<p>This should succeed:</p>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo This succeeds again!
</span>This succeeds again!
</pre></div>
</td></tr></table></div>
<p>This should fail again and include the diag output instead:</p>
<div class="highlight-none"><div class="highlight"><pre>ERROR executing test &#39;tests.sphinx.hello-world-fail&#39; (part 4)

% &#39;echo StDeRr &gt;&amp;2; echo 3 | grep -q 4&#39; failed unexpectedly (exit code 1)
% cat .stderr
 StDeRr
 StDeRr
</pre></div>
</div>
<div class="btest-cmd highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll"># echo This succeeds again!
</span>This succeeds again!
</pre></div>
</td></tr></table></div>
<div class="btest-include highlight-none"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11</pre></div></td><td class="code"><div class="highlight"><pre><span class="hll">btest.cfg
</span>

[btest]
TestDirs    = tests
TmpDir      = %(testbase)s/.tmp
BaselineDir = %(testbase)s/Baseline
Finalizer   = btest-diff-rst

[environment]
PATH=%(testbase)s/../../:%(testbase)s/../../sphinx:%(default_path)s
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="indices-and-tables">
