Jan Tattermusch | b1a921c | 2015-05-12 19:27:53 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jan Tattermusch | b1a921c | 2015-05-12 19:27:53 -0700 | [diff] [blame] | 2 | |
Jan Tattermusch | b1a921c | 2015-05-12 19:27:53 -0700 | [diff] [blame] | 3 | CONFIG=Release |
Jan Tattermusch | b1a921c | 2015-05-12 19:27:53 -0700 | [diff] [blame] | 4 | SRC=$(dirname $0)/src |
| 5 | |
| 6 | set -ex |
| 7 | |
Jon Skeet | 10a8fb4 | 2016-07-14 22:01:47 +0100 | [diff] [blame] | 8 | echo Building relevant projects. |
Jon Skeet | f26e8c2 | 2017-05-04 08:51:46 +0100 | [diff] [blame] | 9 | dotnet restore $SRC/Google.Protobuf.sln |
| 10 | dotnet build -c $CONFIG $SRC/Google.Protobuf.sln |
Jan Tattermusch | b1a921c | 2015-05-12 19:27:53 -0700 | [diff] [blame] | 11 | |
| 12 | echo Running tests. |
Romfos | 09f094c | 2023-04-10 13:24:56 -0700 | [diff] [blame] | 13 | # Only test net6.0, which uses the .NET runtime. |
Jon Skeet | 10a8fb4 | 2016-07-14 22:01:47 +0100 | [diff] [blame] | 14 | # If we want to test the .NET 4.5 version separately, we could |
| 15 | # run Mono explicitly. However, we don't have any differences between |
Jan Tattermusch | 753daae | 2019-03-12 04:40:46 -0400 | [diff] [blame] | 16 | # the .NET 4.5 and netstandard2.1 assemblies. |
Romfos | 09f094c | 2023-04-10 13:24:56 -0700 | [diff] [blame] | 17 | dotnet test -c $CONFIG -f net6.0 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj |