diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-11 17:33:50 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-11 17:33:50 +0300 |
commit | 59cba0beeabac991b123dc6826e534f7838c5961 (patch) | |
tree | 288357bf146805768188f9c9725d9e3868f41719 | |
parent | 152c2c910c9cda6e0beb1863c510c678300bdd7b (diff) |
Expand extra_fields test to cover field skipping in case of streams.
-rw-r--r-- | tests/extra_fields/SConscript | 4 | ||||
-rw-r--r-- | tests/extra_fields/person_with_extra_field.pb | bin | 90 -> 124 bytes |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/extra_fields/SConscript b/tests/extra_fields/SConscript index a6f0e75..9227e95 100644 --- a/tests/extra_fields/SConscript +++ b/tests/extra_fields/SConscript @@ -6,5 +6,9 @@ dec = env.GetBuildPath('#basic_buffer/${PROGPREFIX}decode_buffer${PROGSUFFIX}') env.RunTest('person_with_extra_field.output', [dec, "person_with_extra_field.pb"]) env.Compare(["person_with_extra_field.output", "person_with_extra_field.expected"]) +dec = env.GetBuildPath('#basic_stream/${PROGPREFIX}decode_stream${PROGSUFFIX}') +env.RunTest('person_with_extra_field_stream.output', [dec, "person_with_extra_field.pb"]) +env.Compare(["person_with_extra_field_stream.output", "person_with_extra_field.expected"]) + dec2 = env.GetBuildPath('#alltypes/${PROGPREFIX}decode_alltypes${PROGSUFFIX}') env.RunTest('alltypes_with_extra_fields.output', [dec2, 'alltypes_with_extra_fields.pb']) diff --git a/tests/extra_fields/person_with_extra_field.pb b/tests/extra_fields/person_with_extra_field.pb Binary files differindex ced3057..ffb303d 100644 --- a/tests/extra_fields/person_with_extra_field.pb +++ b/tests/extra_fields/person_with_extra_field.pb |