Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
e77484f0
Commit
e77484f0
authored
Mar 02, 2017
by
Adam Wujek
💬
Committed by
Grzegorz Daniluk
Mar 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: move subsection "Mini SNMP responder's tests" to appendix
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
a2fb4d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
38 deletions
+37
-38
wrpc.tex
doc/wrpc.tex
+37
-38
No files found.
doc/wrpc.tex
View file @
e77484f0
...
...
@@ -941,44 +941,6 @@ To verify that database is empty:
SFP database empty
\end{lstlisting}
% --------------------------------------------------------------------------
\subsubsection
{
Mini SNMP responder's tests
}
\label
{
Mini SNMP responder's tests
}
In the
\texttt
{
wrpc-sw
}
repo, automatic tests are available to validate the
\textit
{
Mini
SNMP responder
}
implementation. These tests are placed in the
\texttt
{
test/snmp
}
directory.
They use the
\texttt
{
bats
}
framework (
\url
{
https://github.com/sstephenson/bats
}
).
To run these tests, please go to
\texttt
{
test/snmp
}
directory, then set
\texttt
{
TARGET
\_
IP
}
environment varaible to the IP of your target board, then type
\texttt
{
make
}
. For example:
\begin{lstlisting}
$
TARGET
_
IP
=
192
.
168
.
1
.
20
make
bats
/
libexec
/
bats snmp
_
tests
_
*
.bats
Host up
192
.
168
.
1
.
20
Check the presence of snmpget
Check the presence of snmpgetnext
Check the presence of snmpwalk
Check the presence of snmpset
snmpget existing oid
1
.
3
.
6
.
1
.
4
.
1
.
96
.
101
.
1
.
1
.
1
.
0
[
...
]
snmpwalk
1
.
3
.
6
.
1
.
4
.
1
.
95
snmpwalk
1
.
3
.
6
count all OIDs
100
tests,
0
failures
\end
{
lstlisting
}
On the left of each test there will be a tick symbol shown or an
\texttt
{
x
}
depending of the test's result
(
not included in the example above
)
.
Be aware that it might be necessary to clone the
\texttt
{
bats
}
repo first.
\texttt
{
make
}
command will inform whether this is needed.
In case the number of OIDs changes please correct variable
\texttt
{
TOTAL
\_
NUM
\_
OIDS
}
in file
\texttt
{
snmp
\_
test
\_
config.bash
}
.
These tests have to be executed after any changes are made to the
\textit
{
Mini SNMP
responder
}
.
% ==========================================================================
\subsection
{
Other Diagnostic Tools
}
\label
{
Other Diagnostic Tools
}
...
...
@@ -1832,5 +1794,42 @@ $ snmpwalk -On $SNMP_OPT 1.3.6.1.4.1.96.102.1
End of MIB
\end{lstlisting}
% --------------------------------------------------------------------------
\subsection
{
Mini SNMP responder's tests
}
\label
{
Mini SNMP responder's tests
}
In the
\texttt
{
wrpc-sw
}
repo, automatic tests are available to validate the
\textit
{
Mini
SNMP responder
}
implementation. These tests are placed in the
\texttt
{
test/snmp
}
directory.
They use the
\texttt
{
bats
}
framework (
\url
{
https://github.com/sstephenson/bats
}
).
To run these tests, please go to
\texttt
{
test/snmp
}
directory, then set
\texttt
{
TARGET
\_
IP
}
environment varaible to the IP of your target board, then type
\texttt
{
make
}
. For example:
\begin{lstlisting}
$
TARGET
_
IP
=
192
.
168
.
1
.
20
make
bats
/
libexec
/
bats snmp
_
tests
_
*
.bats
Host up
192
.
168
.
1
.
20
Check the presence of snmpget
Check the presence of snmpgetnext
Check the presence of snmpwalk
Check the presence of snmpset
snmpget existing oid
1
.
3
.
6
.
1
.
4
.
1
.
96
.
101
.
1
.
1
.
1
.
0
[
...
]
snmpwalk
1
.
3
.
6
.
1
.
4
.
1
.
95
snmpwalk
1
.
3
.
6
count all OIDs
100
tests,
0
failures
\end
{
lstlisting
}
On the left of each test there will be a tick symbol shown or an
\texttt
{
x
}
depending of the test's result
(
not included in the example above
)
.
Be aware that it might be necessary to clone the
\texttt
{
bats
}
repo first.
\texttt
{
make
}
command will inform whether this is needed.
In case the number of OIDs changes please correct variable
\texttt
{
TOTAL
\_
NUM
\_
OIDS
}
in file
\texttt
{
snmp
\_
test
\_
config.bash
}
.
These tests have to be executed after any changes are made to the
\textit
{
Mini SNMP
responder
}
.
\end
{
document
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment