#!/bin/bash global CONFIG := 'Release' global SRC := "$[dirname $0]/src" set -ex echo Building relevant projects. dotnet build -c $CONFIG $SRC/Google.Protobuf $SRC/Google.Protobuf.Test $SRC/Google.Protobuf.Conformance echo Running tests. # Only test netcoreapp1.0, which uses the .NET Core runtime. # If we want to test the .NET 4.5 version separately, we could # run Mono explicitly. However, we don't have any differences between # the .NET 4.5 and netstandard1.0 assemblies. dotnet test -c $CONFIG -f netcoreapp1.0 $SRC/Google.Protobuf.Test (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:CONFIG) op:Equal rhs:{(Release)} spids:[4])] spids: [4] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SRC) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(dirname)} {($ VSub_Number "$0")})]) left_token: spids: [8 12] ) (/src) } spids: [7] ) ] spids: [7] ) (C {(set)} {(-ex)}) (C {(echo)} {(Building)} {(relevant)} {(projects.)}) (C {(dotnet)} {(build)} {(-c)} {($ VSub_Name "$CONFIG")} {($ VSub_Name "$SRC") (/Google.Protobuf)} {($ VSub_Name "$SRC") (/Google.Protobuf.Test)} {($ VSub_Name "$SRC") (/Google.Protobuf.Conformance)} ) (C {(echo)} {(Running)} {(tests.)}) (C {(dotnet)} {(test)} {(-c)} {($ VSub_Name "$CONFIG")} {(-f)} {(netcoreapp1.0)} {($ VSub_Name "$SRC") (/Google.Protobuf.Test)} ) ] )