diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2016-08-24 17:29:05 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2016-08-26 13:54:00 -0400 |
commit | 2e66a61b540b7858c1cd1910c5efa58d72907b54 (patch) | |
tree | 09b476ab8025a28ead9a13c49de3dde994c42935 /objectivec/DevTools | |
parent | b97a4a53cdd55be74c30badefeb132a091764f53 (diff) | |
download | protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.tar.gz protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.tar.bz2 protobuf-2e66a61b540b7858c1cd1910c5efa58d72907b54.zip |
Support GenerateAll().
- Expect calls on GenerateAll() and not Generate().
- Parse the prefix validation file once, and then check all the files.
Diffstat (limited to 'objectivec/DevTools')
-rwxr-xr-x | objectivec/DevTools/compile_testing_protos.sh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/objectivec/DevTools/compile_testing_protos.sh b/objectivec/DevTools/compile_testing_protos.sh index 82953130..9a6b7bf2 100755 --- a/objectivec/DevTools/compile_testing_protos.sh +++ b/objectivec/DevTools/compile_testing_protos.sh @@ -99,26 +99,26 @@ CORE_PROTO_FILES+=( src/google/protobuf/descriptor.proto ) -compile_proto() { +compile_protos() { src/protoc \ --objc_out="${OUTPUT_DIR}/google/protobuf" \ --proto_path=src/google/protobuf/ \ --proto_path=src \ - $* + "$@" } +# Note: there is overlap in package.Message names between some of the test +# files, so they can't be generated all at once. This works because the overlap +# isn't linked into a single binary. for a_proto in "${CORE_PROTO_FILES[@]}" ; do - compile_proto "${a_proto}" + compile_protos "${a_proto}" done -OBJC_PROTO_FILES=( - objectivec/Tests/unittest_cycle.proto - objectivec/Tests/unittest_runtime_proto2.proto - objectivec/Tests/unittest_runtime_proto3.proto - objectivec/Tests/unittest_objc.proto +# Objective C specific testing protos. +compile_protos \ + --proto_path="objectivec/Tests" \ + objectivec/Tests/unittest_cycle.proto \ + objectivec/Tests/unittest_runtime_proto2.proto \ + objectivec/Tests/unittest_runtime_proto3.proto \ + objectivec/Tests/unittest_objc.proto \ objectivec/Tests/unittest_objc_startup.proto -) - -for a_proto in "${OBJC_PROTO_FILES[@]}" ; do - compile_proto --proto_path="objectivec/Tests" "${a_proto}" -done |