Commit Graph
60 Commits
Author SHA1 Message Date
Eric Mellino 66969e748b Re-lock dependencies with latest xunit
Commit migrated from https://github.com/dotnet/corefx/commit/795cbc75f8e167047a7c19cd7e21e99b9b9f4308
2015-08-03 16:40:33 -07:00
Eric Mellino 45d579252b Update Linq.Parallel tests for latest xUnit.
The latest xunit requires that MemberData attributes and their methods
have the same exact signature. I've changed some object[] parameters to
their exact int[] type to account for this behavior change.


Commit migrated from https://github.com/dotnet/corefx/commit/4f5db270924929d9b51a5426db6218d91f454fc0
2015-08-03 12:10:27 -07:00
Eric Mellino c0015fc582 Move all tests to latest xunit beta
Commit migrated from https://github.com/dotnet/corefx/commit/7c12b0120834f92d5c591124f692ea1b64c6a877
2015-08-03 11:27:48 -07:00
Eric St. John 47aaf9fcf8 Use stable package dependencies and move our packages to post-stable versions
This change modifies the build to consume the stable version where available.

This disables building the dowlevel packages since we shipped them once as stable and we're done.
From here on out, we'll only build the latest version (except for a servicing event, which would
be handled by syncing to a hash).

I can't rev the package versions in the normal way yet (by modifying the assembly version of the contents)
because that turned out to be too big of a problem to tackle in this change. Instead I added a
parameter to the task that calculates package versions to do the rev for anything that was
stable, but only when building the package itself, not when calculating the dependencies.
This has the downside of not permitting a dependency on a incremented pre-release version if we've
shipped a stable version, but that is a small point in time problem until I can rev the assembly
versions.

[tfs-changeset: 1508664]


Commit migrated from https://github.com/dotnet/corefx/commit/ee1ec2891c7c65b46fa9dfb078636be503bb2a60
2015-07-31 15:47:51 -07:00
stephentoub b931aee629 Add missing license headers to .cs files
There are 77 .cs files in the repo lacking the standard license header we have on the other ~5400 .cs files.  This commit adds the missing ones.


Commit migrated from https://github.com/dotnet/corefx/commit/98157438d8790337f14341528f20d2f788a3279d
2015-07-21 18:52:55 -04:00
Stephen Toub 8176e9c803 Merge pull request dotnet/corefx#2305 from Clockwork-Muse/PLINQ_2239
PLINQ - Minor fixes 

Commit migrated from https://github.com/dotnet/corefx/commit/d9ad8dc965d5c1b57eb0942b164953fddaf021a9
2015-07-20 15:17:36 -04:00
Clockwork-Muse 4a5333a9fd Fix dotnet/corefx#2345 , split test for non-throwing base enumerable.
Commit migrated from https://github.com/dotnet/corefx/commit/ca16c3d5d39acf5a0def13da9ed3de2988beeb81
2015-07-20 12:05:16 +09:00
Clockwork-Muse c4b82a6b53 Add overflow checking to Average nullable internal aggregation.
Commit migrated from https://github.com/dotnet/corefx/commit/4b55804cdc89e482bd8680fbe04141c9870c9184
2015-07-20 12:05:13 +09:00
Clockwork-Muse 1053bdb68f Remove unused cancelled token check, fix PLINQ version of dotnet/corefx#2239
Commit migrated from https://github.com/dotnet/corefx/commit/0034eef34ce1437b17e3c463cee0a0a34352f615
2015-07-20 12:05:12 +09: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
Clockwork-Muse c3b1d08706 Add preemptive cancellation check for ToArray.
Commit migrated from https://github.com/dotnet/corefx/commit/4dd373d04d60b40f647cd79515f2360244c5df39
2015-07-12 19:03:04 +09:00
Clockwork-Muse e6de1ce75b Parcel out PlinqDelegateExceptions.cs contents, remove.
Update ExchangeTests

Update PlinqModesTests.

Remove file (contents covered more thoroughly by other tests).

Change Union tests to use custom Comparator similar to other set operations.

Add List to sources used for OuterLoop

