Commit Graph
101 Commits
Author SHA1 Message Date
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
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -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 cb00627407 Correct type used in constructor.
Commit migrated from https://github.com/dotnet/corefx/commit/de84b99acddc7f9bd67b55dadbb3b1c61f8cdf84
2015-07-13 20:30:53 +09: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
Clockwork-Muse 805537cce0 Move Concat from Unary operator to Binary operator folder.
Commit migrated from https://github.com/dotnet/corefx/commit/96cc6f72a369e0bd948cab859d8ca7afeed018cd
2015-06-11 18:20:26 +09:00
stephentoub 71b1c2c7cc Remove usage of ArrayT<T>
ArrayT<T> was a temporary workaround for some performance issues during the implementation of .NET Native.  Those performance issues have been fixed and the workaround is no longer needed.

This commit removes all usage of ArrayT<T> from the code currently on GitHub. The ArrayT.cs file itself is left to avoid breaking any libraries that haven't yet been ported to GitHub when the mirror moves these changes back internally.


Commit migrated from https://github.com/dotnet/corefx/commit/54ec4d0ad3c13856e254368f9e65c74e1d90358a
2015-06-10 22:27:38 -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
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 Mellino 1d600c2909 Merge pull request dotnet/corefx#1809 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/e9b144e6882b972fbca043f5f5b156ff45813c5f
2015-05-21 20:46:11 -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
Jeremy Kuhne e5f55716db Make tools packages.config host platform specific.
Commit migrated from https://github.com/dotnet/corefx/commit/13f9e121ad8e1c6a7d7cb0e4be4a9c5cdc814094
2015-05-20 14:09:51 -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
Stephen Toub 208b402452 Replace more Contract.Asserts with Debug.Asserts
A few more Contract.Assert calls have snuck in.  Continuing on our policy of standardizing on Debug.Assert for asserts, replacing all of them.  The only Contract.Assert calls that currently remain in the repo after this are those used in System.Diagnostics.Contracts tests.


Commit migrated from https://github.com/dotnet/corefx/commit/f70d30a0fe9b3ebe429a603e69457faa7605dcb9
2015-04-29 08:38:07 -04: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
Abdurrahman Köken 08c9a75241 some redundant and unreachable code removed
Commit migrated from https://github.com/dotnet/corefx/commit/108ba17d99760207264f0b6e8e625c14ba715cda
2015-03-28 19:18:26 +02: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