<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2160/1/7/_/styles/combined.css?spaceKey=TOP&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite">Test-Suite</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://wiki.asterisk.org/wiki/display/~dsessions@digium.com">Darren Sessions</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >{gliffy:name=testsuite-flow-chart|align=left|size=L|version=5} <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h4.Test Case Structure <br>{noformat} <br>name : &lt;unique test name&gt; <br>options : <br>    network_captures: &lt;&#39;True&#39; or &#39;False&#39;&gt; <br>    call_flow_diagrams: &lt;&#39;True&#39; or &#39;False&#39;&gt; <br>    restart_persistant_plugins_between_tests: &lt;&#39;True&#39; or &#39;False&#39;&gt; <br>tests : <br>    - &lt;unique subtest name&gt; : <br>        expected_failure : &lt;&#39;True&#39; or &#39;False&#39;&gt; <br>        timeline: <br>            - &lt;plugin name&gt; : <br>                testsuite_remote : &lt;remote host name&gt; <br>                cmd : <br>                    &lt;cmd&gt; : &lt;data structure&gt; <br>    - &lt;unique subtest name&gt; : <br>        expected_failure : &lt;&#39;True&#39; or &#39;False&#39;&gt; <br>        timeline: <br>            - &lt;plugin name&gt; : <br>                testsuite_remote : &lt;remote host name&gt; <br>                cmd : <br>                    &lt;cmd&gt; : &lt;data structure&gt; <br>{noformat} <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h4.Test Case Options <br>* network_captures <br>* call_flow_diagrams <br>* restart_persistant_plugins_between_tests <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h4.Tests <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>This page is a work in progress</td></tr></table></div>

<h2><a name="Test-Suite-Overview"></a>Overview</h2>
<ul>
        <li>Server</li>
        <li>Remote</li>
</ul>


<h2><a name="Test-Suite-TestSuiteServer"></a>Test-Suite Server</h2>
<h4><a name="Test-Suite-TestParsingLogic"></a>Test Parsing Logic</h4>



<table width="100%">
    <tr>
        <td align="left">
            <table>
                <caption align="bottom">
                                    </caption>
                <tr>
                    <td>
                        <img style="border: none; width: 772px; height: 736px;"
                                                          usemap="#GLIFFY_MAP_13076796_testsuite-flow-chart"
                                                          src="/wiki/download/attachments/13076796/testsuite-flow-chart.png?version=5&amp;modificationDate=1306165442588"
                             alt="A&amp;#32;Gliffy&amp;#32;Diagram&amp;#32;named&amp;#58;&amp;#32;testsuite&amp;#45;flow&amp;#45;chart"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>






<h4><a name="Test-Suite-Tests"></a>Tests</h4>
<ul>
        <li>expected_failure</li>
        <li>timeline</li>
        <li>plugins</li>
</ul>


<h4><a name="Test-Suite-TestSuiteRemote"></a>Test-Suite Remote</h4>
<ul>
        <li>run</li>
        <li>stop</li>
        <li>shutdown</li>
        <li>listProcesses</li>
        <li>writeFile</li>
        <li>cd</li>
</ul>


<h4><a name="Test-Suite-Installation"></a>Installation</h4>
<ul>
        <li>Ubuntu Maverick (10.10)

<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-1889485962" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text">Click here to expand...</span></div>
    <div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get install build-essential libboost1.40-all-dev liblua5.1-0-dev cmake libmcpp-dev libbz2-dev libdb4.8++-dev mono-gmcs monodevelop mono-xbuild ruby ruby1.8-dev php5-dev libexpat1-dev libssl-dev git-core corosync pacemaker gawk sip-tester python-yaml tshark </pre>
</div></div></div>
</li>
</ul>


<ul>
        <li>Call Flow
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>wget http://downloads.sourceforge.net/project/callflow/callflow/20100421/callflow.tar.gz
</pre>
</div></div></li>
</ul>


<h2><a name="Test-Suite-BambooIntegration"></a>Bamboo Integration</h2>

<h4><a name="Test-Suite-AddingBambooUserAccount"></a>Adding Bamboo User Account</h4>
<ul>
        <li>Ubuntu Maverick (10.10)

<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-721345386" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text">Click here to expand...</span></div>
    <div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>sudo useradd --system --create-home --home-dir /opt/bamboo --shell /bin/bash bamboo
</pre>
</div></div></div>
</li>
</ul>


<h4><a name="Test-Suite-InstallRemoteAgent"></a>Install Remote Agent</h4>
<p>Add the following settings to the &lt;bamboo-agent-home&gt;/conf/wrapper.conf file. This will help keep the remote agents online when the bamboo server is restarted.</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>wrapper.max_failed_invocations=9999
wrapper.startup.delay=30
wrapper.restart.delay=30
</pre>
</div></div>

<h4><a name="Test-Suite-StartingRemoteAgent"></a>Starting Remote Agent</h4>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>
</pre>
</div></div>

<h2><a name="Test-Suite-Networking"></a>Networking</h2>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td>Test-Suite network diagram goes here</td></tr></table></div>
<h4><a name="Test-Suite-IPv6Example"></a>IPv6 Example</h4>
<ul>
        <li>Prefix: fd</li>
        <li>Subnet ID: 171d</li>
        <li>Global ID: f0801bc228</li>
        <li>Addresses: fdf0:801b:c228:171d:xxxx:xxxx:xxxx:xxxx</li>
</ul>


<p>Ubuntu IPv6 Example (without gateway)</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>iface eth0 inet6 static
pre-up modprobe ipv6
address fdf0:801b:c228:171d:0000:0000:0000:1000
netmask 64
</pre>
</div></div>

<p>fdf0:801b:c228:171d::10 = Test-Suite Server<br/>
fdf0:801b:c228:171d::500 = Test-Suite Build Slave<br/>
fdf0:801b:c228:171d::1000 = Test-Suite Remote 1<br/>
fdf0:801b:c228:171d::2000 = Test-Suite Remote 2<br/>
fdf0:801b:c228:171d::3000 = Test-Suite Remote 3<br/>
fdf0:801b:c228:171d::4000 = Test-Suite Remote 4</p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=TOP">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite">View Online</a>
        |
        <a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=13076796&revisedVersion=20&originalVersion=19">View Changes</a>
                |
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Test-Suite?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>