Commit Graph
56 Commits
Author SHA1 Message Date
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
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
Tarek Mahmoud Sayed b3120f73dd Remove checked in resources generated code file (SR.cs)
After this change it is no longer required to include the resources
generated code file SR.cs inside the project tree as such files
will get automatically generated in the intermediate folder


Commit migrated from https://github.com/dotnet/corefx/commit/e7513c213c16f5ca4bd35c6c4eace534b4d94ed5
2015-03-17 16:24:08 -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
Tarek Mahmoud Sayed d52779a137 Cleanup project files from empty items with resource comments
Commit migrated from https://github.com/dotnet/corefx/commit/47b1663630ab0a6089d1a95c8d9934af3c6bc92b
2015-03-04 11:34:17 -08:00
Tarek Mahmoud Sayed 12598db216 Cleanup resources across all projects
After this change we are going to have unified model for handling resources which is we always use resx files placed under Resources folder and the code will be automatically generated in SR.cs file.
We’ll access ant string resource using the SR class (e.g. SR.ArgumentException).


Commit migrated from https://github.com/dotnet/corefx/commit/db7180f04ef9789a7f199fcd9f8c527990e14673
2015-03-04 11:34:16 -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
Pallavi Taneja 7f18e72a0c Update resource generation for libraries.
[tfs-changeset: 1422400]


Commit migrated from https://github.com/dotnet/corefx/commit/3ad583086b7b5eebfaca535fea861b871776cc3d
2015-02-26 17:55:48 -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
Maxwe11 6a98eb9ef5 Move *.sln files to the appropriate projects folders
Commit migrated from https://github.com/dotnet/corefx/commit/fb8fb441b3e5414590b8d1af4ec5f52ca52c0dff
2015-02-20 19:52:00 +02:00
Matt Johnson 9111c18563 Fix typos in local variable names
Commit migrated from https://github.com/dotnet/corefx/commit/917f4d4516e6b99e54c70b1c90849f81c8bb70df
2015-02-18 14:37:50 -08: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
Matt Ellis b17c611fe5 Replace Debug.Assert(false, ...) with Debug.Fail()
I was unable to make this change in System.Reflection.Metadata. Per
discussion with Nick, this assembly can not take a dependency on the
newer Debug contract which supports these members in order to support
runnin on some platforms (e.g. Win8P where this member is not
present).

I faced the same problem in System.Threading.Tasks.Dataflow.


Commit migrated from https://github.com/dotnet/corefx/commit/2bcb80876244b2d488b32881542a85f18ff7a5fc
2015-02-11 13:59:07 -08:00
Matt Ellis 91409b75fa Replace Contract.Assert with Debug.Assert
Fixes dotnet/corefx#682


Commit migrated from https://github.com/dotnet/corefx/commit/980e41dc6beef8caf4a4369fea2028e1c7cbaf38
2015-02-11 11:55:51 -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 f1224715bf Fix VS 2015 compiler warning that expressions are always true
CancellationToken is a struct so there is no use comparing it
to null.


Commit migrated from https://github.com/dotnet/corefx/commit/5cba8e5b489a1506bb20e32005053d20c252d299
2015-01-29 17:53:04 -08: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
Nick Guerrera 18d59d59f1 Remove PLIB ProjectTypeGuids to allow editing debug options in VS
We control the targeting centrally and we shouldn't be retargeting
from VS. With the new support for running tests on F5, it is best
to be able to see and edit the command line in the property pages.

Before this, we had an arbitrary mix of the guids being present or
not anyhow. At some point, if we need to set it, we can put it back
across the board and hopefully by then we'll have proper VS test
integration anyhow.


Commit migrated from https://github.com/dotnet/corefx/commit/da9663498c4f5e6bb663e97531afc48964ffbdd0
2015-01-22 16:30:00 -08:00
Stephen Toub 8c3c0e9b97 Re-enable PLINQ tests in build
They'd been explicitly disabled due to hangs.

