diff options
author | Jens Geyer <jensg@apache.org> | 2019-12-06 23:43:08 +0100 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2019-12-07 08:47:32 +0100 |
commit | ffb97e105cbef6afc809a1bdac9cdac1f35d6bab (patch) | |
tree | c9b2a58f29402781e3a12009e142a19ee851d80f /test/netstd | |
parent | e780855d336beb23119cc83d1ca6c3008f842541 (diff) | |
download | thrift-ffb97e105cbef6afc809a1bdac9cdac1f35d6bab.tar.gz |
THRIFT-4990 Upgrade to .NET Core 3.1 (LTS)
Client: netstd
Patch: Jens Geyer
This closes #1961
Diffstat (limited to 'test/netstd')
-rw-r--r-- | test/netstd/Client/Client.csproj | 6 | ||||
-rw-r--r-- | test/netstd/Client/Program.cs | 1 | ||||
-rw-r--r-- | test/netstd/README.md | 2 | ||||
-rw-r--r-- | test/netstd/Server/Server.csproj | 8 | ||||
-rw-r--r-- | test/netstd/Server/TestServer.cs | 28 | ||||
-rw-r--r-- | test/netstd/ThriftTest.sln | 4 |
6 files changed, 25 insertions, 24 deletions
diff --git a/test/netstd/Client/Client.csproj b/test/netstd/Client/Client.csproj index c406f17c3..4ed57cbd9 100644 --- a/test/netstd/Client/Client.csproj +++ b/test/netstd/Client/Client.csproj @@ -19,7 +19,7 @@ --> <PropertyGroup> - <TargetFramework>netcoreapp3.0</TargetFramework> + <TargetFramework>netcoreapp3.1</TargetFramework> <AssemblyName>Client</AssemblyName> <PackageId>Client</PackageId> <OutputType>Exe</OutputType> @@ -31,9 +31,9 @@ <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute> </PropertyGroup> <ItemGroup> - <PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.5.2" /> + <PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.7.0" /> <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> - <PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" /> + <PackageReference Include="System.ServiceModel.Primitives" Version="4.7.0" /> <PackageReference Include="System.Threading" Version="[4.3,)" /> </ItemGroup> <ItemGroup> diff --git a/test/netstd/Client/Program.cs b/test/netstd/Client/Program.cs index 47dabd3c9..92000da56 100644 --- a/test/netstd/Client/Program.cs +++ b/test/netstd/Client/Program.cs @@ -42,6 +42,7 @@ namespace Client Console.WriteLine("The 'client' argument is no longer required."); PrintHelp(); return -1; + case "--performance": case "--performance-test": return Tests.PerformanceTests.Execute(); case "--help": diff --git a/test/netstd/README.md b/test/netstd/README.md index 8350728e5..4ece05984 100644 --- a/test/netstd/README.md +++ b/test/netstd/README.md @@ -6,7 +6,7 @@ Tests for Thrift client library ported to Microsoft .NET Core - ThriftTest - tests for Thrift library # Reused components -- NET Core SDK 3.0 +- NET Core SDK 3.1 (LTS) # How to build on Windows - Get Thrift IDL compiler executable, add to some folder and add path to this folder into PATH variable diff --git a/test/netstd/Server/Server.csproj b/test/netstd/Server/Server.csproj index 5d33aa09d..fa5ce4615 100644 --- a/test/netstd/Server/Server.csproj +++ b/test/netstd/Server/Server.csproj @@ -19,7 +19,7 @@ --> <PropertyGroup> - <TargetFramework>netcoreapp3.0</TargetFramework> + <TargetFramework>netcoreapp3.1</TargetFramework> <AssemblyName>Server</AssemblyName> <PackageId>Server</PackageId> <OutputType>Exe</OutputType> @@ -33,9 +33,9 @@ <ItemGroup> <PackageReference Include="System.IO.Pipes" Version="4.3.0" /> <PackageReference Include="System.IO.Pipes.AccessControl" Version="4.5.1" /> - <PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.5.2" /> + <PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.7.0" /> <PackageReference Include="System.Runtime.Serialization.Primitives" Version="[4.3,)" /> - <PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" /> + <PackageReference Include="System.ServiceModel.Primitives" Version="4.7.0" /> <PackageReference Include="System.Threading" Version="[4.3,)" /> </ItemGroup> <ItemGroup> @@ -47,6 +47,6 @@ </Exec> <Exec Condition="Exists('$(PathToThrift)')" Command=""$(PathToThrift)" -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> <Exec Condition="Exists('thrift')" Command="thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> - <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial,pascal -r ./../../ThriftTest.thrift" /> + <Exec Condition="Exists('$(ProjectDir)/../../../compiler/cpp/thrift')" Command="$(ProjectDir)/../../../compiler/cpp/thrift -out $(ProjectDir) -gen netstd:wcf,union,serial -r ./../../ThriftTest.thrift" /> </Target> </Project> diff --git a/test/netstd/Server/TestServer.cs b/test/netstd/Server/TestServer.cs index 493d89dee..68461dc9c 100644 --- a/test/netstd/Server/TestServer.cs +++ b/test/netstd/Server/TestServer.cs @@ -254,20 +254,20 @@ namespace ThriftTest public Task<Xtruct> testStructAsync(Xtruct thing, CancellationToken cancellationToken) { - logger.Invoke("testStruct({{\"{0}\", {1}, {2}, {3}}})", thing.StringThing, thing.ByteThing, thing.I32Thing, thing.I64Thing); + logger.Invoke("testStruct({{\"{0}\", {1}, {2}, {3}}})", thing.String_thing, thing.Byte_thing, thing.I32_thing, thing.I64_thing); return Task.FromResult(thing); } public Task<Xtruct2> testNestAsync(Xtruct2 nest, CancellationToken cancellationToken) { - var thing = nest.StructThing; + var thing = nest.Struct_thing; logger.Invoke("testNest({{{0}, {{\"{1}\", {2}, {3}, {4}, {5}}}}})", - nest.ByteThing, - thing.StringThing, - thing.ByteThing, - thing.I32Thing, - thing.I64Thing, - nest.I32Thing); + nest.Byte_thing, + thing.String_thing, + thing.Byte_thing, + thing.I32_thing, + thing.I64_thing, + nest.I32_thing); return Task.FromResult(nest); } @@ -429,10 +429,10 @@ namespace ThriftTest logger.Invoke("testMulti()"); var hello = new Xtruct(); ; - hello.StringThing = "Hello2"; - hello.ByteThing = arg0; - hello.I32Thing = arg1; - hello.I64Thing = arg2; + hello.String_thing = "Hello2"; + hello.Byte_thing = arg0; + hello.I32_thing = arg1; + hello.I64_thing = arg2; return Task.FromResult(hello); } @@ -473,12 +473,12 @@ namespace ThriftTest var x = new Xception2 { ErrorCode = 2002, - StructThing = new Xtruct { StringThing = "This is an Xception2" } + Struct_thing = new Xtruct { String_thing = "This is an Xception2" } }; throw x; } - var result = new Xtruct { StringThing = arg1 }; + var result = new Xtruct { String_thing = arg1 }; return Task.FromResult(result); } diff --git a/test/netstd/ThriftTest.sln b/test/netstd/ThriftTest.sln index 6bd08555b..352576ef0 100644 --- a/test/netstd/ThriftTest.sln +++ b/test/netstd/ThriftTest.sln @@ -4,9 +4,9 @@ VisualStudioVersion = 15.0.26730.12 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Thrift", "..\..\lib\netstd\Thrift\Thrift.csproj", "{C20EA2A9-7660-47DE-9A49-D1EF12FB2895}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client\Client.csproj", "{21039F25-6ED7-4E80-A545-EBC93472EBD1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client", "Client\Client.csproj", "{21039F25-6ED7-4E80-A545-EBC93472EBD1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csproj", "{0C6E8685-F191-4479-9842-882A38961127}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server", "Server\Server.csproj", "{0C6E8685-F191-4479-9842-882A38961127}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution |