aboutsummaryrefslogtreecommitdiff
path: root/conformance
Commit message (Collapse)AuthorAgeFilesLines
* Add source dependency of test suite implementation to main function (#5069)Paul Yang2018-09-064-230/+202
| | | | | | | | | | | | | | * Fix conformance running nothing issue This change adds a source dependency of the test suite implementaion class in the main function. For generality reason, the main function is moved to the file of the test suite implemetation. New test suite implementation will need to implement the main function. In order to make it easy for test suite implementation to implement the main function, this change also refactor out the common code out of the main function. * Fix typo
* Add missing reference to conformanc_test_impl.cc in Makefile (#5100)Paul Yang2018-08-313-2/+7
| | | | | | * Add missing reference to conformanc_test_impl.cc in Makefile * Update conformance failure list
* Replace repo links.Feng Xiao2018-08-221-2/+2
|
* Merge pull request #5032 from TeBoring/json-wrapperJoshua Haberman2018-08-131-36/+0
|\ | | | | Fix json parsing of wrapper values
| * Fix json parsing of wrapper valuesBo Yang2018-08-101-36/+0
| |
* | Fix failing tests.Feng Xiao2018-08-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fix C++ tests. * Add missing files to Makefile.am and fix distcheck in tests.sh * Remove BUILT_SOURCES from conformance/Makefile.am. * Add some missing override keyword. * Add a type cast to int64 because our StrCat() in stubs can't handle size_t. 2. Fix Java tests. * Add missing test dependency on guava in pom.xml. * Include newly referenced test data in test resources. * Manually fix map_lite_test.proto which is overwritten because it's mapped from map_test.proto in google3. * Add back "optimize_for = LITE_RUNTIME" which is still needed to keep the opensource test passing as it's still running lite tests. * Add a type cast in newBuilder() because without it the code doesn't compile with openjdk javac 1.8 (the compiler can't figure if it's the right type due to complex generic typing). 3. Fix Python tests. * Remove/replace references to <hash_map>. * Suppress more warnings in setup.py. * Replace incorrect header inclusion for google/protobuf/proto_api.h. * Add strings::EndsWith to google/protobuf/stubs/strutil.h because it's referenced in the updated python C extension code. * Replace proto2 with google::protobuf. The proto2 name is leaked to opensource because we removed the subsitition rule for proto2 namespace but only fixed C++ source code and forgot to update python C extension code.
* | Merge master branch.Feng Xiao2018-08-081-2/+0
|\ \
| * | Give a specific category to each test. (#4965)Paul Yang2018-07-2713-53/+55
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Give a unique category to each test. This change introduce a TestCategory enum to ConformanceRequest. Existing tests are divided into three categories: binary format test, json format test and json format (ignore unknown when parsing) test. For the previous two categories, there is no change to existing testee programs. For tests with the last category, testee programs should either enable ignoring unknown field during json parsing or skip the test. * Fix python test * Fix java * Fix csharp * Update document * Update csharp generated code
| * Add conformance test for php c back (#4966)Paul Yang2018-07-261-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | * Add conformance test for php c back php c extension has different result for conformance test for different php version and architecture. Try to add conformance back for php 7.1 c extension first. * Disable conformance test for c extension on 32-bit architecture 32-bit and 64-bit have different failing tests * Fix typo
| * Remove/replace travis references (#4953)Feng Xiao2018-07-221-2/+0
| | | | | | | | * Remove/replace travis references.
* | Down-integrate from google3.Feng Xiao2018-08-0818-2456/+2626
|/
* Enable ignoring unknown in json parsing in php (#4839)Paul Yang2018-07-0912-160/+253
| | | | | | | | | | * Enable ignoring unknown in json parsing in php * Update generated descriptor files * Update failure list for other languages. * Remove unnecessary php files
* Fix cpp_distcheckBSBandme2018-07-091-2/+0
|
* Updated Ruby conformance test failure listAdam Cozzette2018-03-231-0/+2
| | | | | | | This commit adds two entries to the conformance failure list for Ruby. It seems that these particular test cases have been failing since they were introduced in 5140bae3834c40208e44b1eeb947485a832387a7, so there has not been any regression.
* Merge pull request #4387 from acozzette/down-integrateAdam Cozzette2018-03-204-5/+6
|\ | | | | Integrated internal changes from Google
| * Updated conformance failure listsAdam Cozzette2018-03-203-3/+0
| |
| * Deleted scoped_ptr.hAdam Cozzette2018-03-143-5/+2
| | | | | | | | | | We no longer need this, now that we have finished the switch to C++11 and are using std::unique_ptr.
| * Integrated internal changes from GoogleAdam Cozzette2018-03-134-0/+7
| |
* | Add conformance test for null value in list JSONJon Skeet2018-03-011-0/+18
|/
* Removed using statements from common.hAdam Cozzette2018-01-262-3/+3
| | | | | | These statements pulled a bunch of symbols from the std namespace into the global namespace. This commit removes all of them except for std::string, which is a bit trickier to remove.
* Add unknown field support for csharp (#3936)Jie Luo2017-12-131-1/+0
| | | Add unknown field support for csharp
* Updated conformance failure listsAdam Cozzette2017-12-043-9/+0
|
* Merge branch 'master' into down-integrateAdam Cozzette2017-12-011-0/+16
|\
| * All integer types should accept null in json. (#3869)Paul Yang2017-11-131-0/+16
| |
| * Fix php well known type conformance tests (#3828) (#3840)Paul Yang2017-11-044-114/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix php well known type conformance tests * Properly generate code for test.proto * Provide GPBMetadata files in c extensions for generated files to import. * Remove unnecessary test * Clean up code * Add declaration for initOnce. * Refactoring
* | Integrated internal changes from GoogleAdam Cozzette2017-12-014-2/+10
| |
* | Fix php well known type conformance tests (#3828)Paul Yang2017-11-034-114/+10
|/ | | | | | | | | | | | | | | | * Fix php well known type conformance tests * Properly generate code for test.proto * Provide GPBMetadata files in c extensions for generated files to import. * Remove unnecessary test * Clean up code * Add declaration for initOnce. * Refactoring
* Reserve unknown in Ruby (#3763)Paul Yang2017-10-265-5/+69
| | | | | | | | | | | | | | | | | | | | | | | | * Reserve unknown in ruby * Revert ruby tests. Wait for cpp impl for conformance test * Add conformance test for preserving unknown * Add unknown field conformance test to csharp failure list. * Fix comments * Fix comment * Fix comments * Fix typo * Use stringsink_string directly * Mark hd unused * Remove unused encodeunknown_handlerfunc
* Fix JS conformance testsJisi Liu2017-10-181-6/+0
|
* Merge from google internalJisi Liu2017-10-182-2/+0
|
* Merge pull request #2377 from mcos/chore/conformance-null-testsFeng Xiao2017-09-191-0/+8
|\ | | | | Conformance Tests for Null Timestamp and Duration JSON Values
| * Add tests to demonstrate json parsing for null Timestamp and Duration typesMark Costello2016-11-161-0/+8
| |
* | Integrated internal changes from GoogleAdam Cozzette2017-09-141-0/+1
| |
* | Add well-known timestamps to JSON for PHP (#3564)Jack Wakefield2017-09-103-30/+4
| |
* | Merge remote-tracking branch 'origin/3.4.x' into mergemasterJisi Liu2017-08-187-5/+16
|\ \
| * \ Merge branch 'master' into 3.4.xBo Yang2017-08-053-24/+28
| |\ \
| * | | Update conformance tests again.Jisi Liu2017-07-253-3/+4
| | | |
| * | | Fix conformance testsJisi Liu2017-07-252-4/+4
| | | |
| * | | Update conformance testsJisi Liu2017-07-253-5/+6
| | | |
| * | | Merge from masterJisi Liu2017-07-2520-846/+1028
| | | |
| * | | Update conformance testsJisi Liu2017-07-195-1184/+6
| | | |
| * | | Merge master into 3.4.xJisi Liu2017-07-1810-620/+276
| |\ \ \
| * | | | Merge from Google internal for 3.4 releaseJisi Liu2017-07-184-5/+1194
| | | | |
* | | | | file() was removed in Python 3, use open() insteadcclauss2017-08-181-2/+2
| | | | | | | | | | | | | | | http://python-future.org/compatible_idioms.html#file
* | | | | Detect invalid tags with a field number of 0 in C#Jon Skeet2017-08-111-5/+0
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we only rejected the tag if the tag itself was 0, i.e. field=0, type=varint. The type doesn't matter: field 0 is always invalid. This removes the last of the C# conformance failures.
* | | | Update the comment on the message_type to cover what it should be.Thomas Van Lenten2017-07-261-1/+3
| | | |
* | | | Review feedback.Thomas Van Lenten2017-07-261-8/+6
| | | | | | | | | | | | | | | | | | | | - Better error message for unknown messageType. - Remove unneeded if.
* | | | Add the proto2 message conformance support for ObjC.Thomas Van Lenten2017-07-261-10/+12
| | | |
* | | | Generate the proto2 test file and link it in for ObjC.Thomas Van Lenten2017-07-261-9/+11
| | | |
* | | | Add a objc_class_prefix to test_messages_proto3.proto.Thomas Van Lenten2017-07-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both test_messages_proto3.proto & test_messages_proto2.proto define message ForeignMessage {...} and enum ForeignEnum {...} but since objc doesn't use the proto package in the naming, these end up conflicting. Adding the objc_class_prefix option to the proto3 file ensure the generated objc types are all unique.