Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
1bc20596
Commit
1bc20596
authored
Jun 25, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #644 from kmod/extra_test_counts
Include total-tests-run in our test-suite-results checking
parents
98364232
a2f78483
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
20 deletions
+33
-20
test/extra/cheetah_test.py
test/extra/cheetah_test.py
+1
-1
test/extra/mysqldb_test.py
test/extra/mysqldb_test.py
+1
-1
test/extra/protobuf_test.py
test/extra/protobuf_test.py
+1
-1
test/extra/pyicu_test.py
test/extra/pyicu_test.py
+1
-1
test/extra/test_helper.py
test/extra/test_helper.py
+29
-16
No files found.
test/extra/cheetah_test.py
View file @
1bc20596
...
...
@@ -7,5 +7,5 @@ create_virtenv(ENV_NAME, ["cheetah==2.4.4"], force_create = True)
cheetah_exe
=
os
.
path
.
join
(
ENV_NAME
,
"bin"
,
"cheetah"
)
env
=
os
.
environ
env
[
"PATH"
]
=
env
[
"PATH"
]
+
":"
+
os
.
path
.
join
(
ENV_NAME
,
"bin"
)
expected
=
[{
'
errors'
:
4
,
'failures'
:
53
},
{
'errors'
:
232
,
'failures'
:
53
}]
expected
=
[{
'
ran'
:
2138
,
'errors'
:
4
,
'failures'
:
53
},
{
'ran'
:
2138
,
'errors'
:
232
,
'failures'
:
53
}]
run_test
([
cheetah_exe
,
"test"
],
cwd
=
ENV_NAME
,
expected
=
expected
,
env
=
env
)
test/extra/mysqldb_test.py
View file @
1bc20596
...
...
@@ -28,7 +28,7 @@ def install_and_test_mysqldb():
env
=
os
.
environ
env
[
"TESTDB"
]
=
"travis.cnf"
expected
=
[]
expected
=
[
{
"ran"
:
69
}
]
run_test
([
nosetests_exe
],
cwd
=
MYSQLDB_DIR
,
expected
=
expected
,
env
=
env
)
packages
=
[
"nose==1.3.7"
]
...
...
test/extra/protobuf_test.py
View file @
1bc20596
...
...
@@ -25,7 +25,7 @@ def install_and_test_protobuf():
env
[
"LD_LIBRARY_PATH"
]
=
os
.
path
.
join
(
INSTALL_DIR
,
"lib"
)
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"build"
],
cwd
=
PROTOBUF_PY_DIR
,
env
=
env
)
expected
=
[{
"failures"
:
0
,
"errors"
:
1
}]
expected
=
[{
"
ran"
:
216
,
"
failures"
:
0
,
"errors"
:
1
}]
run_test
([
PYTHON_EXE
,
"setup.py"
,
"test"
],
cwd
=
PROTOBUF_PY_DIR
,
expected
=
expected
,
env
=
env
)
create_virtenv
(
ENV_NAME
,
None
,
force_create
=
True
)
...
...
test/extra/pyicu_test.py
View file @
1bc20596
...
...
@@ -36,7 +36,7 @@ def install_and_test_pyicu():
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"build"
],
cwd
=
PYICU_DIR
,
env
=
env
)
subprocess
.
check_call
([
PYTHON_EXE
,
"setup.py"
,
"install"
],
cwd
=
PYICU_DIR
,
env
=
env
)
expected
=
[]
expected
=
[
{
'ran'
:
17
}
]
run_test
([
PYTHON_EXE
,
"setup.py"
,
"test"
],
cwd
=
PYICU_DIR
,
expected
=
expected
)
create_virtenv
(
ENV_NAME
,
None
,
force_create
=
True
)
...
...
test/extra/test_helper.py
View file @
1bc20596
...
...
@@ -36,22 +36,35 @@ def pip_install(name, package_list):
def
parse_output
(
output
):
result
=
[]
it
=
re
.
finditer
(
"FAILED
\
(
f
ailures=(
\
d+), e
r
rors=(
\
d+)
\
)"
,
output
)
for
m
in
it
:
d
=
{
"failures"
:
int
(
m
.
group
(
1
)),
"errors"
:
int
(
m
.
group
(
2
))
}
result
.
append
(
d
)
it
=
re
.
finditer
(
"FAILED
\
(e
r
rors=(
\
d+),
f
ailures=(
\
d+)
\
)"
,
output
)
for
m
in
it
:
d
=
{
"failures"
:
int
(
m
.
group
(
2
)),
"errors"
:
int
(
m
.
group
(
1
))
}
result
.
append
(
d
)
it
=
re
.
finditer
(
"FAILED
\
(
f
ailures=(
\
d+)
\
)"
,
output
)
for
m
in
it
:
d
=
{
"failures"
:
int
(
m
.
group
(
1
)),
"errors"
:
0
}
result
.
append
(
d
)
it
=
re
.
finditer
(
"FAILED
\
(e
r
rors=(
\
d+)
\
)"
,
output
)
for
m
in
it
:
d
=
{
"failures"
:
0
,
"errors"
:
int
(
m
.
group
(
1
))
}
result
.
append
(
d
)
for
l
in
output
.
split
(
'
\
n
'
):
m
=
re
.
match
(
"Ran (
\
d+)
t
ests in"
,
l
)
if
m
:
result
.
append
({
"ran"
:
int
(
m
.
group
(
1
))})
m
=
re
.
match
(
"FAILED
\
(
f
ailures=(
\
d+), e
r
rors=(
\
d+)
\
)"
,
l
)
if
m
:
d
=
result
[
-
1
]
assert
d
.
keys
()
==
[
"ran"
]
d
[
'failures'
]
=
int
(
m
.
group
(
1
))
d
[
'errors'
]
=
int
(
m
.
group
(
2
))
m
=
re
.
match
(
"FAILED
\
(e
r
rors=(
\
d+),
f
ailures=(
\
d+)
\
)"
,
l
)
if
m
:
d
=
result
[
-
1
]
assert
d
.
keys
()
==
[
"ran"
]
d
[
'failures'
]
=
int
(
m
.
group
(
2
))
d
[
'errors'
]
=
int
(
m
.
group
(
1
))
m
=
re
.
match
(
"FAILED
\
(
f
ailures=(
\
d+)
\
)"
,
l
)
if
m
:
d
=
result
[
-
1
]
assert
d
.
keys
()
==
[
"ran"
]
d
[
'failures'
]
=
int
(
m
.
group
(
1
))
d
[
'errors'
]
=
0
m
=
re
.
match
(
"FAILED
\
(e
r
rors=(
\
d+)
\
)"
,
l
)
if
m
:
d
=
result
[
-
1
]
assert
d
.
keys
()
==
[
"ran"
]
d
[
'failures'
]
=
0
d
[
'errors'
]
=
int
(
m
.
group
(
1
))
return
result
def
run_test
(
cmd
,
cwd
,
expected
,
env
=
None
):
...
...
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