Name Date Size #Lines LOC

..--

third_party/jsoncpp/H25-Apr-2025-7,2695,161

BUILD.bazelH A D25-Apr-20254.1 KiB184163

ConformanceJava.javaH A D25-Apr-202514.9 KiB419346

ConformanceJavaLite.javaH A D25-Apr-202512.1 KiB352282

Makefile.amH A D25-Apr-202522.2 KiB373255

README.mdH A D25-Apr-20252.5 KiB7249

autoload.phpH A D25-Apr-2025752 2217

binary_json_conformance_suite.ccH A D25-Apr-2025118.6 KiB3,2652,920

binary_json_conformance_suite.hH A D25-Apr-20256.7 KiB142102

conformance.protoH A D25-Apr-20257.2 KiB177155

conformance_cpp.ccH A D25-Apr-20258.6 KiB269195

conformance_nodejs.jsH A D25-Apr-20256.2 KiB190130

conformance_objc.mH A D25-Apr-20257.2 KiB216186

conformance_php.phpH A D25-Apr-20254.2 KiB121104

conformance_python.pyH A D25-Apr-20259 KiB214145

conformance_ruby.rbH A D25-Apr-20254.7 KiB14791

conformance_test.ccH A D25-Apr-202516.1 KiB469383

conformance_test.hH A D25-Apr-202512 KiB330166

conformance_test_main.ccH A D25-Apr-20252 KiB419

conformance_test_runner.ccH A D25-Apr-202511.9 KiB352234

conformance_test_runner.shH A D25-Apr-20251.9 KiB5846

defs.bzlH A D25-Apr-20251 KiB2925

failure_list_cpp.txtH A D25-Apr-20252 KiB3836

failure_list_csharp.txtH A D25-Apr-2025420 87

failure_list_java.txtH A D25-Apr-20252.3 KiB4543

failure_list_java_lite.txtH A D25-Apr-2025616 119

failure_list_jruby.txtH A D25-Apr-20257.6 KiB9695

failure_list_js.txtH A D25-Apr-202514.3 KiB163162

failure_list_objc.txtH A D25-Apr-2025139 32

failure_list_php.txtH A D25-Apr-20251.7 KiB3130

failure_list_php_c.txtH A D25-Apr-2025117 32

failure_list_python-post26.txtH A D25-Apr-202586 32

failure_list_python.txtHD25-Apr-20250

failure_list_python_cpp.txtH A D25-Apr-2025409 98

failure_list_ruby.txtH A D25-Apr-20255.6 KiB5958

text_format_conformance_suite.ccH A D25-Apr-202519 KiB479387

text_format_conformance_suite.hH A D25-Apr-20253.3 KiB7033

text_format_failure_list_cpp.txtH A D25-Apr-20251.6 KiB2120

text_format_failure_list_csharp.txtH A D25-Apr-2025608 98

text_format_failure_list_java.txtH A D25-Apr-2025527 108

text_format_failure_list_java_lite.txtH A D25-Apr-2025277 65

text_format_failure_list_jruby.txtH A D25-Apr-2025608 98

text_format_failure_list_php.txtH A D25-Apr-2025608 98

text_format_failure_list_python.txtH A D25-Apr-20252.6 KiB3533

text_format_failure_list_python_cpp.txtH A D25-Apr-20252.4 KiB2928

text_format_failure_list_ruby.txtH A D25-Apr-2025608 98

update_failure_list.pyH A D25-Apr-20252.8 KiB7432

README.md

1Protocol Buffers - Google's data interchange format
2===================================================
3
4Copyright 2008 Google Inc.
5
6This directory contains conformance tests for testing completeness and
7correctness of Protocol Buffers implementations.  These tests are designed
8to be easy to run against any Protocol Buffers implementation.
9
10This directory contains the tester process `conformance-test`, which
11contains all of the tests themselves.  Then separate programs written
12in whatever language you want to test communicate with the tester
13program over a pipe.
14
15Before running any of these tests, make sure you run `make` in the base
16directory to build `protoc`, since all the tests depend on it.
17
18    $ make
19
20Running the tests for C++
21-------------------------
22
23To run the tests against the C++ implementation, run:
24
25    $ cd conformance && make test_cpp
26
27Running the tests for JavaScript (Node.js)
28------------------------------------------
29
30To run the JavaScript tests against Node.js, make sure you have "node"
31on your path and then run:
32
33    $ cd conformance && make test_nodejs
34
35Running the tests for Ruby (MRI)
36--------------------------------
37
38To run the Ruby tests against MRI, first build the C extension:
39
40    $ cd ruby && rake
41
42Then run the tests like so:
43
44    $ cd conformance && make test_ruby
45
46Running the tests for other languages
47-------------------------------------
48
49Most of the languages in the Protobuf source tree are set up to run
50conformance tests.  However some of them are more tricky to set up
51properly.  See `tests.sh` in the base of the repository to see how
52Kokoro runs the tests.
53
54Testing other Protocol Buffer implementations
55---------------------------------------------
56
57To run these tests against a new Protocol Buffers implementation, write a
58program in your language that uses the protobuf implementation you want
59to test.  This program should implement the testing protocol defined in
60[conformance.proto](https://github.com/protocolbuffers/protobuf/blob/main/conformance/conformance.proto).
61This is designed to be as easy as possible: the C++ version is only
62150 lines and is a good example for what this program should look like
63(see [conformance_cpp.cc](https://github.com/protocolbuffers/protobuf/blob/main/conformance/conformance_cpp.cc)).
64The program only needs to be able to read from stdin and write to stdout.
65
66Portability
67-----------
68
69Note that the test runner currently does not work on Windows.  Patches
70to fix this are welcome!  (But please get in touch first to settle on
71a general implementation strategy).
72