• Home
Name Date Size #Lines LOC

..--

third_party/jsoncpp/03-May-2024-7,2695,161

ConformanceJava.javaD03-May-20244.3 KiB143117

ConformanceJavaLite.javaD03-May-20243.5 KiB126100

Makefile.amD03-May-202415.2 KiB282176

README.mdD03-May-20241.9 KiB4632

conformance.protoD03-May-202410.4 KiB274241

conformance_cpp.ccD03-May-20246.7 KiB208141

conformance_objc.mD03-May-20245.7 KiB180154

conformance_python.pyD03-May-20244.5 KiB13172

conformance_ruby.rbD03-May-20243.8 KiB12369

conformance_test.ccD03-May-202466 KiB2,0321,805

conformance_test.hD03-May-20247.4 KiB18583

conformance_test_runner.ccD03-May-202410.2 KiB315194

failure_list_cpp.txtD03-May-20242.1 KiB4947

failure_list_csharp.txtD03-May-2024522 1211

failure_list_java.txtD03-May-20241.6 KiB4442

failure_list_objc.txtD03-May-2024171 54

failure_list_python-post26.txtD03-May-202486 32

failure_list_python.txtD03-May-20241.9 KiB4847

failure_list_python_cpp.txtD03-May-20243.1 KiB7371

failure_list_ruby.txtD03-May-20248.5 KiB200199

update_failure_list.pyD03-May-20242.8 KiB7432

README.md

1Protocol Buffers - Google's data interchange format
2===================================================
3
4[![Build Status](https://travis-ci.org/google/protobuf.svg?branch=master)](https://travis-ci.org/google/protobuf)
5
6Copyright 2008 Google Inc.
7
8This directory contains conformance tests for testing completeness and
9correctness of Protocol Buffers implementations.  These tests are designed
10to be easy to run against any Protocol Buffers implementation.
11
12This directory contains the tester process `conformance-test`, which
13contains all of the tests themselves.  Then separate programs written
14in whatever language you want to test communicate with the tester
15program over a pipe.
16
17Before running any of these tests, make sure you run `make` in the base
18directory to build `protoc`, since all the tests depend on it.
19
20    $ make
21
22Then to run the tests against the C++ implementation, run:
23
24    $ cd conformance && make test_cpp
25
26More tests and languages will be added soon!
27
28Testing other Protocol Buffer implementations
29---------------------------------------------
30
31To run these tests against a new Protocol Buffers implementation, write a
32program in your language that uses the protobuf implementation you want
33to test.  This program should implement the testing protocol defined in
34[conformance.proto](https://github.com/google/protobuf/blob/master/conformance/conformance.proto).
35This is designed to be as easy as possible: the C++ version is only
36150 lines and is a good example for what this program should look like
37(see [conformance_cpp.cc](https://github.com/google/protobuf/blob/master/conformance/conformance_cpp.cc)).
38The program only needs to be able to read from stdin and write to stdout.
39
40Portability
41-----------
42
43Note that the test runner currently does not work on Windows.  Patches
44to fix this are welcome!  (But please get in touch first to settle on
45a general implementation strategy).
46