Change how empty tests are handled.

Add tests for non-comparable types.

Add tests checking for duplicate compared items.

Describe behavior of common range sources

Describe Zip member data functions.

Describe Union member data functions.

Describe OrderBy member data functions

Describe Max/Min member data functions.


Commit migrated from https://github.com/dotnet/corefx/commit/1c3ecb33008d93d47b2e9a42480ebac50821b617
2015-07-11 09:26:58 +09:00
Chad Nedzlek 3e670d36e1 Remove SignAssembly=false from test assemblies
Setting SignAssembly to false breaks loading our test assemblies
in XUnit using the current folder structure we use.  It doesn't show
up in the open, because we always sign the assemblies, ignoring
this setting. But in our official drops, we respect the property, and
then are unable to run these 12 tests.


Commit migrated from https://github.com/dotnet/corefx/commit/b35fe3ea32926cc4fefe1ef3945029f893921e6e
2015-06-29 11:42:11 -07:00
Nick Guerrera 4c28436d2e Update package dependency versions
Commit migrated from https://github.com/dotnet/corefx/commit/0c6b87e4e67e80b5d751bcd6883ca6e89fb68157
2015-06-24 14:04:15 -07:00
Matt Mitchell 9d11745057 Update build tools. Contains changes to support FreeBSD in xunit.
Float package versions to get the latest version of the netcore extensions (has FreeBSD support)


Commit migrated from https://github.com/dotnet/corefx/commit/c760824a531ffc3981148a8ef9b97f56af9ff643
2015-06-23 16:06:50 -07:00
Eric StJohn 1a58e04134 Update corefx packages to version 23011
Commit migrated from https://github.com/dotnet/corefx/commit/3bb2f035a7c1f6168a6bd34fbf3851f7eedf76bf
2015-06-19 16:33:53 -07: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
Stephen A. Imhoff f571218e4d Delete ExceptConcatReverseTests.cs
Remove no-longer-needed file (not sure how this escaped)

Commit migrated from https://github.com/dotnet/corefx/commit/94dc2352c7ef69d72e0946ef5a69fbfdb2169019
2015-06-15 21:56:32 +09: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
Clockwork-Muse fdafa7aeb3 Add missing null-argument check to System.Linq.Parallel.Cast().
Add missing null-argument check.
Update tests as necessary.
This makes Cast act the same as the other extension methods, and follow its documented behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/63c1862601662fffd9c601be275e239c612454bb
2015-06-09 19:56:44 +09:00
Clockwork-Muse 6952087b0e Initial cleanup of System.Linq.Parallel test.
Reorganize folders and files.
Update tests to use Theory and MemberData attributes.
Greatly expand source types used.
Add tests against pre-cancelled tokens and exceptions thrown
against output methods.


Commit migrated from https://github.com/dotnet/corefx/commit/6204cf2c3444f5c6aa42b08baaaca5c350dd4317
2015-06-08 07:06:07 +09: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
Matt Ellis 771502f50b Merge 'upstream/master' into from-tfs
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/eb58e5b84672c7a0b82ee6b241577134d36c1401
2015-05-15 15:26:03 -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
Alexander Köplinger b46f878f13 Remove outdated comment about packages.config from csproj's
Since the move to project.json we no longer use packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/1d489b12d2f6b7b7128888d525dc2e49fe2f1782
2015-05-15 20:10:42 +02: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
Lakshmi Priya Sekar aa951a667e Remove testcategories from csproj, in relation to the recent changes in buildtools.
Commit migrated from https://github.com/dotnet/corefx/commit/30b9b8d87605f17dbb94ccf7785da1fde8f11329
2015-04-21 16:36:05 -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 acc6fe4aaf Merge pull request dotnet/corefx#1215 from Clockwork-Muse/ParallelQuery-Nullable_Float_Sum
`ParallelQuery<float?>.Sum()` add up all elements.

Commit migrated from https://github.com/dotnet/corefx/commit/3a8b3d06422f1163b0843af4a3b7f639416e7fa8
2015-03-24 08:15:14 -07:00
Clockwork-Muse 136b74da98 ParallelQuery<float?>.Sum() add up all elements.
The non-nullable float sum was able to add up elements, even when the
intermediate sum would not normally be representable,
by using a double during the actual summation, and casting on output.
The nullable float sum wasn't doing this, causing it to output different results
(even when the final result would be representable).

This commit also removes `checked` around floating-point addition,
 as it is ignored (returns Infinity instead).


Commit migrated from https://github.com/dotnet/corefx/commit/63a25cd2f82b8aec31dbcd3b98528e8b14389046
2015-03-23 20:20:27 +09:00
Christopher Costa 7e2dd3ad7b Delete closed libraries sources and reference open sources.
This change removes the closed libraries sources for libraries which we are now building in the open.  Stub project files are left in the closed libraries which improt sources from the open for various build configurations.

Also includes these two changes which were not yet ported to open:
- [Serialization]: DCS/DCJS fails to serialize/deserialize XElement type - regression
- Change namespace of System.Xml.XPath.XmlDocument extensions

Validated by pre-checkin gauntlet build dotnet/corefx#150320.14337

[tfs-changeset: 1437136]


Commit migrated from https://github.com/dotnet/corefx/commit/89881048ba6bb6adca5253024ea59e8aa8790a6a
2015-03-20 17:07:34 -07:00
Krzysztof Wicher b84c7a24c1 Add tests categories to projects
Commit migrated from https://github.com/dotnet/corefx/commit/9a4eda2952be4ad27111be79be769b1072c450c5
2015-03-06 10:56:33 -08:00
Nick Guerrera f022d5bba7 Bump package versions to latest
Commit migrated from https://github.com/dotnet/corefx/commit/a4d211e9a250c5975022f32d3d7b036e2ba12488
2015-03-04 11:02:12 -08:00
Stephen Toub 1184cf3f93 Add ETW tests for remaining providers
Commit migrated from https://github.com/dotnet/corefx/commit/621d4cfa09623b8a0bebdd8d4d615b526c860151
2015-02-22 12:15:34 -05:00
Matt Johnson 165ce6c460 Fix typos in strings
Commit migrated from https://github.com/dotnet/corefx/commit/f62b0d7280d87e1a139e931388a2ef9d510aaa2b
2015-02-18 14:37:42 -08:00
Matt Johnson ccd5e9e34a Fix typos in comments
Commit migrated from https://github.com/dotnet/corefx/commit/4a3d2d5b7b53a6d37fcc54553f5d0f62b2d6cff7
2015-02-18 14:37:35 -08:00
Stephen Toub 150a2f4e75 Re-enable code coverage for (most) disabled libraries
Several libraries had their code coverage disabled due to unknown problems.  The change to a more recent version of OpenCover appears to have addressed whatever those issues were, as the problems no longer repro.  This commit just re-enables the code coverage for those libraries.

The only remaining library with its code coverage disabled is System.Diagnostics.Process.dll.  It's either hanging or just taking a really long time to complete.  Investigation still needed.


Commit migrated from https://github.com/dotnet/corefx/commit/01c18f27d5a6c383701e0407b55e6edfae203309
2015-02-17 16:44:44 -05:00
Matt Ellis dd1f649de4 Add back some Xunits attributes that got dropped
As part of dotnet/corefx#771, we redid how AssemblyAttributes were generated, this
caused us to lose some Xunit directives for some of our test
assemblies. This change just adds them back in.


Commit migrated from https://github.com/dotnet/corefx/commit/91672e631cc09abab7d9895807e132953d2f1b68
2015-02-16 10:55:26 -08:00
chcosta d1620100c8 Sync changes from TFS as of 2015/02/16 9:30:00 AM
[tfs-changeset: 1416076]


Commit migrated from https://github.com/dotnet/corefx/commit/67bd740c6c732e141835521ff34b2cc18591a9cc
2015-02-16 09:51:49 -08:00
Alex Ghiondea 8ba01cd34d Update the PreDisposedCTSPassedToPlinq test to no longer expect an exception.
A change was made in mscorlib to no longer throw if a disposed
CancellationToken was passed to the Register method.


