Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
regression-suites
Commits
a94945c6
Commit
a94945c6
authored
Mar 18, 2017
by
Thanassis Tsiodras
Browse files
Demo_C builds in 64bit chroot.
parent
d59dcac0
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
a94945c6
*/binary*
*/build.log
*.pyc
Demo_C/regression.log
deleted
100644 → 0
View file @
d59dcac0
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
Demo_C/regression.py
View file @
a94945c6
#!/usr/bin/env python
#!/usr/bin/env python
2
import
sys
timeout
=
5
...
...
commonRegression.py
0 → 100644
View file @
a94945c6
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
"
\n
Timed out waiting for:"
,
realList
print
g_child
return
1
elif
1
==
idx
:
print
"
\n
Unexpected 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
"
\n
Verified "
,
binary
,
": OK"
except
:
print
(
"Test failed..."
)
return
1
return
0
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