| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Use mono to build solution and run all tests. | |
| 3 | 2 |
| 4 # Adjust these to reflect the location of nunit-console in your system. | |
| 5 NUNIT_CONSOLE=nunit-console | |
| 6 | |
| 7 # The rest you can leave intact | |
| 8 CONFIG=Release | 3 CONFIG=Release |
| 9 SRC=$(dirname $0)/src | 4 SRC=$(dirname $0)/src |
| 10 | 5 |
| 11 set -ex | 6 set -ex |
| 12 | 7 |
| 13 echo Building the solution. | 8 echo Building relevant projects. |
| 14 xbuild /p:Configuration=$CONFIG $SRC/Google.Protobuf.sln | 9 dotnet build -c $CONFIG $SRC/Google.Protobuf $SRC/Google.Protobuf.Test $SRC/Goog
le.Protobuf.Conformance |
| 15 | 10 |
| 16 echo Running tests. | 11 echo Running tests. |
| 17 $NUNIT_CONSOLE $SRC/Google.Protobuf.Test/bin/$CONFIG/Google.Protobuf.Test.dll | 12 # Only test netcoreapp1.0, which uses the .NET Core runtime. |
| 13 # If we want to test the .NET 4.5 version separately, we could |
| 14 # run Mono explicitly. However, we don't have any differences between |
| 15 # the .NET 4.5 and netstandard1.0 assemblies. |
| 16 dotnet test -c $CONFIG -f netcoreapp1.0 $SRC/Google.Protobuf.Test |
| OLD | NEW |