Skip to content

Commit

Permalink
Modify functional tests for Mint (#150)
Browse files Browse the repository at this point in the history
* Modify functional tests for Mint, add functional tests to .netcore configuration so that it works on Linux
  • Loading branch information
poornas authored and nitisht committed Aug 2, 2017
1 parent fa6abda commit e006ab7
Show file tree
Hide file tree
Showing 13 changed files with 440 additions and 304 deletions.
3 changes: 3 additions & 0 deletions FileUploader/FileUploader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Mint|AnyCPU'">
<OutputPath>bin\Mint\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
Expand Down
6 changes: 6 additions & 0 deletions Minio.Core/Minio.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='net4.5.2|x86'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|AnyCPU'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|x64'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|x86'" />

<ItemGroup>
<Compile Include="..\Minio\ApiEndpoints\BucketOperations.cs" Link="ApiEndpoints\BucketOperations.cs" />
<Compile Include="..\Minio\ApiEndpoints\IBucketOperations.cs" Link="ApiEndpoints\IBucketOperations.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='.net4.5.2|AnyCPU'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|AnyCPU'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|x64'" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Mint|x86'" />

<ItemGroup>
<Compile Include="..\Cases\BucketExists.cs" Link="Cases\BucketExists.cs" />
<Compile Include="..\Cases\CopyObject.cs" Link="Cases\CopyObject.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Mint|AnyCPU'">
<OutputPath>bin\Mint\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
Expand Down
537 changes: 298 additions & 239 deletions Minio.Functional.Tests/FunctionalTest.cs

Large diffs are not rendered by default.

24 changes: 21 additions & 3 deletions Minio.Functional.Tests/Minio.Functional.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,33 @@
<RuntimeIdentifiers>
ubuntu.16.04-x64;linuxmint.17.3-x64;win10-x64
</RuntimeIdentifiers>
<PackageId>$(MSBuildProjectName)</PackageId>


</PropertyGroup>

<Choose>
<When Condition=" '$(Configuration)'=='Debug' ">
<ItemGroup>
<ProjectReference Include="..\Minio.Core\Minio.Core.csproj" />
</ItemGroup>
</When>
<When Condition=" '$(Configuration)'=='.netcore' ">
<ItemGroup>
<ProjectReference Include="..\Minio.Core\Minio.Core.csproj" />
</ItemGroup>
</When>
<When Condition=" '$(Configuration)'=='Mint' ">
<ItemGroup>
<PackageReference Include="Minio.Netcore" Version="1.0.0" />
</ItemGroup>
</When>
</Choose>

<ItemGroup>
<PackageReference Include="MSTest.TestFramework" Version="1.1.11" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
</ItemGroup>
<PackageReference Include="System.Reactive.Linq" Version="4.0.0-preview00001" />

<ItemGroup>
<ProjectReference Include="..\Minio.Core\Minio.Core.csproj" />
</ItemGroup>
</Project>
7 changes: 5 additions & 2 deletions Minio.Net452/Minio.Net452.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<!--<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>-->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == '.net4.5.2|AnyCPU'">
<OutputPath>bin\.net4.5.2\</OutputPath>
Expand All @@ -52,7 +52,10 @@
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<!--<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Mint|AnyCPU'">
<OutputPath>bin\Mint\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down
3 changes: 3 additions & 0 deletions Minio.Tests/Minio.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Mint|AnyCPU'">
<OutputPath>bin\Mint\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
Expand Down
Loading

0 comments on commit e006ab7

Please sign in to comment.