Skip to content

Commit

Permalink
msbuild script, running tests via Gallio
Browse files Browse the repository at this point in the history
Signed-off-by: mausch <mauricioscheffer@gmail.com>

Signed-off-by: Meinrad Recheis <meinrad.recheis@gmail.com>
  • Loading branch information
mausch authored and henon committed Jun 28, 2009
1 parent 447c508 commit 19c45a9
Show file tree
Hide file tree
Showing 22 changed files with 24,029 additions and 4,118 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,4 +8,5 @@ obj
*.user
*.suo
*.bak
*.sln.cache
_ReSharper*
6 changes: 1 addition & 5 deletions Demo/GitSharp.Demo.csproj
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4B53BA11-1ADE-44E7-AC0F-7748D5701C25}</ProjectGuid>
<OutputType>WinExe</OutputType>
Expand Down Expand Up @@ -33,10 +33,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.5.0.8258, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Tests\Dependencies\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
Expand Down
24 changes: 24 additions & 0 deletions GitSharp.proj
@@ -0,0 +1,24 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="3.5">
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\extern\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
<Target Name="Clean">
<MSBuild Projects="GitSharp.sln" StopOnFirstFailure="true" Properties="$(BuildConfigProp)" BuildInParallel="true" Targets="Clean"/>
</Target>
<Target Name="Build">
<MSBuild Projects="GitSharp.sln" StopOnFirstFailure="true" Properties="$(BuildConfigProp)" BuildInParallel="true" Targets="Rebuild"/>
</Target>
<Target Name="SetRelease">
<PropertyGroup>
<BuildConfig>Release</BuildConfig>
<BuildConfigProp>Configuration=$(BuildConfig)</BuildConfigProp>
</PropertyGroup>
</Target>
<Target Name="Test" DependsOnTargets="Build">
<ItemGroup>
<TestAssemblies Include="$(MSBuildProjectDirectory)\Tests\bin\Debug\GitSharp.Tests.dll"/>
</ItemGroup>
<Gallio IgnoreFailures="true" PluginDirectories="$(MSBuildProjectDirectory)\extern" Files="@(TestAssemblies)">
<Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
</Gallio>
<Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />
</Target>
</Project>
4 changes: 2 additions & 2 deletions TestRunner/GitSharp.TestRunner.csproj
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6E76C9D7-F95E-4978-8DD2-07471792E7AA}</ProjectGuid>
<OutputType>WinExe</OutputType>
Expand Down Expand Up @@ -33,7 +33,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.5.0.8258, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<Reference Include="nunit.framework, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\extern\nunit.framework.dll</HintPath>
</Reference>
Expand Down
Binary file removed Tests/Dependencies/nunit.framework.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions Tests/GitSharp.Tests.csproj
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{37052DA4-F6A9-47D0-94AA-96F4A7E0462C}</ProjectGuid>
<OutputType>Library</OutputType>
Expand Down Expand Up @@ -31,9 +31,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.5.0.8258, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<Reference Include="nunit.framework, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Dependencies\nunit.framework.dll</HintPath>
<HintPath>..\extern\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
Expand Down
14 changes: 14 additions & 0 deletions extern/Gallio License.txt
@@ -0,0 +1,14 @@
Copyright 2005-2008 Gallio Project - http://www.gallio.org/
Portions Copyright 2000-2004 Jonathan de Halleux

Licensed 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.
Binary file added extern/Gallio.Host.exe
Binary file not shown.
23 changes: 23 additions & 0 deletions extern/Gallio.Host.exe.config
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<legacyUnhandledExceptionPolicy enabled="1" />
</runtime>

<system.runtime.remoting>
<customErrors mode="off"/>
</system.runtime.remoting>

<system.diagnostics>
<assert assertuienabled="false" />
</system.diagnostics>

<!-- We select the runtime version by setting the COMPLUS_Version environment variable.
Unfortunately, these settings will override the contents of that variable, so
we cannot use them for the host application.
<startup>
<supportedRuntime version="v4.0.20506" />
<supportedRuntime version="v2.0.50727" />
</startup>
-->
</configuration>
20 changes: 20 additions & 0 deletions extern/Gallio.MSBuildTasks.plugin
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<plugin pluginId="Gallio.MSBuildTasks"
recommendedInstallationPath=""
xmlns="http://www.gallio.org/">
<traits>
<name>Gallio MSBuild Tasks</name>
<version>0.0.0.0</version>
<description>Provides MSBuild tasks for running tests with Gallio.</description>
</traits>

