From: Jens Geyer Date: Mon, 6 May 2013 21:48:00 +0000 (+0200) Subject: THRIFT-1961 C# tests should be in lib/csharp/test/... X-Git-Tag: 0.9.1~121 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f670181a3da5efa5f08993a472ae8d3be8908dff;p=common%2Fthrift.git THRIFT-1961 C# tests should be in lib/csharp/test/... Patch: Jens Geyer --- diff --git a/test/csharp/ThriftTest/Program.cs b/lib/csharp/test/ThriftTest/Program.cs similarity index 100% rename from test/csharp/ThriftTest/Program.cs rename to lib/csharp/test/ThriftTest/Program.cs diff --git a/test/csharp/ThriftTest/Properties/AssemblyInfo.cs b/lib/csharp/test/ThriftTest/Properties/AssemblyInfo.cs similarity index 100% rename from test/csharp/ThriftTest/Properties/AssemblyInfo.cs rename to lib/csharp/test/ThriftTest/Properties/AssemblyInfo.cs diff --git a/test/csharp/ThriftTest/TestClient.cs b/lib/csharp/test/ThriftTest/TestClient.cs similarity index 100% rename from test/csharp/ThriftTest/TestClient.cs rename to lib/csharp/test/ThriftTest/TestClient.cs diff --git a/test/csharp/ThriftTest/TestServer.cs b/lib/csharp/test/ThriftTest/TestServer.cs similarity index 100% rename from test/csharp/ThriftTest/TestServer.cs rename to lib/csharp/test/ThriftTest/TestServer.cs diff --git a/test/csharp/ThriftTest/ThriftTest.csproj b/lib/csharp/test/ThriftTest/ThriftTest.csproj similarity index 93% rename from test/csharp/ThriftTest/ThriftTest.csproj rename to lib/csharp/test/ThriftTest/ThriftTest.csproj index f3ec8682..87178763 100644 --- a/test/csharp/ThriftTest/ThriftTest.csproj +++ b/lib/csharp/test/ThriftTest/ThriftTest.csproj @@ -1,21 +1,21 @@  - @@ -115,27 +115,27 @@ - + {499EB63C-D74C-47E8-AE48-A2FC94538E9D} Thrift - - rmdir /s /q "$(ProjectDir)gen-csharp" -del /f /q "$(ProjectDir)ThriftImpl.dll" -SET OUTPUT_DIR=$(ProjectDir) -SET THRIFT_FILE=$(ProjectDir)\..\..\ThriftTest.thrift -for %25%25I in ("%25OUTPUT_DIR%25") do set SHORT_DIR=%25%25~fsI -for %25%25I in ("%25THRIFT_FILE%25") do set THRIFT_SHORT=%25%25~fsI -"$(ProjectDir)\..\..\..\compiler\cpp\thrift.exe" --gen csharp -o %25SHORT_DIR%25 %25THRIFT_SHORT%25 -$(MSBuildToolsPath)\Csc.exe /t:library /out:"$(ProjectDir)ThriftImpl.dll" /recurse:"$(ProjectDir)gen-csharp"\* /reference:"$(ProjectDir)..\..\..\lib\csharp\src\bin\Debug\Thrift.dll" + rmdir /s /q "$(ProjectDir)gen-csharp" +del /f /q "$(ProjectDir)ThriftImpl.dll" +SET OUTPUT_DIR=$(ProjectDir) +SET THRIFT_FILE=$(ProjectDir)\..\..\..\..\test\ThriftTest.thrift +for %25%25I in ("%25OUTPUT_DIR%25") do set SHORT_DIR=%25%25~fsI +for %25%25I in ("%25THRIFT_FILE%25") do set THRIFT_SHORT=%25%25~fsI +"$(ProjectDir)\..\..\..\..\compiler\cpp\thrift.exe" --gen csharp -o %25SHORT_DIR%25 %25THRIFT_SHORT%25 +$(MSBuildToolsPath)\Csc.exe /t:library /out:"$(ProjectDir)ThriftImpl.dll" /recurse:"$(ProjectDir)gen-csharp"\* /reference:"$(ProjectDir)..\..\src\bin\Debug\Thrift.dll" \ No newline at end of file diff --git a/test/csharp/ThriftTest/maketest.sh b/lib/csharp/test/ThriftTest/maketest.sh similarity index 76% rename from test/csharp/ThriftTest/maketest.sh rename to lib/csharp/test/ThriftTest/maketest.sh index e11b5b26..86c1a114 100755 --- a/test/csharp/ThriftTest/maketest.sh +++ b/lib/csharp/test/ThriftTest/maketest.sh @@ -19,11 +19,11 @@ # under the License. # -../../../compiler/cpp/thrift --gen csharp -o . ../../ThriftTest.thrift -gmcs /t:library /out:./ThriftImpl.dll /recurse:./gen-csharp/* /reference:../../../lib/csharp/Thrift.dll -gmcs /out:TestClientServer.exe /reference:../../../lib/csharp/Thrift.dll /reference:ThriftImpl.dll TestClient.cs TestServer.cs Program.cs +../../../../compiler/cpp/thrift --gen csharp -o . ../../../../test/ThriftTest.thrift +gmcs /t:library /out:./ThriftImpl.dll /recurse:./gen-csharp/* /reference:../../Thrift.dll +gmcs /out:TestClientServer.exe /reference:../../Thrift.dll /reference:ThriftImpl.dll TestClient.cs TestServer.cs Program.cs -export MONO_PATH=../../../lib/csharp/ +export MONO_PATH=../../ timeout 120 ./TestClientServer.exe server & ./TestClientServer.exe client