Commit a94945c6 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Demo_C builds in 64bit chroot.

parent d59dcac0
*/binary*
*/build.log
*.pyc
Verifying binary.linux.ada/binaries/demo_c  1/ 5 2/ 5 3/ 5 4/ 5 5/ 5
Verified binary.linux.ada/binaries/demo_c : OK
Verifying binary.linux.pohic/binaries/demo_c  1/ 5 2/ 5 3/ 5 4/ 5 5/ 5
Verified binary.linux.pohic/binaries/demo_c : OK
#!/usr/bin/env python
#!/usr/bin/env python2
import sys
timeout = 5
......
import pexpect, sys
g_child = None
def test(binaries, expected, timeout):
try:
for binary in binaries:
print "Verifying", binary, " "*7,
global g_child
g_child = pexpect.spawn(binary, timeout=timeout)
total = len(expected)
for cnt,elem in enumerate(expected):
realList = [pexpect.TIMEOUT, pexpect.EOF]
if isinstance(elem, list):
realList.extend(elem)
else:
realList.append(elem)
idx = g_child.expect(realList)
if 0 == idx:
print "\nTimed out waiting for:", realList
print g_child
return 1
elif 1 == idx:
print "\nUnexpected EOF waiting for:", realList
print g_child
return 1
else:
sys.stdout.write("\b\b\b\b\b\b\b%3d/%3d" % (cnt+1,total))
sys.stdout.flush()
print "\nVerified ", binary, ": OK"
except:
print("Test failed...")
return 1
return 0
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