blob: c9525eb0e94a5401400eac4c0a3ed4ff67e77264 [file] [log] [blame]
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07001#!/bin/bash
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07002
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07003CONFIG=Release
Jan Tattermuschb1a921c2015-05-12 19:27:53 -07004SRC=$(dirname $0)/src
5
6set -ex
7
Jon Skeet10a8fb42016-07-14 22:01:47 +01008echo Building relevant projects.
Jon Skeetf26e8c22017-05-04 08:51:46 +01009dotnet restore $SRC/Google.Protobuf.sln
10dotnet build -c $CONFIG $SRC/Google.Protobuf.sln
Jan Tattermuschb1a921c2015-05-12 19:27:53 -070011
12echo Running tests.
Romfos09f094c2023-04-10 13:24:56 -070013# Only test net6.0, which uses the .NET runtime.
Jon Skeet10a8fb42016-07-14 22:01:47 +010014# 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 Tattermusch753daae2019-03-12 04:40:46 -040016# the .NET 4.5 and netstandard2.1 assemblies.
Romfos09f094c2023-04-10 13:24:56 -070017dotnet test -c $CONFIG -f net6.0 $SRC/Google.Protobuf.Test/Google.Protobuf.Test.csproj