Skip to content

Commit

Permalink
doc, update: simple run "make html"
Browse files Browse the repository at this point in the history
simple run "make html"

Signed-off-by: Heiko Schocher <hs@denx.de>
  • Loading branch information
hsdenx committed Apr 13, 2017
1 parent 94a181b commit 392b404
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 7 deletions.
Binary file modified doc/sphinx/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/sphinx/build/doctrees/overview.doctree
Binary file not shown.
35 changes: 32 additions & 3 deletions doc/sphinx/build/html/_sources/overview.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,14 @@ It is a simple python file, for example:
::

# passwords for the lab
if (board == 'lab'):
if (board == 'labip'):
if (user == 'hs'):
password = 'passwordforuserhs'
if (user == 'root'):
password = 'passwordforrootuser'
elif (board == 'lab_withpublickey'):
if (user == 'usernamelab'):
password = 'key:<path_to_publickeyfile>'
# passwords for the boards
elif (board == 'mcx'):
if (user == 'root'):
Expand All @@ -277,6 +280,13 @@ It is a simple python file, for example:

tbot searches in the root folder for this file.

It contains also the password for logging into your
vlab. If you log into your vlab with username/password,
see example 'labip'

If you want to use a public key for logging into your
vlab, see example 'lab_withpublickey'

prepare board config file
+++++++++++++++++++++++++

Expand All @@ -287,8 +297,27 @@ in the "config" folder for them.
board Example (dxr2 board):
https://github.com/hsdenx/tbot/blob/master/config/dxr2.py

Now comes a list of variables TC needs, this vary from what you
you want to test...
The board config file contains TC specific settings, which are
dependend on the board you want to test.

tbot parses first the board config file, than the lab config file
and at last default settings for TC variables, which are
set in

https://github.com/hsdenx/tbot/blob/master/src/common/default.py

If a variable is already set, its value is not overwritten.

You may need to overwrite board config variables for different
labs, so you can define in the lab config file the function:

::

def set_labspecific(tb)

in which you can overwrite tb.config settings dependend on

tb.config.boardname or tb.config.boardlapowername



Expand Down
Binary file modified doc/sphinx/build/html/objects.inv
Binary file not shown.
26 changes: 23 additions & 3 deletions doc/sphinx/build/html/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,14 @@ <h4>prepare password file<a class="headerlink" href="#prepare-password-file" tit
tbot searches this file in the tbot root directory.
It is a simple python file, for example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="c"># passwords for the lab</span>
<span class="k">if</span> <span class="p">(</span><span class="n">board</span> <span class="o">==</span> <span class="s">&#39;lab&#39;</span><span class="p">):</span>
<span class="k">if</span> <span class="p">(</span><span class="n">board</span> <span class="o">==</span> <span class="s">&#39;labip&#39;</span><span class="p">):</span>
<span class="k">if</span> <span class="p">(</span><span class="n">user</span> <span class="o">==</span> <span class="s">&#39;hs&#39;</span><span class="p">):</span>
<span class="n">password</span> <span class="o">=</span> <span class="s">&#39;passwordforuserhs&#39;</span>
<span class="k">if</span> <span class="p">(</span><span class="n">user</span> <span class="o">==</span> <span class="s">&#39;root&#39;</span><span class="p">):</span>
<span class="n">password</span> <span class="o">=</span> <span class="s">&#39;passwordforrootuser&#39;</span>
<span class="k">elif</span> <span class="p">(</span><span class="n">board</span> <span class="o">==</span> <span class="s">&#39;lab_withpublickey&#39;</span><span class="p">):</span>
<span class="k">if</span> <span class="p">(</span><span class="n">user</span> <span class="o">==</span> <span class="s">&#39;usernamelab&#39;</span><span class="p">):</span>
<span class="n">password</span> <span class="o">=</span> <span class="s">&#39;key:&lt;path_to_publickeyfile&gt;&#39;</span>
<span class="c"># passwords for the boards</span>
<span class="k">elif</span> <span class="p">(</span><span class="n">board</span> <span class="o">==</span> <span class="s">&#39;mcx&#39;</span><span class="p">):</span>
<span class="k">if</span> <span class="p">(</span><span class="n">user</span> <span class="o">==</span> <span class="s">&#39;root&#39;</span><span class="p">):</span>
Expand All @@ -263,6 +266,11 @@ <h4>prepare password file<a class="headerlink" href="#prepare-password-file" tit
</pre></div>
</div>
<p>tbot searches in the root folder for this file.</p>
<p>It contains also the password for logging into your
vlab. If you log into your vlab with username/password,
see example &#8216;labip&#8217;</p>
<p>If you want to use a public key for logging into your
vlab, see example &#8216;lab_withpublickey&#8217;</p>
</div>
<div class="section" id="prepare-board-config-file">
<h4>prepare board config file<a class="headerlink" href="#prepare-board-config-file" title="Permalink to this headline"></a></h4>
Expand All @@ -271,8 +279,20 @@ <h4>prepare board config file<a class="headerlink" href="#prepare-board-config-f
in the &#8220;config&#8221; folder for them.</p>
<p>board Example (dxr2 board):
<a class="reference external" href="https://github.com/hsdenx/tbot/blob/master/config/dxr2.py">https://github.com/hsdenx/tbot/blob/master/config/dxr2.py</a></p>
<p>Now comes a list of variables TC needs, this vary from what you
you want to test...</p>
<p>The board config file contains TC specific settings, which are
dependend on the board you want to test.</p>
<p>tbot parses first the board config file, than the lab config file
and at last default settings for TC variables, which are
set in</p>
<p><a class="reference external" href="https://github.com/hsdenx/tbot/blob/master/src/common/default.py">https://github.com/hsdenx/tbot/blob/master/src/common/default.py</a></p>
<p>If a variable is already set, its value is not overwritten.</p>
<p>You may need to overwrite board config variables for different
labs, so you can define in the lab config file the function:</p>
<div class="highlight-python"><div class="highlight"><pre>def set_labspecific(tb)
</pre></div>
</div>
<p>in which you can overwrite tb.config settings dependend on</p>
<p>tb.config.boardname or tb.config.boardlapowername</p>
<p>Thats it ... you now can call tbot and hopefully, it works ;-)</p>
<p>If you have problems in settings up tbot, please contact me
(and may give me ssh access to your Lab PC ;-)</p>
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/build/html/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 392b404

Please sign in to comment.