Jisi Liu
09354db143
Merge from Google internal for 3.4 release
2017-07-18 15:38:30 -07:00
tanderson-google
126082c371
Add std:: namespace prefix to set and map ( #3332 )
...
* Remove using std::{set,map}
2017-07-09 20:31:50 -07:00
Yilun Chong
bceb830c39
add comments in makefile.am
2017-07-05 12:15:53 -07:00
Yilun Chong
32c8ed3b44
change csharp failure list
2017-07-05 11:07:49 -07:00
Yilun Chong
30b4194488
Merge branch 'ConformanceTestYilunChong' of github.com:BSBandme/protobuf into ConformanceTestYilunChong
2017-07-05 09:51:58 -07:00
Yilun Chong
cbf7dfb323
fix php failing list and csharp generated proto
2017-07-05 09:48:40 -07:00
Yilun Chong
e82ba0b802
Merge branch 'master' into ConformanceTestYilunChong
2017-06-30 17:38:50 -07:00
Yilun Chong
726ba33d98
changed php's failing list
2017-06-30 17:34:58 -07:00
Yilun Chong
5085102d96
remove backup files
2017-06-30 17:23:10 -07:00
Yilun Chong
3adb054bbf
add some test proto2 supported, add js proto2 supported, fixed some error
2017-06-30 17:22:32 -07:00
Paul Yang
ecca6ea95d
Add json encode/decode for php. ( #3226 )
...
* Add json encode/decode for php.
* Fix php conformance test on 32-bit machines.
* Fix conformance test for c extension.
* Fix comments
2017-06-30 12:14:09 -07:00
Yilun Chong
a7d5be6a91
change php objc nodejs csharp ruby
2017-06-29 15:04:50 -07:00
Yilun Chong
fcb9268255
change java to uniform message, revert TestValidDataForType's parameters
2017-06-29 14:40:47 -07:00
Yilun Chong
020a24dfdc
change cpp and python to uniform message
2017-06-29 11:33:22 -07:00
Yilun Chong
364502102a
add message set test case
2017-06-28 12:41:11 -07:00
Yilun Chong
06c9057cc3
add objec support
2017-06-28 12:17:24 -07:00
Yilun Chong
cf7b6a46b2
delete backup files
2017-06-28 11:44:41 -07:00
Yilun Chong
6c59c25735
delete binary
2017-06-28 11:41:43 -07:00
Yilun Chong
696cf779d4
add java supported
2017-06-28 11:32:01 -07:00
Yilun Chong
18a0c2c4d2
add proto2 supported for cpp,python,nodejs,ruby,php
2017-06-27 18:24:15 -07:00
Yilun Chong
2ad74e1606
add support for proto2
2017-06-26 17:46:34 -07:00
Yilun Chong
58a3c74df0
add test_proto2_message.proto and change conformnace/makefile.am
2017-06-23 11:14:22 -07:00
Joshua Haberman
1325588982
Updated upb to fix JSON conformance issues. ( #3206 )
...
* Fixed a bunch of Ruby conformance errors.
* Fixed some more Ruby conformance errors in JSON.
2017-06-19 15:13:24 -07:00
Thomas Van Lenten
dd19b876d4
Raise the number of digits used for floats.
...
About 1.5% of all IEEE754 single-precision numbers require nine
decimal digits to represent accurately.
2017-06-16 15:24:33 -04:00
Thomas Van Lenten
ecc0f54127
Properly error on a tag with field number zero.
2017-06-06 10:14:41 -04:00
Paul Yang
190b5270c8
Make PHP c extension work with PHP7 ( #2951 )
2017-04-19 16:23:51 -07:00
Feng Xiao
bd74319107
Update Java conformance failure list.
2017-03-31 15:59:48 -07:00
Feng Xiao
624d44f042
Update objective-c conformance failure list.
2017-03-30 17:45:14 -07:00
Feng Xiao
fab8812cc1
Update python conformance failure list.
2017-03-30 16:05:25 -07:00
Feng Xiao
057a2851e4
Update C# conformance failure list.
2017-03-29 16:19:00 -07:00
Feng Xiao
e47c068cfa
Update python conformance failure list.
2017-03-29 16:17:18 -07:00
Feng Xiao
d36c0c538a
Down-integrate from google3.
2017-03-29 14:33:05 -07:00
Joshua Haberman
c565e25c7d
Merge pull request #1662 from haberman/jsconformance
...
Conformance tests for JavaScript (Node.js). 15 tests are failing.
2017-03-27 12:03:09 -07:00
Josh Haberman
1b0db1cb83
Removed obsolete comments and added docs.
2017-03-16 15:19:09 -07:00
Josh Haberman
95b4427d39
Build system fixes for JS conformance tests.
2017-03-14 12:45:57 -07:00
Josh Haberman
8df69f0894
Conformance test for JS now work, though 15 tests fail.
2017-03-13 15:10:53 -07:00
Joshua Haberman
cad6a51a30
Merge pull request #2819 from haberman/pythonexcept
...
update_failure_list.py: fixed Python "raise" statement.
2017-03-09 14:58:01 -08:00
Josh Haberman
3e6245e5d7
update_failure_list.py: fixed Python "raise" statement.
2017-03-09 14:48:28 -08:00
Paul Yang
dd8d5f57d7
Rename encode/decode to serializeToString/mergeFromString ( #2795 )
...
This better shows the semantic of the API. For already setted fields,
mergeFromString do replacement for singular fields and appending for
repeated fields.
2017-03-08 14:31:34 -08:00
Josh Haberman
f873d3213c
Added JavaScript conformance tests. All tests pass!
2017-03-06 10:42:27 -08:00
Josh Haberman
27b1f2b477
WIP.
2017-03-06 10:42:27 -08:00
Paul Yang
cba04b19e8
Implement json encoding decoding for php. ( #2682 )
2017-02-08 10:27:54 -08:00
Paul Yang
39756643df
Add conformance test for php ( #2655 )
2017-02-01 12:47:58 -08:00
Joshua Haberman
ffa71f8007
A few more cases for binary conformance tests. ( #2500 )
...
* A few more cases for binary conformance tests.
* over-encoded varints (encoded in more bytes than are necessary).
* truncated varints (>32 bits for 32-bit types).
* Fixed Python decoding bug with 32-bit varints.
* Fixed 1L -> 1LL for 32-bit platforms.
2017-01-06 16:58:21 -08:00
Joshua Haberman
2ff42dcf2c
Added conformance testing for binary primitive types. ( #2491 )
...
This is basic and more tests will be added over time.
2016-12-13 16:31:02 -08:00
Julien Brianceau
e3da722b66
Fix #include in cc files
2016-12-09 09:34:07 +01:00
Joshua Haberman
f1ce60e7b4
Factored Conformance and Benchmark test messages into shared test schema. ( #1971 )
...
* Factored Conformance test messages into shared test schema.
* Updated benchmarks to use new proto3 message locations.
* Fixed include path.
* Conformance: fixed include of Python test messages.
* Make maven in Rakefile use --batch-mode.
* Revert changes to benchmarks.
On second thought I think a separate schema for
CPU benchmarking makes sense.
* Try regenerating C# protos for new test protos.
* Removed benchmark messages from test proto.
* Added Jon Skeet's fixes for C#.
* Removed duplicate/old test messages C# file.
* C# fixes for test schema move.
* Fixed C# to use the correct TestAllTypes message.
* Fixes for Objective C test schema move.
* Added missing EXTRA_DIST file.
2016-12-03 11:51:25 -05:00
Adam Cozzette
a41090ee6b
Updated failure_list_java.txt for Java conformance test
...
A new test is now passing and so we can remove it from the failure
whitelist.
2016-11-22 10:31:12 -08:00
Feng Xiao
1f077a0183
Update conformance failure lists.
2016-11-18 15:36:18 -08:00
Adam Cozzette
5d63097fc2
Merge branch 'master' into down-integrate-with-msvc-fix
2016-11-17 17:04:30 -08:00
Adam Cozzette
5a76e633ea
Integrated internal changes from Google
2016-11-17 16:59:59 -08:00
Mark Costello
cb54caff01
Add tests to demonstrate json parsing for null Timestamp and Duration types
2016-11-16 15:00:54 -05:00
Feng Xiao
83d6411bf3
Fix jenkins tests.
2016-11-15 14:15:57 -08:00
Jon Skeet
4c310d78a2
Update conformance test failure list
2016-11-03 18:05:59 +00:00
Bo Yang
952638549b
Fix bugs for internal integration.
2016-10-10 11:43:48 -07:00
Bo Yang
89d8e43428
Fix travis, jenkins environment issues.
2016-10-10 11:43:48 -07:00
Bo Yang
31dd4998df
Fix bugs for csharp and ruby for internal integration.
2016-10-10 11:43:48 -07:00
Bo Yang
23d4688cce
Fix python bugs for internal integration.
2016-10-10 11:43:48 -07:00
Bo Yang
e3f0689d05
Fix bugs for internal integration.
2016-10-10 11:23:36 -07:00
Bo Yang
cc8ca5b6a5
Integrate internal changes
2016-10-10 11:23:36 -07:00
Thomas Van Lenten
80f65d2df8
Add note about JSON tests maybe being wrong. ( #1992 )
...
Add note about JSON tests maybe being wrong.
- Add note about the JSON test maybe not being correct yet.
- Add test to checks the generated names for double underscores to be sure they
are what is expected.
2016-08-23 08:19:45 -04:00
Thomas Van Lenten
7437774a27
More JSON tests
...
- String behaviors
- Testing only valid JSON is allowed
2016-08-22 12:07:33 -04:00
Thomas Van Lenten
e389165586
Add more JSON tests around underscores ( #1963 )
...
Add more JSON tests around underscores
2016-08-16 09:02:27 -04:00
Thomas Van Lenten
81564101ee
Fix up ignores and conformance generation
...
- Update ruby conformance generation for rename of generated files that seems
to have happened.
- Update gitignores for the above and for the no-warnings-test.
2016-08-15 16:33:22 -04:00
Jon Skeet
f9d93f358d
Regenerate conformance files to include extra oneof fields.
...
This should fix the failures in the conformance tests - although
it highlights the problem that we need to do this when changing
the conformance.proto file...
2016-08-15 16:45:27 +01:00
Thomas Van Lenten
27c8962505
Add more types to the zero oneof cases.
...
Incase the different runtimes have different generation/implementations for
for the different primitive field types, cover a larger range of the proto
types in the oneof zero tests.
2016-08-11 13:15:01 -04:00
Thomas Van Lenten
ca5b7751e5
Record zero for "has" for proto3 if in a oneof.
...
If a message is proto3, then the zero values still count as being set one the
field is in a oneof.
Add tests to confirm oneofs work as expected in both syntaxes.
2016-08-11 13:14:15 -04:00
Thomas Van Lenten
ac3df39c22
Add conformance test for zero fields in oneofs. ( #1939 )
...
* Add conformance test for zero fields in oneofs.
* Add failures to the "expected" files.
2016-08-11 09:44:07 -04:00
Jon Skeet
00d5a7f099
Amend the conformance tests to only use Int64/Uint64 non-wrapped values which ( #1164 )
...
can reasonably be expected to be interoperable.
(The fact that not all Int64/Uint64 values *can* be exactly represented in
IEEE-754 and thus interoperably amongst JSON implementations is precisely the
reason for wrapping them when we serialize... it shouldn't be a surprise that
we can't round-trip in unwrapped form for all values.)
2016-07-31 11:40:51 +01:00
Josh Haberman
4f19797baf
Ruby: generated foo.proto -> foo_pb.rb instead of foo.rb.
...
This brings us more into line with other langauges, and makes it more
obvious when we are requiring protobuf generated code.
2016-07-25 11:09:23 -07:00
Jon Skeet
b5ce5251fd
Move to dotnet cli for building, and .NET Core (netstandard1.0) as target platform ( #1727 )
...
This also updates the version number to 3.0.0-beta4
2016-07-14 22:16:35 +01:00
Feng Xiao
dd37b992be
Comment out lite conformance test.
...
The 'lite' generator flag is no longer supported.
2016-07-13 16:44:27 -07:00
Otto Kekäläinen
3808d091f8
Fix spelling in strings and comments
2016-07-03 15:26:04 +03:00
Adam Cozzette
69cc213c76
Updated failure_list_java.txt to remove tests that now pass
2016-06-30 10:28:10 -07:00
Josh Haberman
84a1b60703
Added update_failure_list.py.
2016-06-03 09:39:38 -07:00
Josh Haberman
4833b4c003
Surrogate checking is unpredictable, so always manually check.
2016-06-03 09:39:38 -07:00
Josh Haberman
bd98eae1c9
Fixed Python by updating failure lists and fixed a few broken tests.
...
Python 2.x doesn't detect unpaired surrogates so we have to
do that manually.
2016-06-03 09:39:38 -07:00
Josh Haberman
ef7894e2dc
Make conformance tests more strict about the failure list.
...
The failure lists were falling out of date because the
tests would pass even if people forgot to remove failures
from the list.
2016-06-03 09:39:38 -07:00
Thomas Van Lenten
ce2ef0d705
Properly express all outputs for the conformance build
...
- Fixes up `make distclean` and `make maintainer-clean`
- Fixes the build so make is more likely to notice if one of those files is stale/missing.
2016-05-06 12:41:23 -04:00
Josh Haberman
e67ef3d449
Bugfix for JSON error case.
2016-04-14 20:27:45 -07:00
Jisi Liu
0de06f54bc
Merge branch 'master' of github.com:google/protobuf
2016-03-30 11:43:44 -07:00
Jisi Liu
3b3c8abb96
Integrate google internal changes.
2016-03-30 11:39:59 -07:00
Josh Haberman
78da66698b
Changed Ruby to properly camelCase its JSON by default.
2016-02-18 10:50:14 -08:00
Jon Skeet
d522479aa0
Merge pull request #1145 from jskeet/conformance
...
JSON Conformance improvements
2016-01-16 18:28:13 +00:00
Joshua Haberman
1e113df20a
Merge pull request #1146 from haberman/pycppfix
...
Fixed Python 3.x C++ build, and updated conformance failure lists.
2016-01-15 23:52:33 -08:00
Josh Haberman
06fd6fa850
Fixed Python 3.x C++ build, and updated conformance failure lists.
2016-01-15 17:26:44 -08:00
Jon Skeet
5ee055d53d
Remove now-fixed conformance errors.
2016-01-15 14:43:17 +00:00
Feng Xiao
ea956761cc
Fix tests broken by the Java directory change.
...
Change-Id: I39c4eadbd28164cfd83aa2d1d8b6dfe8286db803
2016-01-14 14:29:51 -08:00
Josh Haberman
7e74a02b17
Don't generate Objective C WKT for conformance tests to avoid dupliate defs.
2016-01-12 08:56:17 -08:00
Josh Haberman
043ca2b84b
Conformance: Update C# failure list to reflect which tests currently pass.
2016-01-12 02:48:00 -08:00
Josh Haberman
ea909a57e4
Updated C#'s failure list, and added missing file.
2016-01-11 16:15:46 -08:00
Josh Haberman
e891c29f9b
Allow conformance test runner to tolerate crashes, and re-enable conformance tests.
2016-01-11 16:15:46 -08:00
Thomas Van Lenten
df4e4d8717
Fix up the conformance tests
...
- Update all the new runner cases to handle a skip result as a skip and not a failure.
- Make ObjC use the new serialize_error result if it fails to generate the data.
2016-01-05 16:31:40 -05:00
Thomas Van Lenten
de3c56a0d1
Fix conformance test to only report skips in verbose mode.
...
commit e841bac4fc
seems to have mis-merged the
change to reporting skipped tests.
I didn't check if there were other merge issues.
2016-01-05 15:00:51 -05:00
Feng Xiao
b7610f129d
Add missing files to EXTRA_DIST.
...
Also delete some unused files.
2015-12-28 14:18:49 -08:00
Feng Xiao
d272cef23d
Exclude failing objc conformance tests.
...
[skip ci]
2015-12-21 10:55:38 -08:00
Feng Xiao
1e2fece3e0
Configure conformance tests to build with C++11 (require GCC 4.8)
...
[skip ci]
2015-12-21 00:28:37 -08:00
Feng Xiao
a0cecfd31a
Make conformance tests build for C++ and Java.
...
Change-Id: Ibb3fe6f919cc7ca0df91da5e1697ba33d259e433
2015-12-16 13:38:10 -08:00
Feng Xiao
e841bac4fc
Down-integrate from internal code base.
2015-12-11 17:10:28 -08:00
Thomas Van Lenten
a20d0b6cd4
Fix dist_clean and maintainer-clean to get more generated files.
2015-12-10 15:34:34 -05:00