Commit Graph
412 Commits
Author SHA1 Message Date
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