forked from googleapis/google-cloud-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
updateconformancetests.sh
executable file
·38 lines (30 loc) · 1.09 KB
/
updateconformancetests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
source toolversions.sh
declare -r CORE_PROTOS_ROOT=$PROTOBUF_TOOLS_ROOT/tools
# First update the submodule with the new tests/protos
git submodule update --remote conformance-tests
# Now regenerate C# from the protos
# Storage
$PROTOC \
--csharp_out=apis/Google.Cloud.Storage.V1/Google.Cloud.Storage.V1.Tests/Conformance \
--csharp_opt=file_extension=.g.cs \
-I conformance-tests \
-I $CORE_PROTOS_ROOT \
conformance-tests/storage/v1/proto/google/cloud/conformance/storage/v1/*.proto
# Firestore
$PROTOC \
--csharp_out=apis/Google.Cloud.Firestore/Google.Cloud.Firestore.Tests/Proto \
--csharp_opt=file_extension=.g.cs \
-I conformance-tests \
-I $CORE_PROTOS_ROOT \
-I googleapis \
conformance-tests/firestore/v1/proto/google/cloud/conformance/firestore/v1/*.proto
# Bigtable
$PROTOC \
--csharp_out=apis/Google.Cloud.Bigtable.V2/Google.Cloud.Bigtable.V2.Tests/Conformance \
--csharp_opt=file_extension=.g.cs \
-I conformance-tests \
-I $CORE_PROTOS_ROOT \
-I googleapis \
conformance-tests/bigtable/v2/proto/google/cloud/conformance/bigtable/v2/*.proto