aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh
diff options
context:
space:
mode:
authorGravatar Mina Farid <minafarid@google.com>2018-07-16 13:55:10 -0400
committerGravatar GitHub <noreply@github.com>2018-07-16 13:55:10 -0400
commit22562f49ebd39bb7f3d3b00f020841eb1f545934 (patch)
tree2976a9c3a1a9db3b9455e8f24a772cb93f3e0e1c /Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh
parentcda87fa3afdacf20a097cf6ed90c5c2ef64e0437 (diff)
Fuzz testing uses protoc from a pod dependency (#1538)
Diffstat (limited to 'Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh')
-rwxr-xr-xFirestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh b/Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh
index 772e858..3d499c6 100755
--- a/Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh
+++ b/Firestore/Example/FuzzTests/FuzzingResources/Serializer/Corpus/ConvertTextToBinary.sh
@@ -49,13 +49,10 @@ for text_proto_file in "${text_protos_dir}"/*; do
fi
# Run the conversion.
- # TODO(minafarid): This conversion relies on protoc as built by the cmake
- # build. Switch this to using a pod dependency of protoc.
echo "Converting file: ${file_name} (type: ${message_type})"
echo "${file_content}" \
- | "${SRCROOT}/../../build/external/protobuf/src/protobuf-build/src/protoc" \
+ | "${SRCROOT}/Pods/!ProtoCompiler/protoc" \
-I"${SRCROOT}/../../Firestore/Protos/protos" \
- -I"${SRCROOT}/../../build/external/protobuf/src/protobuf/src" \
--encode=google.firestore.v1beta1."${message_type}" \
google/firestore/v1beta1/document.proto > "${binary_protos_dir}/${file_name}"
done