Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2015-07-27 10:49:06 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4b84baff750e846b8e4bce54996a0484a8c707aa
4b84baff
1 parent
82e95a5d
Fixed a few onos-check-* tools.
Change-Id: I2bda9677aec461c091c6e24c5ba0fd6f6dacfff9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
tools/test/bin/onos-check-apps
tools/test/bin/onos-check-flows
tools/test/bin/onos-check-nodes
tools/test/bin/onos-check-summary
tools/test/bin/onos-check-views
tools/test/scenarios/setup.xml
tools/test/bin/onos-check-apps
View file @
4b84baf
...
...
@@ -9,7 +9,7 @@
aux
=
/tmp/stc-
$$
.log
trap
"rm -f
$aux
$aux
.1
$aux
.2 2>/dev/null"
EXIT
onos
${
1
:-
$OCI
}
"onos:apps -s -a"
>
$aux
onos
${
1
:-
$OCI
}
"onos:apps -s -a"
| grep -v /bin/client
>
$aux
cat
$aux
# Normalize the installed apps
...
...
tools/test/bin/onos-check-flows
View file @
4b84baf
...
...
@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
aux
=
/tmp/stc-
$$
.log
trap
"rm -f
$aux
$aux
.1
$aux
.2
2>/dev/null"
EXIT
trap
"rm -f
$aux
2>/dev/null"
EXIT
onos
${
1
:-
$OCI
}
"onos:flows"
>
$aux
cat
$aux
...
...
tools/test/bin/onos-check-nodes
View file @
4b84baf
...
...
@@ -6,15 +6,14 @@
aux
=
/tmp/stc-
$$
.log
trap
"rm -f
$aux
$aux
.1
$aux
.2 2>/dev/null"
EXIT
onos
${
1
:-
$OCI
}
"onos:nodes"
>
$aux
onos
${
1
:-
$OCI
}
"onos:nodes"
| grep -v /bin/client
>
$aux
cat
$aux
# Normalize the nodes
cut -d
=
-f3
$aux
| cut -d: -f1 | sort >
$aux
.1
# Normalize the expected apps
ONOS_NODES
=
$(
env | egrep
"OC[0-9]*="
| cut -d
=
-f2 | sort
)
nodes
=
${
2
:-
$ONOS_NODES
}
# Normalize the expected nodes
nodes
=
${
2
:-
$ONOS_INSTANCES
}
(
for
node
in
$nodes
;
do
echo
$node
;
done
)
| sort >
$aux
.2
# Check for differences
...
...
tools/test/bin/onos-check-summary
View file @
4b84baf
...
...
@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
aux
=
/tmp/stc-
$$
.log
trap
"rm -f
$aux
$aux
.1
$aux
.2
2>/dev/null"
EXIT
trap
"rm -f
$aux
2>/dev/null"
EXIT
onos
${
1
:-
$OCI
}
"onos:summary"
>
$aux
cat
$aux
...
...
tools/test/bin/onos-check-views
View file @
4b84baf
...
...
@@ -7,11 +7,11 @@
.
$ONOS_ROOT
/tools/build/envDefaults
aux
=
/tmp/stc-
$$
.log
trap
"rm -f
$aux
$aux
.1
$aux
.2
2>/dev/null"
EXIT
trap
"rm -f
$aux
2>/dev/null"
EXIT
onos
${
1
}
"onos:ui-views"
>
$aux
onos
${
1
:-
$OCI
}
"onos:ui-views"
>
$aux
cat
$aux
shift
[
$#
-gt 0
]
&&
shift
grep
"
$@
"
$aux
\ No newline at end of file
grep
"
${
@
:-
topo
}
"
$aux
\ No newline at end of file
...
...
tools/test/scenarios/setup.xml
View file @
4b84baf
...
...
@@ -33,6 +33,8 @@
<step
name=
"Wait-for-Start-${#}"
exec=
"onos-wait-for-start ${OC#}"
requires=
"Install-${#},~Secure-SSH"
/>
<step
name=
"Check-Nodes-${#}"
exec=
"onos-check-nodes ${OC#}"
requires=
"~Wait-for-Start-${#}"
/>
<step
name=
"Check-Logs-${#}"
exec=
"onos-check-logs ${OC#}"
requires=
"~Wait-for-Start-${#}"
/>
<step
name=
"Check-Components-${#}"
...
...
Please
register
or
login
to post a comment