THRIFT-1961 C# tests should be in lib/csharp/test/...
authorJens Geyer <jensg@apache.org>
Mon, 6 May 2013 21:48:00 +0000 (23:48 +0200)
committerJens Geyer <jensg@apache.org>
Mon, 6 May 2013 21:48:00 +0000 (23:48 +0200)
Patch: Jens Geyer

lib/csharp/test/ThriftTest/Program.cs [moved from test/csharp/ThriftTest/Program.cs with 100% similarity]
lib/csharp/test/ThriftTest/Properties/AssemblyInfo.cs [moved from test/csharp/ThriftTest/Properties/AssemblyInfo.cs with 100% similarity]
lib/csharp/test/ThriftTest/TestClient.cs [moved from test/csharp/ThriftTest/TestClient.cs with 100% similarity]
lib/csharp/test/ThriftTest/TestServer.cs [moved from test/csharp/ThriftTest/TestServer.cs with 100% similarity]
lib/csharp/test/ThriftTest/ThriftTest.csproj [moved from test/csharp/ThriftTest/ThriftTest.csproj with 93% similarity]
lib/csharp/test/ThriftTest/maketest.sh [moved from test/csharp/ThriftTest/maketest.sh with 76% similarity]

similarity index 93%
rename from test/csharp/ThriftTest/ThriftTest.csproj
rename to lib/csharp/test/ThriftTest/ThriftTest.csproj
index f3ec868..8717876 100644 (file)
@@ -1,21 +1,21 @@
 \feff<?xml version="1.0" encoding="utf-8"?>\r
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements. See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership. The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License. You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied. See the License for the
-  specific language governing permissions and limitations
-  under the License.
+<!--\r
+  Licensed to the Apache Software Foundation (ASF) under one\r
+  or more contributor license agreements. See the NOTICE file\r
+  distributed with this work for additional information\r
+  regarding copyright ownership. The ASF licenses this file\r
+  to you under the Apache License, Version 2.0 (the\r
+  "License"); you may not use this file except in compliance\r
+  with the License. You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+  Unless required by applicable law or agreed to in writing,\r
+  software distributed under the License is distributed on an\r
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r
+  KIND, either express or implied. See the License for the\r
+  specific language governing permissions and limitations\r
+  under the License.\r
 -->\r
 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
   <PropertyGroup>\r
     </BootstrapperPackage>\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <ProjectReference Include="..\..\..\lib\csharp\src\Thrift.csproj">\r
+    <ProjectReference Include="..\..\src\Thrift.csproj">\r
       <Project>{499EB63C-D74C-47E8-AE48-A2FC94538E9D}</Project>\r
       <Name>Thrift</Name>\r
     </ProjectReference>\r
   </ItemGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
+       Other similar extension points exist, see Microsoft.Common.targets.\r
+  <Target Name="BeforeBuild">\r
+  </Target>\r
+  <Target Name="AfterBuild">\r
+  </Target>\r
   -->\r
   <PropertyGroup>\r
-    <PreBuildEvent>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"</PreBuildEvent>\r
+    <PreBuildEvent>rmdir /s /q "$(ProjectDir)gen-csharp"\r
+del /f /q "$(ProjectDir)ThriftImpl.dll"\r
+SET OUTPUT_DIR=$(ProjectDir)\r
+SET THRIFT_FILE=$(ProjectDir)\..\..\..\..\test\ThriftTest.thrift\r
+for %25%25I in ("%25OUTPUT_DIR%25") do set SHORT_DIR=%25%25~fsI\r
+for %25%25I in ("%25THRIFT_FILE%25") do set THRIFT_SHORT=%25%25~fsI\r
+"$(ProjectDir)\..\..\..\..\compiler\cpp\thrift.exe" --gen csharp -o %25SHORT_DIR%25 %25THRIFT_SHORT%25\r
+$(MSBuildToolsPath)\Csc.exe /t:library /out:"$(ProjectDir)ThriftImpl.dll" /recurse:"$(ProjectDir)gen-csharp"\* /reference:"$(ProjectDir)..\..\src\bin\Debug\Thrift.dll"</PreBuildEvent>\r
   </PropertyGroup>\r
 </Project>
\ No newline at end of file
similarity index 76%
rename from test/csharp/ThriftTest/maketest.sh
rename to lib/csharp/test/ThriftTest/maketest.sh
index e11b5b2..86c1a11 100755 (executable)
 # 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