Commit 3f972b0e authored by Maxime Perrotin's avatar Maxime Perrotin

Add regression test script for kazoo builds

parent d5783922
#!/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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment