Commit Graph
92 Commits
Author SHA1 Message Date
dotnet-bot b32ddb5d98 Deploy nameof throughout corefx in MemberData
Commit migrated from https://github.com/dotnet/corefx/commit/9c3156b9ada06b8e58ac53d48fc303500bf3e476
2016-02-18 23:58:15 -05:00
stephentoub 95d7cc7534 Update packages to rc3-23818
Commit migrated from https://github.com/dotnet/corefx/commit/380a2ebf4a498f9ab0a819c71d8717377e601bfb
2016-02-18 07:28:09 -05:00
stephentoub 180fba592f Update packages to rc3-23816
Commit migrated from https://github.com/dotnet/corefx/commit/c2e6426b9b9494d5478f656396f4da5711e8729a
2016-02-16 11:05:43 -05:00
Davis Goodin 1bc755f9e7 Adds custom xplat nuget that can restore from VSTS feed, adds the VSTS feed, and upgrades project.jsons throughout NDP\FxCore to pass new nuget compatability checks.
Some fixes (adding imports, adding Platforms package) were tooled, but more complex ones (forking project.jsons, editing csproj's) were not.

Also makes dependency version validation rules case-insensitive. (I used this fix to update the versions of some packages.)

[tfs-changeset: 1573868]


Commit migrated from https://github.com/dotnet/corefx/commit/84af04317505d48feaa1e83dd5dc27ddc0f6de76
2016-02-09 14:20:02 -08:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
stephentoub b1ced5215f Fix System.Linq.Parallel test after ToArray changes
This wasn't caught previously because System.Linq.Parallel.Tests is depending on the System.Linq.dll NuGet package, not the live bits.  Two tests were explicitly verifying object equality.  This isn't necessary; I've simply deleted the offending checks.


Commit migrated from https://github.com/dotnet/corefx/commit/a7d743c973b2eea287c5c6dcde807fe640ed491a
2016-01-23 11:36:31 -05:00
dagood e401efd6af Add portable-net45+win8 import to tests.
Specifically, add the import to dnxcore50 frameworks entries where "xunit" is mentioned in the project.json.
This fixes `xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.`


Commit migrated from https://github.com/dotnet/corefx/commit/da2e8eb34efcaf70069223bc431d80909a2fc91d
2016-01-12 14:04:32 -06:00
dagood fbfb82cc8c Change all project.json files to validate. Remove lockfiles from source control and add to gitignore.
A few new references to pick up changes that happened over time.


Commit migrated from https://github.com/dotnet/corefx/commit/0d881222d8c3269157639e2e67056e5a83aad834
2015-12-09 16:25:26 -06:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
bartonjs a768025131 Update all project.lock.json files
Built Windows_NT, Linux, OSX with /p:LockDependencies=true.

CoreFX beta-* => 23419
xunit.netcore.extensions => 00107


Commit migrated from https://github.com/dotnet/corefx/commit/a14b22705df253508bd5f2dab0407bd2c7e4d639
2015-10-19 16:00:44 -07:00
Peter Jas a29604278c code: Fixes occurred spelling.
Fixes dotnet/corefx#3661.


Commit migrated from https://github.com/dotnet/corefx/commit/544a3885ff51e04db89b70e3f155be1a5c64f166
2015-10-06 15:27:09 +00:00
Stephen Toub 7879d3ffc2 Remove dummy Console.cs from Common\tests
Several of the test projects are doing Console.WriteLine, but aren't actually using System.Console.dll, and are instead including a dummy Console.cs file where WriteLine just calls Debug.WriteLine.  This commit deletes that dummy file and updates the consuming test projects to just use Debug.WriteLine. (We don't want our tests to be using Console.WriteLine for this kind of debug spew, anyway.)


Commit migrated from https://github.com/dotnet/corefx/commit/fbddea55638921186299e9c0eb51d3f3a8dd73b7
2015-10-05 14:34:05 -04:00
stephentoub ee5af96a78 Delete two PLINQ tests
Enumerators, even those produced by PLINQ, are not safe to be used concurrently from multiple threads.  Two PLINQ tests are doing exactly that, trying to Dispose of an enumerator concurrently with calling MoveNext on it and potentially concurrently with other calls to Dispose.  This is resulting in sporadic hangs in CI.

I'm simply deleting the tests, as their sole purpose is to test this particular unsupported and unsafe situation.


Commit migrated from https://github.com/dotnet/corefx/commit/8ba6140a8c9d9584f71731e8856f6e2bdcfc8d17
2015-10-02 12:41:28 -04:00
Ian Hays 0f8197a86c Update CoreFX to xunit 2.1.0
Commit migrated from https://github.com/dotnet/corefx/commit/87b48c58936d66fcb201b3a8ad0961fa055f23b9
2015-10-01 19:56:49 -07:00
Stephen A. Imhoff dac9a62890 Switch to OuterLoop attribute on class.
Commit migrated from https://github.com/dotnet/corefx/commit/5a5debb8fe10216668b31dc5722914d4ace6fa6f
2015-09-17 16:54:17 +09:00
Stephen A. Imhoff 0ace697d7c Expand GetEnumerator Tests.
Commit migrated from https://github.com/dotnet/corefx/commit/37fe1aa4acafa7e11d951a0dd694ac9b3c983db2
2015-09-17 16:54:16 +09:00
Stephen A. Imhoff f50b3b44ed Extract/expand failing combinatorial tests.
Add throw-on-enumeration source.


Commit migrated from https://github.com/dotnet/corefx/commit/aa26d27367f3283c86b502da640a7f87055b3f7a
2015-09-17 16:54:15 +09:00
Stephen A. Imhoff 0562be4aa5 Add missing PreCanceled OCE combination tests.
Commit migrated from https://github.com/dotnet/corefx/commit/df57e797c4288851b6b288aad63a1fff558dd0fa
2015-09-17 16:54:14 +09:00
Clockwork-Muse 168ab05c98 Add checks for duplicate settings.
Commit migrated from https://github.com/dotnet/corefx/commit/ca3c94dc781c92ae738cd86f0435ac729844e919
2015-09-17 16:54:13 +09:00
Clockwork-Muse f73712cb22 Fix some longrunning tests to point at the correct short ones.
Commit migrated from https://github.com/dotnet/corefx/commit/822501805ab70163b6da1d12cc58dae581a78da9
2015-09-17 16:54:12 +09:00
Clockwork-Muse b3766126c9 Add tests dealing with floating point infinity, NaN (and null).
Commit migrated from https://github.com/dotnet/corefx/commit/9e9d3a24b65426e938cef7851e989018bee0a100
2015-09-17 16:54:11 +09:00
Clockwork-Muse bac3728ec5 Improve Sum floating point overflow tests, add NaN tests.
Commit migrated from https://github.com/dotnet/corefx/commit/348bd1a2e7d0e41e03509ae408b60014d8c11470
2015-09-17 16:54:10 +09:00
Clockwork-Muse a15331e8eb Improve OrderBy/ThenBy tests.
Use explicit ranges instead of boolean check, restrict bounds.
Verify count of items ordered.
Add tests with non-comparable items.


Commit migrated from https://github.com/dotnet/corefx/commit/d5ec9d25dc831ab48bc7eb3cadf5d375e6857257
2015-09-17 16:54:09 +09:00
Clockwork-Muse ac5ac4c87e Clarify "Stable Sort" tests.
Commit migrated from https://github.com/dotnet/corefx/commit/958e9122df2408f93b3dd7e42777a333e89c48e2
2015-09-17 16:54:08 +09:00
Stephen A. Imhoff bf547ac81f Correct Test namespace.
Commit migrated from https://github.com/dotnet/corefx/commit/c9e780fd0d5f8868ba9975616ca895a6a17db79d
2015-09-17 16:54:05 +09:00
Alexander Köplinger 3e20a867b2 Update build to use DNX beta7 instead of beta5
The corefx build used an older beta5 version of DNX which hardcoded the path to bash in dnu, breaking the build on FreeBSD.
Updating DNX to the latest "stable" beta7 release fixes this.

After updating I noticed a few test projects didn't build anymore as they were missing some dependencies in project.json, added those.

Fixes dotnet/corefx#3173


Commit migrated from https://github.com/dotnet/corefx/commit/6df77fdbb6cf8e0d35a3074bb325f7810085daa3
2015-09-16 02:12:26 +02:00
Eric St. John d7a0ae297b Update corefx packages to latest
Commit migrated from https://github.com/dotnet/corefx/commit/23f0b695bd162e0f665427c95180dc21931e5c70
2015-08-14 15:43:23 -07:00
stephentoub a49c54e90b Fix PLINQ modes tests to not timeout or deadlock
The tests for PLINQ's WithExecutionMode were employing a technique to try to verify that multiple workers were indeed participating in the query: the processing of one element would block until another element was processed.  This technique was then applied to queries expected to employ parallelism in their processing.  However, even readily parallelizable queries may in some circumstances end up being processed sequentially.

This fix changes the parallel verification to instead simply track the IDs of tasks involved in the processing.  With PLINQ's current implementation, there will be one task spun up to process each partition, and so counting the number of unique task IDs involved yields the number of tasks that actually did processing; by removing the blocking, we also remove the need for this to be outer loop.  This in and of itself is insufficient, though, as depending on the data source, all of the data could still end up in a single partition; to fix that, the test is changed to only operate over data sources that do fixed partitioning, namely those involving non-load balanced ranges.  With these changes, we can then significantly reduce the number of elements involved in the tests, as they become entirely deterministic with regards to what data is in which partition.  And we can easily add a test that was previously missing: verifying that certain queries are not parallelized and end up running sequentially.


Commit migrated from https://github.com/dotnet/corefx/commit/40779a51f39e07392813cd0dbd72c285e47c0429
2015-08-07 17:16:37 -04:00
stephentoub a29fdadda2 Fix outer loop PLINQ tests faiing to find member data
Fallout from the xunit upgrade.  Some member data functions couldn't be found because their array types didn't match.


Commit migrated from https://github.com/dotnet/corefx/commit/f36a1ce384d59493ba69f94af2a951ce819f5f9c
2015-08-07 15:08:34 -04:00
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