Conflicts:
	src/dirs.proj


Commit migrated from https://github.com/dotnet/corefx/commit/9473004e31b3a596eb8fcb5d3448d621dd2e113d
2015-01-18 14:18:40 -05:00
Stephen Toub 4045d1153f Adjust DOP in PLINQ tests
Move to OuterLoop several tests that exercise a high degree of parallelism and thus could result in delays waiting for the thread pool to inject threads.

Also annotate the assembly to DisableTestParallelization; if multiple PLINQ queries run concurrently, they might similarly experience delays as they compete for the thread pool's threads and force more to be injected.


Commit migrated from https://github.com/dotnet/corefx/commit/5b23beba7c80e291117cf05925b052edad6090ba
2015-01-18 14:16:55 -05:00
Stephen Toub 79d5e9d911 Avoid TaskScheduler.Default in PLINQ tests
Commit migrated from https://github.com/dotnet/corefx/commit/b46a2c5881a93a88ce90802cdbb03bec4f5af03c
2015-01-18 14:16:34 -05:00
Matt Cohn 8866083943 Merge branch 'master' into netcore
Conflicts:
	build.proj
	dir.props
	src/Microsoft.Win32.Primitives/tests/packages.config
	src/System.Linq.Parallel/tests/packages.config
	src/System.Numerics.Vectors/tests/packages.config
	src/System.Threading.Tasks.Dataflow/tests/packages.config
	src/System.Xml.XDocument/tests/packages.config
	src/System.Xml.XPath.XDocument/tests/packages.config
	src/System.Xml.XPath.XmlDocument/tests/packages.config
	src/System.Xml.XPath/tests/packages.config
	src/System.Xml.XmlDocument/tests/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/c76ad5c37452cea0f2f02b2321e230f90c40172b
2015-01-12 19:02:36 -08:00
Matt Cohn 8be0f98ba2 Tests depend on updated versions of xunit packages.
The xunit project was forked to target .NET Core.  The test
compile-time dependencies and some run-time dependencies were
forked and are planned to flow upstream to xunit in the short term.

The console runner (xunit.console.netcore) is in the
dotnet/buildtools repository because it depends on a contract
(System.Console) that is not available in a portable targeting pack.


Commit migrated from https://github.com/dotnet/corefx/commit/37f34aa3b9b281bf78a4e00ff3ebbe8da31b0f41
2015-01-06 15:40:08 -08:00
Eric StJohn 4869f04170 Updating all projects to latest build of contract packages.
Commit migrated from https://github.com/dotnet/corefx/commit/2bf5569e0e1f45f8e3e547689d57231d3f61e887
2014-12-23 11:25:34 -08:00
Wes Haggard 75af051114 Merge pull request dotnet/corefx#305 from akoeplinger/fix-msbuild-toolsversion
Canonicalize MSBuild ToolsVersion to 12.0

Commit migrated from https://github.com/dotnet/corefx/commit/7cd5d73516e5206ef27aecdec724e0413e8f882f
2014-12-20 10:24:28 -08:00
Wes Haggard 27cb98e29a Switch all projects to resolve references from packages.config.
Commit migrated from https://github.com/dotnet/corefx/commit/08503d51d2c61861bf11c5e36da53c69aca092e1
2014-12-19 17:44:16 -08:00
Alexander Köplinger 9718807828 Canonicalize MSBuild ToolsVersion to 12.0
Right now, there's a mix of ToolsVersion 4.0 and 12.0 in the projects.
We should make sure that it's 12.0 everywhere.


