aboutsummaryrefslogtreecommitdiff
path: root/tests.sh
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2017-10-25 08:03:50 +0100
committerJon Skeet <skeet@pobox.com>2017-11-12 15:29:15 +0000
commit9a9a66e71557a5b19c96677eb26f97067c0a06d6 (patch)
tree30f8436633e6a9ca54118cf864cee008a3a12043 /tests.sh
parentce0a53273a400369932ba788d17500336a6ecaad (diff)
downloadprotobuf-9a9a66e71557a5b19c96677eb26f97067c0a06d6.tar.gz
protobuf-9a9a66e71557a5b19c96677eb26f97067c0a06d6.tar.bz2
protobuf-9a9a66e71557a5b19c96677eb26f97067c0a06d6.zip
Run C# codegen when testing it
This will cause failures if shared protos change in an incompatible way.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests.sh b/tests.sh
index 6733e835..50c45fa9 100755
--- a/tests.sh
+++ b/tests.sh
@@ -87,9 +87,7 @@ build_cpp_distcheck() {
}
build_csharp() {
- # Just for the conformance tests. We don't currently
- # need to really build protoc, but it's simplest to keep with the
- # conventions of the other builds.
+ # Required for conformance tests and to regenerate protos.
internal_build_cpp
NUGET=/usr/local/bin/nuget.exe
@@ -104,6 +102,10 @@ build_csharp() {
(cd dotnettmp; dotnet new > /dev/null)
rm -rf dotnettmp
+ # Check that the protos haven't broken C# codegen.
+ # TODO(jonskeet): Fail if regenerating creates any changes.
+ csharp/generate_protos.sh
+
csharp/buildall.sh
cd conformance && make test_csharp && cd ..