Commit Graph
273 Commits
Author SHA1 Message Date
stephentoub cda26fb23a Disable more FileSystemWatcher tests on OSX
Turns out my previous run of the OSX tests wasn't actually running all tests, due to my having an outdated xunit.netcore.extensions.dll and xunit silently not running some tests as a result.

@sokket is investigating.  In the meantime, I'm disabling the rest of these on OSX.


Commit migrated from https://github.com/dotnet/corefx/commit/536cfc9118f029c3f91ab9739834b92b3728c8a6
2015-06-11 17:33:08 -04:00
stephentoub 199c8d0ff2 Disable several FileSystemWatcher tests failing on OSX
Commit migrated from https://github.com/dotnet/corefx/commit/9d230c0c78be9e2c39acc6377f2746aeb9c95ee1
2015-06-11 15:52:27 -04:00
stephentoub 68b0c18d2d Update all project.lock.json files
Used:
build.cmd /t:RestorePackage /p:LockDependencies=true


Commit migrated from https://github.com/dotnet/corefx/commit/76fcb7ab9444f68577ca0ec17055ca8c4e574b75
2015-06-10 10:19:11 -04:00
stephentoub 200cfdfdb7 Update project.jsons to use xunit.netcore.extensions "1.0.0-prerelease-*"
Some of the project.json files were referencing xunit.netcore.extensions with ""1.0.0-prerelease" rather than "1.0.0-prerelease-*".  As a result, I was unable to use more recent additions, like PlatformID.AnyUnix.  This change just updates them to use the -* versions, and changes the few remaining places that were using PlatformID.Linux | PlatformID.OSX to instead use PlatformID.AnyUnix.  The project.lock.json files were automatically updated by my building locally.


Commit migrated from https://github.com/dotnet/corefx/commit/f28722e261368de16adc2600fa1f1d3c0993ee8d
2015-06-03 12:31:17 -04:00
Eric StJohn e8454e28a5 Update projects to latest CoreFx packages
This is the result of build /t:RestorePackages /p:LockDependencies=true from the root.

This adds all missing project.lock.json files and updates existing ones to the latest package versions.


Commit migrated from https://github.com/dotnet/corefx/commit/38e0d2a0f8513afe6dc7d86a67e5776ab7b99df1
2015-05-27 12:18:06 -07:00
Eric St. John a8788d6383 Lock dependencies to ensure we build against a predictable package version
This change adds the lock files to repo to ensure we build against a stable set of dependencies.  To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.

Existing projects adding new dependencies will automatically update the lock file incrementally.

New projects should make sure to check their lock file in with locked set to true.

[tfs-changeset: 1474296]


Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
2015-05-21 15:23:27 -07:00
Eric St. John de6614c63a Update to latest CoreFx packages
Latest packages are now on dotnet-core myget feed.

This should address a many of the warnings in the build.  I will follow up with another change to address the rest.

This change brings in the latest build tools with updates to consume "latest" packages (* versions).

I've updated every project in the repo to use * versioning for dependencies.

The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll.  Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources.  The System.IO.Compression.dll from the package is not used since the project reference takes precedence.

I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist.  This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area.  I've fixed this in a separate change and we can remove the workaround once we have a new set of packages.  https://github.com/dotnet/corefx/issues/1761

I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX.  It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec.  This is inconsistent with nuget v2 and should be fixed in DNX.  https://github.com/aspnet/dnx/issues/1881

[tfs-changeset: 1471885]


Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
2015-05-15 12:40:33 -07:00
Stephen Toub c3035888b4 Merge pull request dotnet/corefx#1668 from Priya91/removexunittraits
Remove XunitTraitDiscoverers project from corefx.

Commit migrated from https://github.com/dotnet/corefx/commit/e2b74c91791a772c27eb450bb49cdc221e3a5f4e
2015-05-08 06:52:21 -04:00
Stephen Toub 3093282214 Disable (the other) FileSystemWatcher IncludeSubDirectories events test
Turns out both FileSystemWatcher_4000_Tests.FileSystemWatcher_IncludeSubDirectories* tests are failing with some frequency.  I disabled one of them earlier today; this disables the other.


Commit migrated from https://github.com/dotnet/corefx/commit/7e40d5ff6ff2cc6d3b4b5858b543222d26c5fb04
2015-05-07 22:16:54 -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
Stephen Toub 03e25b2599 Disable a failing FileSystemWatcher events test
It's been taking out a bunch of PRs and main builds over the last day or two.


Commit migrated from https://github.com/dotnet/corefx/commit/66c3c43dfff69acf884f10d9b220b0eaf80dd78a
2015-05-07 11:36:11 -04: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 6e8d413a8e Simplify Interop.PlatformDetection comparisons
When I first added Interop.PlatformDetection while cleaning up tests for Linux, I'd added an OperatingSystem property, and the typical pattern was to compare against an enum, e.g.
```
if (Interop.PlatformDetection.OperatingSystem == Interop.OperatingSystem.Windows)
{
...
}
```
We subsequently added helper Is* properties, e.g. IsWindows, but never went back and substituted into the previous uses.  This cleans that up, such that usage like the above instead becomes:
```
if (Interop.IsWindows)
{
    ...
}
```