Commit migrated from https://github.com/dotnet/corefx/commit/57cffc78d6f28e760872325c37306a7cb4aa8e47
2014-12-19 22:16:24 +01:00
Wes Haggard e6b880e80d Fix up a few bad merges and add settings that moved across files.
Commit migrated from https://github.com/dotnet/corefx/commit/932a43839ac6d6bf2a38934f3b5fde42b7629118
2014-12-17 22:02:10 -08:00
Wes Haggard 9e1b10e6f4 Switch to importing dir.props/dir.targets using GetDirectoryNameOfFileAbove.
This commit also updates the new System.IO.Pipes.csproj to follow the pattern.


Commit migrated from https://github.com/dotnet/corefx/commit/5d7072c5caa5cd9aef476221613c78bcc60a003b
2014-12-17 21:01:52 -08:00
Wes Haggard 6ed4d92fdb Remove mscorlib reference from System.Linq.Parallel.Tests.csproj.
The mscorlib reference is no longer needed as it is automatically added
by dir.targets now.


Commit migrated from https://github.com/dotnet/corefx/commit/e6a02d9f3c61d9af66d0de284b501f8f96835cfa
2014-12-17 20:54:41 -08:00
Wes Haggard f97970f38c Rename the System.Linq.Parallel test folder from "test" to "tests" to follow
the convention.


Commit migrated from https://github.com/dotnet/corefx/commit/cba1b5d4af9bf043c885465aaa5c7ea6a7749f5c
2014-12-17 20:53:03 -08:00
Wes Haggard c143e9841f Update build to be more consistent no matter how you build it.
This is the initial change to switch to using common targets across the repo.

This change adds a dir.props and dir.targets file that each project file will
import at the top and bottom of the project to default a lot of the common properties
and targets.


Commit migrated from https://github.com/dotnet/corefx/commit/3d95f9cf6e4532df595dd1c694079415afe7d212
2014-12-17 20:43:38 -08:00
Matt Cohn 0b819af4b4 Disable 4 PLINQ tests against GitHub issue corefx/240
Commit migrated from https://github.com/dotnet/corefx/commit/e5a43059402596db6088d3d4132f853d137f73aa
2014-12-17 10:46:26 -08:00
Matt Cohn 9df466d43f Merge branch 'xunit2' into test_on_coreclr
Conflicts:
	src/System.Numerics.Vectors/tests/Matrix3x2Tests.cs
	src/System.Numerics.Vectors/tests/Matrix4x4Tests.cs
	src/System.Numerics.Vectors/tests/PlaneTests.cs
	src/System.Numerics.Vectors/tests/QuaternionTests.cs
	src/System.Numerics.Vectors/tests/Vector2Tests.cs
	src/System.Numerics.Vectors/tests/Vector4Tests.cs
	src/System.Reflection.Metadata/tests/TestUtilities/WorkItemAttribute.cs


Commit migrated from https://github.com/dotnet/corefx/commit/09cd6585b56197d9d78fef7fcb9736642eb5509e
2014-12-16 15:16:18 -08:00
Stephen Toub f72a4fa449 Fix multiple projects for optimizations, debug/trace, etc.
System.Linq.Parallel.csproj wasn't outputting symbols, and it didn't have optimizations enabled in Release.

System.Numerics.Vectors.csproj was setting TRACE in Release builds but not in Debug builds.

System.Text.RegularExpressions.csproj wasn't setting either DEBUG nor RELEASE constants in either Debug/Release builds, it didn't have optimizations enabled in Release, and it wasn't generating symbols in either.

The XML libraries were't setting DEBUG/TRACE in either Debug/Release builds, weren't enabling optimizations in Release builds, and weren't generating symbols in either.

DEBUG is important in almost all of these libraries, as they use Debug.* for asserts and the like.  Symbol generation is important for debugging.  Optimizations are obviously important (but just to verify I saw significant performance wins in multiple libraries just from turning this on in release).  TRACE isn't really important, as none of the libraries do release tracing, but I thought it good hygiene to enable it.


Commit migrated from https://github.com/dotnet/corefx/commit/f0f17dfdb834cb5eca94febc98ee6f8c8638e64f
2014-12-13 08:37:17 -05:00