Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-util/nunit/files/, dev-util/nunit/
Date: Sat, 30 Jul 2016 08:35:44
Message-Id: 1469841777.8ea0d6ac553157e081cb67b4926f8868ee3b60f7.cynede@gentoo
1 commit: 8ea0d6ac553157e081cb67b4926f8868ee3b60f7
2 Author: ArsenShnurkov <Arsen.Shnurkov <AT> gmail <DOT> com>
3 AuthorDate: Sat Jul 30 01:22:57 2016 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 01:22:57 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=8ea0d6ac
7
8 remove tests
9
10 dev-util/nunit/build.sh | 4 +
11 .../nunit-3.0.1-removing-tests-from-nproj.patch | 208 +++++++++++++++++++++
12 .../nunit/files/removing-2.0-compatibiility.patch | 29 ---
13 .../nunit/files/removing-tests-from-nproj.patch | 12 --
14 dev-util/nunit/nunit-3.0.1.ebuild | 34 +++-
15 5 files changed, 239 insertions(+), 48 deletions(-)
16
17 diff --git a/dev-util/nunit/build.sh b/dev-util/nunit/build.sh
18 new file mode 100755
19 index 0000000..2553611
20 --- /dev/null
21 +++ b/dev-util/nunit/build.sh
22 @@ -0,0 +1,4 @@
23 +#!/bin/bash
24 +
25 +rm -rf /var/tmp/portage/dev-util/nunit-3.0.1
26 +ebuild nunit-3.0.1.ebuild compile
27
28 diff --git a/dev-util/nunit/files/nunit-3.0.1-removing-tests-from-nproj.patch b/dev-util/nunit/files/nunit-3.0.1-removing-tests-from-nproj.patch
29 new file mode 100644
30 index 0000000..30cef82
31 --- /dev/null
32 +++ b/dev-util/nunit/files/nunit-3.0.1-removing-tests-from-nproj.patch
33 @@ -0,0 +1,208 @@
34 +diff --git a/NUnit.proj b/NUnit.proj
35 +index de5633b..28f9628 100644
36 +--- a/NUnit.proj
37 ++++ b/NUnit.proj
38 +@@ -244,162 +244,6 @@
39 +
40 + <!-- End Region -->
41 +
42 +- <!-- Region Test Targets -->
43 +-
44 +- <Target Name="TestAll" Label="Run tests for all framework builds, the engine and the console"
45 +- DependsOnTargets="TestAllFrameworks;TestEngine;TestAddins;TestV2Driver;TestConsole" />
46 +-
47 +- <Target Name="Test" Label="Run tests for the current framework, engine and console"
48 +- DependsOnTargets="TestFramework;TestEngine;TestAddins;TestV2Driver;TestConsole" />
49 +-
50 +- <Target Name="TestAllFrameworks"
51 +- Label="Test the framework for the current config and all runtimes">
52 +-
53 +- <MSBuild Projects="$(MSBuildProjectFullPath)"
54 +- Targets="TestFrameworkIfSupported;TestNUnitLiteIfSupported"
55 +- Properties="Framework=%(SupportedFrameworks.Identity)"
56 +- ContinueOnError="$(ContinueOnFailure)" />
57 +-
58 +- </Target>
59 +-
60 +- <Target Name="TestFrameworkIfSupported"
61 +- Label="Run framework tests conditionally, for use by TestAllFrameworks">
62 +-
63 +- <CallTarget Targets="TestFramework"
64 +- ContinueOnError="$(ContinueOnFailure)"
65 +- Condition="'$(Runtime)' != 'netcf' And '$(Runtime)' != 'silverlight'" />
66 +-
67 +- </Target>
68 +-
69 +- <Target Name="TestNUnitLiteIfSupported"
70 +- Label="Run NUnitLite tests conditionally, for use by TestAllFrameworks">
71 +-
72 +- <CallTarget Targets="TestNUnitLite"
73 +- ContinueOnError="$(ContinueOnFailure)"
74 +- Condition="'$(Runtime)' != 'netcf' And '$(Runtime)' != 'silverlight'" />
75 +-
76 +- </Target>
77 +-
78 +- <Target Name="TestFramework" DependsOnTargets="_CreateResultDir"
79 +- Label="Run framework tests for a runtime without checking for errors">
80 +-
81 +- <Message Text="******************************************************************" />
82 +- <Message Text="* Testing NUnitFramework $(Framework) - $(Configuration)" />
83 +- <Message Text="******************************************************************" />
84 +-
85 +- <Error Condition="'$(Runtime)' == 'netcf' Or '$(Runtime)' == 'silverlight'"
86 +- Text="The full NUnit framework cannot be tested under $(Runtime)" />
87 +-
88 +- <Exec Condition="'$(Runtime)' == 'portable'"
89 +- WorkingDirectory="$(ConsoleBuildDir)\$(Runtime)"
90 +- Command='$(ManagedExeLauncher) $(ConsoleBuildDir)\$(Runtime)\nunit.portable.tests.exe $(TestOptions)'
91 +- ContinueOnError="$(ContinueOnFailure)" />
92 +-
93 +- <Exec Condition="'$(Runtime)' != 'portable'"
94 +- WorkingDirectory="$(ConsoleBuildDir)"
95 +- Command='$(ManagedExeLauncher) $(ConsoleRunner) $(Framework)/nunit.framework.tests.dll "-result:$(ResultDir)/NUnitFrameworkResult-$(Framework).xml;format=$(ResultFormat)" $(TestOptions)'
96 +- ContinueOnError="$(ContinueOnFailure)" />
97 +-
98 +- </Target>
99 +-
100 +- <Target Name="TestNUnitLite" DependsOnTargets="_CreateResultDir"
101 +- Label="Run tests of the NUnitLite runner">
102 +-
103 +- <Message Text="******************************************************************" />
104 +- <Message Text="* Testing NUnitLite $(Framework) - $(Configuration)" />
105 +- <Message Text="******************************************************************" />
106 +-
107 +- <Exec Condition="'$(Runtime)' != 'silverlight' AND '$(Runtime)' != 'portable' "
108 +- WorkingDirectory="$(FrameworkBuildDir)"
109 +- Command='$(ManagedExeLauncher) nunitlite.tests.exe "-result:$(ResultDir)/NUnitliteResult-$(Framework).xml;format=$(ResultFormat)" $(TestOptions)'
110 +- ContinueOnError="$(ContinueOnFailure)" />
111 +-
112 +- <Exec Condition="'$(Runtime)' == 'portable'"
113 +- WorkingDirectory="$(FrameworkBuildDir)"
114 +- Command='$(ManagedExeLauncher) nunitlite.tests.exe $(TestOptions)'
115 +- ContinueOnError="$(ContinueOnFailure)" />
116 +-
117 +- </Target>
118 +-
119 +- <Target Name="TestEngine"
120 +- Label ="Run the engine tests"
121 +- DependsOnTargets="_CreateResultDir">
122 +-
123 +- <Message Text="******************************************************************" />
124 +- <Message Text="* Testing the NUnit Engine - $(Configuration)" />
125 +- <Message Text="******************************************************************" />
126 +-
127 +- <Exec WorkingDirectory="$(EngineBuildDir)"
128 +- Command='$(ManagedExeLauncher) $(ConsoleRunner) nunit.engine.tests.dll "-result:$(ResultDir)/EngineResult.xml;format=$(ResultFormat)" $(TestOptions)'
129 +- ContinueOnError="$(ContinueOnFailure)"/>
130 +-
131 +- </Target>
132 +-
133 +- <Target Name="TestAddins"
134 +- Label ="Run the addin tests"
135 +- DependsOnTargets="_CreateResultDir">
136 +-
137 +- <Message Text="******************************************************************" />
138 +- <Message Text="* Testing the Engine Addins - $(Configuration)" />
139 +- <Message Text="******************************************************************" />
140 +-
141 +- <Exec WorkingDirectory="$(EngineBuildDir)"
142 +- Command='$(ManagedExeLauncher) $(ConsoleRunner) addins/tests/addin-tests.dll "-result:$(ResultDir)/AddinResult.xml;format=$(ResultFormat)" $(TestOptions)'
143 +- ContinueOnError="$(ContinueOnFailure)"/>
144 +-
145 +- </Target>
146 +-
147 +- <Target Name="TestV2Driver"
148 +- Label = "Run tests of the NUnit V2 Driver"
149 +- DependsOnTargets="_CreateResultDir">
150 +-
151 +- <Message Text="******************************************************************" />
152 +- <Message Text="* Testing the NUnit V2 Driver - $(Configuration)" />
153 +- <Message Text="******************************************************************" />
154 +-
155 +- <Exec WorkingDirectory="$(EngineBuildDir)"
156 +- Command='$(ManagedExeLauncher) $(ConsoleRunner) addins/v2-tests/nunit.v2.driver.tests.dll "-result:$(ResultDir)/V2DriverResult.xml;format=$(ResultFormat)" $(TestOptions)'
157 +- ContinueOnError="$(ContinueOnFailure)"/>
158 +-
159 +- </Target>
160 +-
161 +- <Target Name="TestConsole"
162 +- Label="Run the console tests"
163 +- DependsOnTargets="_CreateResultDir">
164 +-
165 +- <Message Text="******************************************************************" />
166 +- <Message Text="* Testing the Console Runner - $(Configuration)" />
167 +- <Message Text="******************************************************************" />
168 +-
169 +- <Exec WorkingDirectory="$(ConsoleBuildDir)"
170 +- Command='$(ManagedExeLauncher) $(ConsoleRunner) nunit3-console.tests.dll "-result:$(ResultDir)/ConsoleResult.xml;format=$(ResultFormat)" $(TestOptions)'
171 +- ContinueOnError="$(ContinueOnFailure)" />
172 +-
173 +- </Target>
174 +-
175 +- <Target Name="_CreateResultDir">
176 +-
177 +- <MakeDir Directories="$(ResultDir)" Condition="!Exists('$(ResultDir)')"/>
178 +-
179 +- </Target>
180 +-
181 +- <!-- End Region -->
182 +-
183 +- <!-- Region Coverage Targets -->
184 +-
185 +- <Target Name="TestCoverage">
186 +- <CallTarget Targets="_NUnitCoverage" Condition="'$(Runtime)' != 'netcf'"></CallTarget>
187 +- </Target>
188 +-
189 +- <Target Name="_NUnitCoverage">
190 +- <Error Condition="'$(Runtime)' == 'netcf'" Text="The full NUnit framework cannot be tested under $(Runtime)"></Error>
191 +- <Exec WorkingDirectory="$(FrameworkBuildDir)"
192 +- Command='$(ManagedExeLauncher) $(PartCoverDir)\PartCover.exe --target "$(ConsoleRunner)" --target-args "$(Framework)/nunit.framework.tests.dll $(TestOptions)" --include [nunit.framework]* --output NUnitTestCoverage.xml'>
193 +- </Exec>
194 +- </Target>
195 +-
196 +- <!-- End Region -->
197 +-
198 + <!-- Region Packaging Targets -->
199 +
200 + <!-- *********************************************************************** -->
201 +@@ -691,13 +535,6 @@
202 + <NUnitProjects Include="$(FrameworkSrcDir)\nunitlite.runner\nunitlite.runner-$(ProjectSuffix).csproj"></NUnitProjects>
203 + <NUnitProjects Include="$(FrameworkSrcDir)\mock-assembly\mock-nunit-assembly-$(ProjectSuffix).csproj"
204 + Condition="'$(Runtime)' != 'netcf' And '$(Runtime)' != 'silverlight'"></NUnitProjects>
205 +- <NUnitProjects Include="$(FrameworkSrcDir)\testdata\nunit.testdata-$(ProjectSuffix).csproj"></NUnitProjects>
206 +- <NUnitProjects Include="$(FrameworkSrcDir)\nunit.portable.tests\nunit.portable.tests.csproj"
207 +- Condition="'$(Runtime)' == 'portable'"></NUnitProjects>
208 +- <NUnitProjects Include="$(FrameworkSrcDir)\slow-tests\slow-nunit-tests-$(ProjectSuffix).csproj"
209 +- Condition="'$(Runtime)' != 'netcf' And '$(Runtime)' != 'silverlight' And '$(Runtime)' != 'portable'"></NUnitProjects>
210 +- <NUnitProjects Include="$(FrameworkSrcDir)\tests\nunit.framework.tests-$(ProjectSuffix).csproj"></NUnitProjects>
211 +- <NUnitProjects Include="$(FrameworkSrcDir)\nunitlite.tests\nunitlite.tests-$(ProjectSuffix).csproj"></NUnitProjects>
212 + </ItemGroup>
213 +
214 + <ItemGroup Label="Projects for building the engine">
215 +@@ -705,26 +542,15 @@
216 + <EngineProjects Include="$(EngineSrcDir)\nunit.engine.api\nunit.engine.api.csproj" />
217 + <EngineProjects Include="$(EngineSrcDir)\nunit.engine\nunit.engine.csproj" />
218 + <EngineProjects Include="$(EngineSrcDir)\nunit-agent\nunit-agent.csproj" />
219 +- <EngineProjects Include="$(EngineSrcDir)\nunit-agent\nunit-agent-x86.csproj" />
220 +
221 +- <!-- Test Assemblies -->
222 +- <EngineProjects Include="$(EngineSrcDir)\nunit.engine.tests\nunit.engine.tests.csproj" />
223 +-
224 + <!-- Addins -->
225 + <EngineProjects Include="$(AddinSrcDir)\nunit-project-loader\nunit-project-loader.csproj" />
226 + <EngineProjects Include="$(AddinSrcDir)\vs-project-loader\vs-project-loader.csproj" />
227 + <EngineProjects Include="$(AddinSrcDir)\nunit-v2-result-writer\nunit-v2-result-writer.csproj" />
228 +- <EngineProjects Include="$(AddinSrcDir)\nunit.v2.driver\nunit.v2.driver.csproj" />
229 +-
230 +- <!-- Addin tests -->
231 +- <EngineProjects Include="$(AddinSrcDir)\addin-tests\addin-tests.csproj" />
232 +- <EngineProjects Include="$(AddinSrcDir)\nunit.v2.driver.tests\nunit.v2.driver.tests.csproj" />
233 +-
234 + </ItemGroup>
235 +
236 + <ItemGroup Label="Projects for building the console runner">
237 + <ConsoleProjects Include="$(ConsoleSrcDir)\nunit3-console\nunit3-console.csproj" />
238 +- <ConsoleProjects Include="$(ConsoleSrcDir)\nunit3-console.tests\nunit3-console.tests.csproj" />
239 + </ItemGroup>
240 +
241 + <!-- End Region -->
242
243 diff --git a/dev-util/nunit/files/removing-2.0-compatibiility.patch b/dev-util/nunit/files/removing-2.0-compatibiility.patch
244 deleted file mode 100644
245 index 56ff347..0000000
246 --- a/dev-util/nunit/files/removing-2.0-compatibiility.patch
247 +++ /dev/null
248 @@ -1,29 +0,0 @@
249 -diff --git a/src/NUnitEngine/mono-addins/Mono.Addins.csproj b/src/NUnitEngine/mono-addins/Mono.Addins.csproj
250 -index cb09546..7536d46 100644
251 ---- a/src/NUnitEngine/mono-addins/Mono.Addins.csproj
252 -+++ b/src/NUnitEngine/mono-addins/Mono.Addins.csproj
253 -@@ -43,24 +41,6 @@
254 - </ItemGroup>
255 - <ItemGroup>
256 - <Compile Include="AssemblyInfo.cs" />
257 -- <Compile Include="Compatibility\Check.cs" />
258 -- <Compile Include="Compatibility\Enumerable.cs" />
259 -- <Compile Include="Compatibility\ExtensionAttribute.cs" />
260 -- <Compile Include="Compatibility\Funcs.cs" />
261 -- <Compile Include="Compatibility\Grouping.cs" />
262 -- <Compile Include="Compatibility\HashPrimeNumbers.cs" />
263 -- <Compile Include="Compatibility\HashSet.cs" />
264 -- <Compile Include="Compatibility\IGrouping.cs" />
265 -- <Compile Include="Compatibility\ILookup_T.cs" />
266 -- <Compile Include="Compatibility\IOrderedEnumerable_T.cs" />
267 -- <Compile Include="Compatibility\Lookup.cs" />
268 -- <Compile Include="Compatibility\OrderedEnumerable.cs" />
269 -- <Compile Include="Compatibility\OrderedSequence.cs" />
270 -- <Compile Include="Compatibility\QuickSort.cs" />
271 -- <Compile Include="Compatibility\SortContext.cs" />
272 -- <Compile Include="Compatibility\SortDirection.cs" />
273 -- <Compile Include="Compatibility\SortSequenceContext.cs" />
274 -- <Compile Include="Compatibility\Tuple.cs" />
275 - <Compile Include="Mono.Addins\ExtensionNode.cs" />
276 - <Compile Include="Mono.Addins\ExtensionTree.cs" />
277 - <Compile Include="Mono.Addins\TreeNode.cs" />
278
279 diff --git a/dev-util/nunit/files/removing-tests-from-nproj.patch b/dev-util/nunit/files/removing-tests-from-nproj.patch
280 deleted file mode 100644
281 index 8c117eb..0000000
282 --- a/dev-util/nunit/files/removing-tests-from-nproj.patch
283 +++ /dev/null
284 @@ -1,12 +0,0 @@
285 -diff --git a/NUnit.proj b/NUnit.proj
286 -index 31e4dab..a964b88 100644
287 ---- a/NUnit.proj
288 -+++ b/NUnit.proj
289 -@@ -659,7 +659,6 @@
290 -
291 - <!-- Addin tests -->
292 - <EngineProjects Include="$(AddinSrcDir)\addin-tests\addin-tests.csproj" />
293 -- <EngineProjects Include="$(AddinSrcDir)\nunit.v2.driver.tests\nunit.v2.driver.tests.csproj" />
294 -
295 - </ItemGroup>
296 -
297
298 diff --git a/dev-util/nunit/nunit-3.0.1.ebuild b/dev-util/nunit/nunit-3.0.1.ebuild
299 index 75496e5..1f11e9f 100644
300 --- a/dev-util/nunit/nunit-3.0.1.ebuild
301 +++ b/dev-util/nunit/nunit-3.0.1.ebuild
302 @@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/nunit/${NAME}"
303
304 EGIT_COMMIT="dd39deaa2c805783cb069878b58b0447d0849849"
305 SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> ${PF}.tar.gz"
306 -RESTRICT="mirror"
307 +#RESTRICT="mirror"
308 S="${WORKDIR}/${NAME}-${EGIT_COMMIT}"
309
310 SLOT="3"
311 @@ -34,21 +34,30 @@ METAFILETOBUILD="${S}/${FILE_TO_BUILD}"
312
313 src_prepare() {
314 chmod -R +rw "${S}" || die
315 - #epatch "${FILESDIR}/removing-tests.patch"
316 - epatch "${FILESDIR}/removing-tests-from-nproj.patch"
317 - epatch "${FILESDIR}/removing-2.0-compatibiility.patch"
318 + eapply "${FILESDIR}/nunit-3.0.1-removing-tests-from-nproj.patch"
319 enuget_restore "${METAFILETOBUILD}"
320 +
321 + if use debug; then
322 + DIR="Debug"
323 + else
324 + DIR="Release"
325 + fi
326 + sed -i '/x86/d' "${S}/nuget/"*.nuspec || die
327 + sed -i '/log4net/d' "${S}/nuget/"*.nuspec || die
328 + sed -i 's#\\#/#g' "${S}/nuget/"*.nuspec || die
329 + sed -i "s#\${package.version}#$(get_version_component_range 1-3)#g" "${S}/nuget/"*.nuspec || die
330 + sed -i "s#\${project.base.dir}##g" "${S}/nuget/"*.nuspec || die
331 + sed -i "s#\${current.build.dir}#bin/${DIR}#g" "${S}/nuget/"*.nuspec || die
332 default
333 }
334
335 src_compile() {
336 exbuild "${METAFILETOBUILD}"
337 - enuspec "${FILESDIR}/${PN}.nuspec"
338 - # PN = Package name, for example vim.
339 + enuspec "${S}/nuget/nunit.nuspec"
340 + enuspec "${S}/nuget/nunit.runners.nuspec"
341 }
342
343 src_install() {
344 - DIR=""
345 if use debug; then
346 DIR="Debug"
347 else
348 @@ -67,6 +76,16 @@ src_install() {
349 # dobin ${FILESDIR}/nunit-console
350 make_wrapper nunit "mono ${SLOTTEDDIR}/nunit-console.exe"
351
352 + if use gac; then
353 + if use debug; then
354 + DIR="Debug"
355 + else
356 + DIR="Release"
357 + fi
358 +
359 + egacinstall "${S}/bin/${DIR}/lib/nunit-console-runner.dll"
360 + fi
361 +
362 if use doc; then
363 # dodoc ${WORKDIR}/doc/*.txt
364 # dohtml ${WORKDIR}/doc/*.html
365 @@ -76,4 +95,5 @@ src_install() {
366 fi
367
368 enupkg "${WORKDIR}/NUnit.3.0.0.nupkg"
369 + enupkg "${WORKDIR}/NUnit.Runners.$(get_version_component_range 1-3).nupkg"
370 }