Files
dotnet-runtime/src/libraries/System.IO.Compression.ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
T
stephentoub 8cf85d2d52 Modify ZipFile tests to remove temporary garbage
The System.IO.Compression.ZipFile tests were leaving behind lots of temporary files and directories.  I've modified the tests to delete these when the tests completes.

As long as I was modifying the tests, I also boosted the code coverage of ZipFile and ZipFileExtensions to 100% (the library itself isn't at 100% because of the SR file and some unused code in a shared common file).

And I fixed up a few "String"=>"string"s I saw along the way.


Commit migrated from https://github.com/dotnet/corefx/commit/28d96af2ccd6d1f2e3f0ce4788fc8ec21fd15a76
2015-06-06 18:32:55 -04:00

52 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
<ProjectGuid>{ED453083-A80F-480C-AD25-5B8618E8A303}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>System.IO.Compression.ZipFile.Tests</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
<ItemGroup>
<ProjectReference Include="..\src\System.IO.Compression.ZipFile.csproj">
<Project>{A8CF61F0-56EA-4b5f-9375-0723DF4250C0}</Project>
<Name>System.IO.Compression.ZipFile</Name>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="ZipFileConvenienceMethods.cs" />
<Compile Include="ZipFileTests.cs" />
<Compile Include="ZipFileInvalidFileTests.cs" />
<Compile Include="ZipFileReadOpenUpdateTests.cs" />
<Compile Include="$(CommonTestPath)\Compression\Utilities\CRC.cs" />
<Compile Include="$(CommonTestPath)\Compression\Utilities\FileData.cs" />
<Compile Include="$(CommonTestPath)\Compression\Utilities\LocalMemoryStream.cs" />
<Compile Include="$(CommonTestPath)\Compression\Utilities\StreamHelpers.cs" />
<Compile Include="$(CommonTestPath)\Compression\Utilities\ZipTestHelper.cs" />
<Compile Include="$(CommonPath)\Interop\Interop.PlatformDetection.cs" />
</ItemGroup>
<ItemGroup>
<None Include="project.json" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
<!-- Temporary until we have new work in build tools to
deploy content from nuget packages -->
<Target Name="CopySystemIOCompressionTestDataToTestDirectory" AfterTargets="CopyTestToTestDirectory" Inputs="$(PackagesDir)$(CompressionTestPackage)\content" Outputs="$(TestPath)%(TestTargetFramework.Folder)\*.*">
<PropertyGroup>
<CompressionTestPackage>System.IO.Compression.TestData\1.0.0-prerelease</CompressionTestPackage>
<TestTargetFrameworkFolder>%(TestTargetFramework.Folder)</TestTargetFrameworkFolder>
</PropertyGroup>
<ItemGroup>
<CompressionTestDataSrc Include="$(PackagesDir)$(CompressionTestPackage)\content\**\*.*" />
<CompressionTestDataDest Include="@(CompressionTestDataSrc->'$(TestPath)$(TestTargetFrameworkFolder)\%(RecursiveDir)%(Filename)%(Extension)')" />
</ItemGroup>
<Copy SourceFiles="@(CompressionTestDataSrc)" DestinationFiles="@(CompressionTestDataDest)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
</Copy>
</Target>
</Project>