Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
4b31ffa4
Commit
4b31ffa4
authored
Dec 03, 2015
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Python failure lists, and fixes to make sure failure propagates.
parent
a3faf080
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
conformance_test_runner.cc
conformance/conformance_test_runner.cc
+6
-0
failure_list_python.txt
conformance/failure_list_python.txt
+0
-0
failure_list_python_cpp.txt
conformance/failure_list_python_cpp.txt
+25
-0
setup.py
python/setup.py
+2
-1
No files found.
conformance/conformance_test_runner.cc
View file @
4b31ffa4
...
...
@@ -202,6 +202,12 @@ void UsageError() {
void
ParseFailureList
(
const
char
*
filename
,
vector
<
string
>*
failure_list
)
{
std
::
ifstream
infile
(
filename
);
if
(
!
infile
.
is_open
())
{
fprintf
(
stderr
,
"Couldn't open failure list file: %s
\n
"
,
filename
);
exit
(
1
);
}
for
(
string
line
;
getline
(
infile
,
line
);)
{
// Remove whitespace.
line
.
erase
(
std
::
remove_if
(
line
.
begin
(),
line
.
end
(),
::
isspace
),
...
...
conformance/failure_list_python.txt
0 → 100644
View file @
4b31ffa4
conformance/failure_list_python_cpp.txt
0 → 100644
View file @
4b31ffa4
# This is the list of conformance tests that are known to fail for the
# Python/C++ implementation right now. These should be fixed.
#
# By listing them here we can keep tabs on which ones are failing and be sure
# that we don't introduce regressions in other tests.
#
# TODO(haberman): insert links to corresponding bugs tracking the issue.
# Should we use GitHub issues or the Google-internal bug tracker?
ProtobufInput.PrematureEofInDelimitedDataForKnownNonRepeatedValue.MESSAGE
ProtobufInput.PrematureEofInDelimitedDataForKnownRepeatedValue.MESSAGE
ProtobufInput.PrematureEofInPackedField.BOOL
ProtobufInput.PrematureEofInPackedField.DOUBLE
ProtobufInput.PrematureEofInPackedField.ENUM
ProtobufInput.PrematureEofInPackedField.FIXED32
ProtobufInput.PrematureEofInPackedField.FIXED64
ProtobufInput.PrematureEofInPackedField.FLOAT
ProtobufInput.PrematureEofInPackedField.INT32
ProtobufInput.PrematureEofInPackedField.INT64
ProtobufInput.PrematureEofInPackedField.SFIXED32
ProtobufInput.PrematureEofInPackedField.SFIXED64
ProtobufInput.PrematureEofInPackedField.SINT32
ProtobufInput.PrematureEofInPackedField.SINT64
ProtobufInput.PrematureEofInPackedField.UINT32
ProtobufInput.PrematureEofInPackedField.UINT64
python/setup.py
View file @
4b31ffa4
...
...
@@ -147,7 +147,8 @@ class build_py(_build_py):
class
test_conformance
(
_build_py
):
target
=
'test_python'
def
run
(
self
):
os
.
system
(
'cd ../conformance && make
%
s'
%
(
test_conformance
.
target
))
cmd
=
'cd ../conformance && make
%
s'
%
(
test_conformance
.
target
)
status
=
subprocess
.
check_call
(
cmd
,
shell
=
True
)
if
__name__
==
'__main__'
:
...
...
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