Commit migrated from https://github.com/dotnet/corefx/commit/80e78b03ec25988e1202ed0b50cc470a99877159
2015-02-12 16:19:30 -08:00
Maxwe11 2d635dae1c Replace relative path to common tests with a variable
Replace relative path "..\..\Common\tests" with $(CommonTestPath) variable.


Commit migrated from https://github.com/dotnet/corefx/commit/56dbc6abc6dcde5874c99c67f379d788c8dd4420
2015-02-08 15:05:37 +02:00
Matt Mitchell b2149f1c80 Enable code coverage for the corefx repo
This change enables code coverage for the corefx project using OpenCover.

 * When /p:Coverage=true is passed, we wrap the xunit call in the OpenCover command.
 * OpenCover filters test assemblies but no other default filters.
 * We disable parallel execution of tests within xunit and parallel project building when running coverage. This appears to cause issues with OpenCover (I see spurious failures in tests) and is actually slower than just running execution serially.
 * A few assemblies still have issues even after this.  These have coverage disabled with CoverageEnabledForProject.  Will open an issue for future investigation.
 * After execution is complete, we run the ReportGenerator tool over the set of generated coverage data, creating a full report in bin\tests\coverage.


Commit migrated from https://github.com/dotnet/corefx/commit/60a0bdd4125e39aa1653f2aeffc9eea02f348531
2015-02-05 13:11:18 -08:00
Stephen Toub 88986e96e3 Merge pull request dotnet/corefx#589 from stephentoub/plinq_active_issues
Address remaining PLINQ test ActiveIssues

Commit migrated from https://github.com/dotnet/corefx/commit/0ec9dfff814dea9d6d737f820a00ad1879931a7a
2015-02-02 14:10:02 -05:00
Stephen Toub e313adefdf Address remaining PLINQ ActiveIssues
A bunch of PLINQ tests are disabled as ActiveIssue.  This commit fixes all of them except for ActiveIssue(235), which is addressed by a separate PR.

PlinqModesTests.RunPlinqModesTests - I don't know what the reasoning was when this test was ported over, but there's an explicit comment at the top of the test that it's not meant for DOP==1, and then apparently we were surprised wheni it was failing on single core machines ;)

UnionIntersectDistinctTests.RunOreredUnionTest1 - There's no reason this test should fail.  If it does, there's a bug to be investigated.  I'm assuming it was actually stalling because of another test running with it concurrently.

WithCancellationTests - A bunch of these tests were scheduling tasks to asynchronously cancel/dispose a query, and the query was written to take a certain amount of time to hopefully allow for cancellation to take place.  But it appears as part of the tests being ported, those timeouts were simply commented out, making it extremely likely the tests would fail.  I've just rewritten them to do the cancellation as part of the query's execution rather than using a separate asynchronous task.  I also deleted some duplicative tests.  And I made some tests that still did explicit delays/timeouts to be OuterLoop.


Commit migrated from https://github.com/dotnet/corefx/commit/d460b29586007d1e8ba534bd8b05a55a88ceff86
2015-01-31 20:31:23 -05:00
Stephen Toub 7f99d9fe87 Fix PLINQ MakeLeft vs MakeRight bug in Union
Similar problem to the bug in Concat.

This is the last issue that prevents ParallelQueryTests.RunTests from passing, so I've also removed the ActiveIssue(235) attribute to reenable the test.


Commit migrated from https://github.com/dotnet/corefx/commit/de9150bc12fb8da2e750de97e51be83e208d9431
2015-01-31 19:22:51 -05:00
Stephen Toub f63e0f26e7 Fix PLINQ concat ordering bug
Commit migrated from https://github.com/dotnet/corefx/commit/ffe24ab7d27c7d33bdcfe7351b5e478b40d89bf9
2015-01-31 10:07:55 -05:00
Nick Guerrera 1846be8d13 Bump package versions to 22512
Commit migrated from https://github.com/dotnet/corefx/commit/fa62bc6d0ab5e2b413c8930c708969029616a8e0
2015-01-28 17:46:49 -08:00