Commit Graph
11 Commits
Author SHA1 Message Date
Ian Hays 6b7619764e System.IO.Compression: Modify path validation to be based on ZipArchive source OS
This commit resolves dotnet/corefx#4991 by adding explicit path validation based on the OS that a ZipArchive was written on instead of just using CheckInvalidPathChars for all cases.


Commit migrated from https://github.com/dotnet/corefx/commit/968f903b717d545095b4456103935ead2b29f6d5
2016-01-14 17:34:48 -08:00
Joel Hendrix 42d8d1a581 Use build tools task CopySupplementalTest data for copying test data.
The task for copying test data has been consolidated into build tools (see
build tools PRdotnet/corefx#363) and first appeared in build tools build 133. Update
projects that copy test data to use the new task.


Commit migrated from https://github.com/dotnet/corefx/commit/f1a4b51ffee958304d44b56296ec7f7e73e55549
2015-12-11 13:16:09 -08:00
stephentoub ba9fea449f Reorganize src\Common\tests
Our common tests folder has gotten a bit unwieldy in its organization.  This change simply moves files around to better map to how src\Common\src is organized.  Files are now stored in a path based on functionality/namespace.

I mostly kept groups of functionality together and did not attempt to reorganize at that level, e.g. I moved the src\Common\tests\System.Xml.XPath\ folder to be src\Common\tests\System\Xml\XPath\ and did not further reorganize all of the folders/files it contains.  Such cleanup can be done separately on each individual area.

Some of the files also need to be cleaned up internally, e.g. the namespace (or lack thereof), so I put such things in a path that I thought made sense even if it differs from the current namespace in the file; I wanted this change to be relatively simple and just be about moving files around to clean up the main hierarchy.


Commit migrated from https://github.com/dotnet/corefx/commit/9a5546c439f7700d3462564678aa4206c7fbf4f1
2015-10-11 15:44:39 -04:00
stephentoub d6467ac0af Use RuntimeInformation across corefx for platform detection
This commit deletes our temporary Interop.PlatformDetection.cs mechanism and replaces usage of it with usage of System.Runtime.InteropServices.RuntimeInformation.dll.


Commit migrated from https://github.com/dotnet/corefx/commit/6861b625b391566544be9a60356c8c03b15e5fb5
2015-08-06 10:25:17 -04:00
stephentoub bab02c72eb Ensure all Common includes use a <Link/>
Modifies various .csproj files to ensure that all Includes for files under Common use a <Link/> so that Visual Studio shows the files under a Common folder rather than flattened in the root.

Fixes dotnet/corefx#144


Commit migrated from https://github.com/dotnet/corefx/commit/264d92084d6c6366c3c23edaaab54a32f61d501b
2015-07-15 10:21:33 -04:00
stephentoub 8eeec0143e Remove <AllowUnsafeBlocks/> from various test projects
Most test projects don't need unsafe code, but many were forced to allow unsafe blocks due to Interop.PlatformDetection.cs using pointers, and others were allowing it for no apparent reason.  I've modified Interop.PlatformDetection.cs to not use unsafe code, and updated the relevant test projects accordingly. (Eventually we'll switch it over to using the new RuntimeInformation assembly, anyway.)


Commit migrated from https://github.com/dotnet/corefx/commit/3ae04f6ec948331c85c5f8441cd6d9eda868603f
2015-06-16 09:59:32 -04:00
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
Lakshmi Priya Sekar 2a499c5cbf Remove XunitTraitDiscoverers from corefx and reference the nuget package xunit.netcore.extensions.
Commit migrated from https://github.com/dotnet/corefx/commit/03e32211d668ee215f32c599849987cb7d9d4e2a
2015-05-07 16:15:32 -07:00
Eric StJohn 5db3ae33bf Convert all remaining package dependencies to project.json
DNX and BuildTools now support all of the nuget v2 conventions that we depend on so we can
move all remaining nuget v2 packages to the project.json file and eliminate packages.config.

This change also adds "frameworks" to the project.json so that dnu restore can calculate
applicable assets.  I am not yet using "runtimes" in the project.json since we are still resolving
our runtime assets manually (eg: build tools copies known files from packages).  A future
change will move us to using our runtime packages and add runtimes sections to projects
as appropriate.


Commit migrated from https://github.com/dotnet/corefx/commit/eb35a304c7e89e8b4335ed13c5d23706360d49a4
2015-05-05 12:36:57 -07:00
Stephen Toub 3d0b5d9428 Disable Unicode compression tests failing in CI
In dotnet/corefx#1523 I re-enabled several compression tests that we'd previously disabled due to the default string marshaling encoding on Linux not being UTF8, and once it was, these tests were passing for me locally.  However, there's obviously some difference between my machine setup and the CI machine setup that's causing these Unicode tests to fail during CI but not for me locally.  Since we know we need a complete globalization implementation on Linux and OSX (dotnet/corefx#846) such that it's not surprising these tests are failing (it's more surprising they're passing for me locally), I'm disabling these Unicode tests on all but Windows for now.  This commit disables not only those from dotnet/corefx#1523 but all of the tests using the unicode.zip file.


Commit migrated from https://github.com/dotnet/corefx/commit/185667984a6b3175e28806304b756eb95730a6f1
2015-04-27 16:29:05 -04:00
dotnet-bot 0da83498b5 Initial commit of System.IO.Compression.ZipFile product and tests
Commit migrated from https://github.com/dotnet/corefx/commit/ba89471a316353f45601b3e271f589090eb0b612
2015-04-21 15:41:22 -07:00