Commit Graph
21 Commits
Author SHA1 Message Date
Karthik Rajasekaran 5c93b350d3 Add NugetTargetMoniker to test projects and update remaining project references to pkgproj
Commit migrated from https://github.com/dotnet/corefx/commit/13e03705ced065850dc65900fccfd930426e87d7
2016-06-29 12:30:05 -07:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Ian Hays 717e698be9 Special-case FSW tests for Win7
A few of the FSW tests are failing from differences between the win7 FSW behavior and the win8+ FSW behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/08512fd8cbd94b4af85074927b046a1ec03a0833
2016-05-20 11:50:32 -07:00
Ian Hays febb25693e FileSystemWatcher test overhaul
Reworks the FSW tests to be 100% passing.
- Adds path validation to most tests.
- Adds a Retry mechanism to handle expected intermittent failures due to untrustworthy underlying API calls.
- Adds more test cases to NotifyFilter and splits existing tests into separate dir/file tests to cover either behavior.
- Enable test parallelization


Commit migrated from https://github.com/dotnet/corefx/commit/28d10fa256f40c3d37a8cb82d96a1e5520df03d2
2016-05-09 11:24:59 -07:00
stephentoub 9cd8abd88f Add FileSystemWatcher.WaitForChanged methods
These were previously left out when ported to .NET Core.  This puts back an implementation of the WaitForChanged methods that mimics the behavior in the full framework.


Commit migrated from https://github.com/dotnet/corefx/commit/f6993346ae5aa0b518d99837c597bbd31aa4e59a
2016-05-09 12:07:25 -04:00
Ian Hays c0f649508b Modify FileSysemWatcher tests to use temp paths.
- Add Common TempDirectory class for short-term temporary directories that are easy to create and destroy
- Put all FSW tests into the System.IO.Tests namespace
- Modify all FSW tests to use the common TempFile/TempDirectory classes instead of their own custom one
- Modify all FSW tests to watch for events in a temporary directory. There shouldn't be any more new items being created or watched in the runtime folder.
- Fix the SymLink tests to use the ConditionalFact attribute similar to how the FileSystem tests function.
- Remove the unnecessary symlink print statements being outputted by the FileSystem CreateSymbolicLink function.


Commit migrated from https://github.com/dotnet/corefx/commit/65356f9471850b796d01f63536c3ba36e504f8e1
2016-04-22 09:14:49 -07:00
stephentoub fd5d04a4d4 Remove "workaround" P2P TODOs from .csproj files
In the past we've added some temporary P2P references to workaround lack of bug fixes in packages.  Removing them as they're no longer needed.


Commit migrated from https://github.com/dotnet/corefx/commit/ba939973c07af13b01fe3b4f34e0a31eac6f90c7
2016-01-25 14:41:34 -05:00
Wes Haggard f27c7dc024 Update project files adding default configurations
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.

Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.

Removed OutputType=Library property as it isn't necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
2016-01-02 23:50:21 -08:00
Eric Erhardt eb363c4e65 Workaround the way CI runs tests.
The current changes in FileSystem.Watcher and MemoryMappedFiles require the latest
System.IO.FileSystem in order for their tests to be passing.


Commit migrated from https://github.com/dotnet/corefx/commit/1921420a3fb6187ebdc7bf7fa64ddb76ed1537ed
2015-12-04 11:01:48 -06:00
stephentoub a19ac60823 Disable parallelization of FSW tests
My previous change to rename FSW test classes led to FSW tests getting parallelized.  It turns out that some of the tests are not robust against this due to using file names that can end up conflicting with other tests.  Additionally, it appears that the waiting / timeouts used by the tests is very susceptible to failure when run in parallel due to reliance on the shared thread pool, causing more failures in CI.


Commit migrated from https://github.com/dotnet/corefx/commit/83decea6937e1296be20202ff2f8ace51339e958
2015-08-10 23:11:09 -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
Ian Hays e6e252aabf Modified Unix File.Move to use link/unlink instead of rename
Changed the way the UnixFileSystem does File moving; it was previously implemented using the rename syscall but now uses a combination of link and unlink. The side effect of this change is that the FileSystemWatcher will now treat File.Move as a deletion.

- Resolves dotnet/corefx#2460
- Removed all tests from FileSystemWatcher that made calls to File.Move and consolidated them into a new file: FileSystemWatcher.MoveFile.cs. This new file separates tests into Windows and Unix categories and uses Theories to supply the input WatcherChangeType and whether a move should trigger an event for the given type. If we later decide to change the Unix behavior of MoveFile, changing the FileSystemWatcher tests will be a simple matter of flipping the boolean values for the affected tests.
- Fixed some comments in UnixFileSystem to be more specific to FileSystemWatcher
- Changed variable names for FSW Move tests to be more descriptive
- Modified FSW MoveFile and Utitlity helper classes to use guids so that they may be run concurrently.


Commit migrated from https://github.com/dotnet/corefx/commit/cae7c5116d46c0d98e6f0fb3526fa2a15945501a
2015-08-04 15:47:56 -07:00
stephentoub 1e197b1e10 Remove extraneous ProjectTypeGuids causing load failures
Several projects are no longer loading correctly in VS for me.  It's happening for projects and only for projects that contain a <ProjectTypeGuids/> node in the .csproj, related to portable libraries.  These entries are unnecessary, and I'm simply deleting them, after which the projects load in VS successfully.


Commit migrated from https://github.com/dotnet/corefx/commit/6896000d173190ad945fac32834c2d30815d8a29
2015-07-24 11:15:28 -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
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
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
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
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