Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
3f972b0e
Commit
3f972b0e
authored
Aug 26, 2019
by
Maxime Perrotin
Browse files
Add regression test script for kazoo builds
parent
d5783922
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/Demo_Distrib/regression_kazoo.py
0 → 100755
View file @
3f972b0e
#!/usr/bin/env python
import
sys
,
os
,
subprocess
sys
.
path
.
append
(
os
.
path
.
abspath
(
".."
))
import
commonRegression
timeout
=
5
expected
=
[
"\[B\] Startup"
,
"\[B\] ping! \(0\)"
,
"\[B\] ping! \(1\)"
,
"\[B\] ping! \(2\)"
,
"\[B\] ping! \(3\)"
,
"\[B\] ping! \(4\)"
,
"\[B\] ping! \(5\)"
,
"\[B\] ping! \(6\)"
,
"\[B\] ping! \(7\)"
,
"\[B\] ping! \(8\)"
,
"\[B\] ping! \(9\)"
,
]
p
=
None
try
:
p
=
subprocess
.
Popen
(
"output.pohic/binaries/pinger"
,
stdout
=
subprocess
.
PIPE
)
if
p
==
None
:
sys
.
exit
(
1
)
except
:
sys
.
exit
(
1
)
result
=
commonRegression
.
test
(
[
"output.pohic/binaries/pingee"
],
expected
,
timeout
)
if
0
!=
result
:
p
.
kill
()
sys
.
exit
(
1
)
p
.
kill
()
p
.
wait
()
commonRegression
.
g_child
.
terminate
(
force
=
True
)
sys
.
exit
(
result
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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