• Home
Name Date Size #Lines LOC

..--

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

ConformanceJava.javaD03-May-202412.5 KiB355313

ConformanceJavaLite.javaD03-May-20243.5 KiB126100

Makefile.amD03-May-202422.8 KiB379259

README.mdD03-May-20242.5 KiB7249

autoload.phpD03-May-2024752 2217

binary_json_conformance_suite.ccD03-May-202482.9 KiB2,4612,182

binary_json_conformance_suite.hD03-May-20245.5 KiB12282

conformance.protoD03-May-20247.2 KiB177155

conformance_cpp.ccD03-May-20249.9 KiB284212

conformance_nodejs.jsD03-May-20246 KiB187125

conformance_objc.mD03-May-20247 KiB211181

conformance_php.phpD03-May-20244.2 KiB121104

conformance_python.pyD03-May-20249.1 KiB217147

conformance_ruby.rbD03-May-20244.4 KiB13883

conformance_test.ccD03-May-202414.9 KiB436356

conformance_test.hD03-May-202411.3 KiB320158

conformance_test_main.ccD03-May-20242 KiB419

conformance_test_runner.ccD03-May-202411.4 KiB344227

failure_list_cpp.txtD03-May-20241.9 KiB3735

failure_list_csharp.txtD03-May-2024124 32

failure_list_java.txtD03-May-20242.6 KiB4846

failure_list_js.txtD03-May-2024911 1413

failure_list_objc.txtD03-May-2024139 32

failure_list_php.txtD03-May-20241 KiB2120

failure_list_php_c.txtD03-May-20242.6 KiB4544

failure_list_php_zts_c.txtD03-May-202411.7 KiB226225

failure_list_python-post26.txtD03-May-202486 32

failure_list_python.txtD03-May-20241.2 KiB2221

failure_list_python_cpp.txtD03-May-20241.1 KiB2321

failure_list_ruby.txtD03-May-20243.9 KiB6766

failure_list_ruby_mac.txtD03-May-20243.9 KiB6766

text_format_conformance_suite.ccD03-May-202412.9 KiB318243

text_format_conformance_suite.hD03-May-20243.2 KiB7033

text_format_failure_list_csharp.txtD03-May-2024608 98

text_format_failure_list_java.txtD03-May-2024416 76

text_format_failure_list_php.txtD03-May-2024608 98

text_format_failure_list_python.txtD03-May-2024253 65

text_format_failure_list_ruby.txtD03-May-2024608 98

update_failure_list.pyD03-May-20242.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
52Travis 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/master/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/master/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