Commit migrated from https://github.com/dotnet/corefx/commit/be8e3c9c34fe604e8182fed16ca9026447c6d38d
2015-04-29 07:32:40 -04:00
Eric StJohn 61af4342a7 Ensure that tests reference package version that contains implementation
We now publish downlevel packages that do not contain implementations for coreclr.  The expectation is that head projects will bring in a meta package that lifts the versions to the appropriate one for the head.  We don't currently use a metapackage for our test projects, logically this should be a replacement for the packages.config/project.json that our test targets inject.


Commit migrated from https://github.com/dotnet/corefx/commit/6c79e0b5422a1af31966df003a422a4fce6ef97b
2015-04-15 12:47:48 -07:00
Eric StJohn c0e430ddf5 Update to latest CoreFx packages, convert to project.json
This change updates all projects to the latest CoreFx packages which make use of nuget v3 features and thus require project.json.  Packages.config remains for the packages which are not yet compatible with the new build task (mainly because we need to resolve to PCL folders).
The entire change was done by a tool in order to not miss any dependencies, and ensure we have project items for the packages.config/project.json.  One side effect of using the tool is some reformatting of whitespace in the projects.


Commit migrated from https://github.com/dotnet/corefx/commit/e729c5353070b71aedff8f1300ae838573813faf
2015-04-15 12:47:43 -07:00
Matt Cohn d0bb690ea6 Update xunit dependency to xunit.core.netcore.1.0.1-prerelease
Update xunit dependency.  New package corrects its dependency on
xunit.abstractions to version 2.0.0-beta5-build2785.


Commit migrated from https://github.com/dotnet/corefx/commit/a50ce00294851a60b177f14785f1af9f50f5e344
2015-04-09 16:24:18 -07:00
Stephen Toub 19bae264c5 Annotate and fix platform-specific tests in System.IO.FileSystem.Watcher
A few tests for FileSystemWatcher are platform-specific, e.g. differences in event coalescing behavior causing a the event buffer to fill on Windows but not on Linux.  This commit annotates such tests as Windows-specific.  It also fixes up a few other tests that were mostly platform-independent but had a few pieces that were platform-dependent; the platform-dependent pieces are now conditionally invoked.


Commit migrated from https://github.com/dotnet/corefx/commit/2b25b8db0a8e4599a619389cf946f4859090464d
2015-04-03 15:20:56 -04:00
Christopher Costa 6c499dee70 Disable flakey FileSystemWatcher test for internalbuffer size.
Commit migrated from https://github.com/dotnet/corefx/commit/ccc6e03c3fb7cae3a450be06045c55385c54e9a4
2015-03-25 15:04:43 -07:00
Stephen Toub 45cc9c2b45 Merge pull request dotnet/corefx#1228 from stephentoub/fix_fsw_tests
Fix FileSystemWatcher src/tests on Linux

Commit migrated from https://github.com/dotnet/corefx/commit/e356e98d1ad32113bc47506baf5a1e19ea942363
2015-03-24 22:50:33 -07:00
Stephen Toub 687d8f5c53 Use DirectorySeparatorChar in a FileSystemWatcher test
Commit migrated from https://github.com/dotnet/corefx/commit/3e41e9b55cd8aaba307f4ea5b419f954d3db58f2
2015-03-24 22:32:52 -07:00
Stephen Toub 6b9fef7a91 Fix FileSystemWatcher src/tests on Linux
This commit fixes issues highlighted when running the System.IO.FileSystem.Watcher tests on Linux.  There are 49 tests that pass on Windows; after these product and test fixes, only 7 of those fail on Linux, all due to Windows-specific tests that will need to be tweaked based on target system or disabled entirely on Linux:
- 2 are P/Invoking to Win32 functions related to security
- 3 are trying to overflow the event buffer but not doing so on Linux
- 2 are expecting case-insensitive file paths


Commit migrated from https://github.com/dotnet/corefx/commit/7176a0dc531a1a9c9032c36330bbf92e7ca57f65
2015-03-23 17:54:49 -07:00
Christopher Costa c4bf8b5a5d Enable FileSystemWatcher test to actually validate internal buffer size changes
Commit migrated from https://github.com/dotnet/corefx/commit/5ef10adb860f63673feaf138b0f2dd283fa39133
2015-03-20 16:27:45 -07:00
dotnet-bot 254a638e63 Add System.IO.FileSystem.Watcher Source and Tests
Commit migrated from https://github.com/dotnet/corefx/commit/73ab96765fa59e5a1d224ecf804a29379da30c0b
2015-03-09 11:50:41 -07:00