| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Use mono to build solution and run all tests. |
| 2 | 3 |
| 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 |
| 3 CONFIG=Release | 8 CONFIG=Release |
| 4 SRC=$(dirname $0)/src | 9 SRC=$(dirname $0)/src |
| 5 | 10 |
| 6 set -ex | 11 set -ex |
| 7 | 12 |
| 8 echo Building relevant projects. | 13 echo Building the solution. |
| 9 dotnet build -c $CONFIG $SRC/Google.Protobuf $SRC/Google.Protobuf.Test $SRC/Goog
le.Protobuf.Conformance | 14 xbuild /p:Configuration=$CONFIG $SRC/Google.Protobuf.sln |
| 10 | 15 |
| 11 echo Running tests. | 16 echo Running tests. |
| 12 # Only test netcoreapp1.0, which uses the .NET Core runtime. | 17 $NUNIT_CONSOLE $SRC/Google.Protobuf.Test/bin/$CONFIG/Google.Protobuf.Test.dll |
| 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 |