<dependencies>
<dependency pluginId="Gallio" />
</dependencies>

<files>
<file path="Gallio.MSBuildTasks.plugin" />
<file path="Gallio.MSBuildTasks.dll" />
<file path="Gallio.MSBuildTasks.xml" />
</files>
</plugin>
Binary file added extern/Gallio.MsBuildTasks.dll
Binary file not shown.
Binary file added extern/Gallio.NUnitAdapter25.dll
Binary file not shown.
104 changes: 104 additions & 0 deletions extern/Gallio.NUnitAdapter25.plugin
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8" ?>
<plugin pluginId="Gallio.NUnitAdapter25"
recommendedInstallationPath="NUnit\v2.5"
xmlns="http://www.gallio.org/">
<traits>
<name>NUnit v2.5 Adapter Plugin</name>
<version>0.0.0.0</version>
<description>Provides support for running NUnit v2.5 tests.</description>
<icon>plugin://Gallio.NUnitAdapter25/Resources/NUnit.ico</icon>
</traits>

<dependencies>
<dependency pluginId="Gallio" />
</dependencies>

<files>
<file path="Gallio.NUnitAdapter25.plugin" />
<file path="Gallio.NUnitAdapter25.dll" />
<file path="license.txt" />
<file path="Readme.txt" />
<file path="nunit.core.dll" />
<file path="nunit.core.interfaces.dll" />
<file path="nunit.framework.dll" />
<file path="nunit.framework.xml" />
<file path="nunit.mocks.dll" />
<file path="nunit.util.dll" />
<file path="addins\NUnit Addins Readme.txt" />
<file path="Resources\NUnit.ico" />
</files>

<assemblies>
<assembly fullName="Gallio.NUnitAdapter25, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
codeBase="Gallio.NUnitAdapter25.dll">
<qualifyPartialName>true</qualifyPartialName>
<bindingRedirects>
<bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" />
</bindingRedirects>
</assembly>

<assembly fullName="nunit.core, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
codeBase="nunit.core.dll">
<bindingRedirects>
<bindingRedirect oldVersion="2.5.0.0-2.5.0.65535" />
</bindingRedirects>
</assembly>

<assembly fullName="nunit.core.interfaces, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
codeBase="nunit.core.interfaces.dll">
<bindingRedirects>
<bindingRedirect oldVersion="2.5.0.0-2.5.0.65535" />
</bindingRedirects>
</assembly>

<assembly fullName="nunit.util, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
codeBase="nunit.util.dll">
<bindingRedirects>
<bindingRedirect oldVersion="2.5.0.0-2.5.0.65535" />
</bindingRedirects>
</assembly>

<!--
<assembly fullName="nunit.framework, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
codeBase="nunit.framework.dll">
<bindingRedirects>
<bindingRedirect oldVersion="2.5.0.0-2.5.0.65535" />
</bindingRedirects>
</assembly>
<assembly fullName="nunit.mocks, Version=2.5.0.9122, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"
codeBase="nunit.mocks.dll">
<bindingRedirects>
<bindingRedirect oldVersion="2.5.0.0-2.5.0.65535" />
</bindingRedirects>
</assembly>
-->
</assemblies>

<probingPaths>
<probingPath>v2.5</probingPath>
</probingPaths>

<components>
<component componentId="NUnitAdapter25.TestFramework"
serviceId="Gallio.TestFramework"
componentType="Gallio.NUnitAdapter.Model.NUnitTestFramework, Gallio.NUnitAdapter25">
<traits>
<name>NUnit v2.5</name>
<frameworkAssemblies>nunit.framework, Version=2.5.0.0-2.5.0.65535</frameworkAssemblies>
<version>2.5.0.9122</version>
<fileTypes>Assembly</fileTypes>
<icon>plugin://Gallio.NUnitAdapter25/Resources/NUnit.ico</icon>
</traits>
</component>

<component componentId="NUnitAdapter25.TestKinds.MbUnitFramework"
serviceId="Gallio.TestKind">
<traits>
<name>NUnit v2.5 Framework</name>
<description>NUnit v2.5 Test Framework</description>
<icon>plugin://Gallio.NUnitAdapter25/Resources/NUnit.ico</icon>
</traits>
</component>
</components>
</plugin>
Binary file added extern/Gallio.dll
Binary file not shown.

0 comments on commit 19c45a9

Please sign in to comment.