Commit Graph
73 Commits
Author SHA1 Message Date
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 Ellis 5e8bddfa7e Update LocalizationResources for Dataflow
The build tools update 8989a2b from causes the embeded resources to
have new names, so the metadata for our EventSources needs to be
updated.


Commit migrated from https://github.com/dotnet/corefx/commit/c71f5e6e39722ae5b71e3d9f4a0eadc6b26b5eca
2015-04-15 00:10:14 -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
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
Stephen Toub e4fe1e6b55 Add tests for System.Collections.* debugger attributes
Our collection types are some of the biggest users of DebuggerDisplayAttribute and DebuggerTypeProxyAttribute.  In the past as we've done refactorings, we've broken these on multiple occasions, and such breaks are often only discovered later on by someone using the types in the IDE.

This change adds some basic tests to exercise these debugger attributes, verifying their existence, that fields/properties they refer to exist, that properties on type proxies don't throw exceptions, etc.  We already had some debugger attribute tests in the System.Threading.Tasks.Dataflow library's tests; I've extracted those into some common helpers which I then use in the various test projects.

These helpers could be used in more test projects in the future.  They could also be expanded to cover more scenarios, as desired.


Commit migrated from https://github.com/dotnet/corefx/commit/f98612e1278908ad3998c90f982e8d1b4c44c320
2015-03-16 16:40:07 -04: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 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
Stephen Toub 116b16bc0a Fix Dataflow ETW provider
Dataflow's ETW provider is broken due to not having the correct localized resource name; attempting to enable ETW tracing will cause the library to fail with resource-related exceptions.

This commit fixes that and adds some basic ETW tests to ensure that the EventSource is properly tracing events.


Commit migrated from https://github.com/dotnet/corefx/commit/d58775a1dcc1897ed5a21bcc58bf1aa4b8fd2bde
2015-02-22 08:27:18 -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 b5fe272618 Fix typos in test method names
Commit migrated from https://github.com/dotnet/corefx/commit/70052cf7300e6366d00b01e60e74c18398a1fecf
2015-02-18 14:38:13 -08: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
Stephen Toub 8cc26c6cc2 Scrubs [ComVisible] attribution from CoreFX library sources
Commit migrated from https://github.com/dotnet/corefx/commit/9189f0a7f60f217a8cfec2d4bdafaf7132d6d067
2015-02-16 13:20:46 -05: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
Stephen Toub 214d0f8c29 Merge pull request dotnet/corefx#742 from ellismg/contract-to-debug-assert
Convert Contract.Assert to Debug.Assert.

Commit migrated from https://github.com/dotnet/corefx/commit/cb9daab7806cd906a1a0abb856e371016f2040e8
2015-02-11 18:19:34 -05:00
Nick Guerrera 9993ab6401 Merge branch 'v1.0' into merge-v1.0
Conflicts:
	src/System.Collections.NonGeneric/tests/ReadOnlyCollectionBase/ReadOnlyCollectionBaseTests.cs
	src/System.Collections.NonGeneric/tests/Stack/Stack_Clone.cs
	src/System.Collections.NonGeneric/tests/Stack/Stack_ToArray.cs
	src/System.Collections.NonGeneric/tests/Stack/Stack_get_SyncRoot.cs
	src/System.Xml.XDocument/tests/axes/Axes.Tests.csproj


Commit migrated from https://github.com/dotnet/corefx/commit/1658a59303d550dc25621bc7c2f73180b9951c6b
2015-02-11 11:55:54 -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
Stephen Toub a5fb44e68a Remove a faulty assert in a BufferBlock negative test
Commit migrated from https://github.com/dotnet/corefx/commit/50b881f494a3dd2b4044fbe37c8ace1feee43cb6
2015-02-10 01:20:20 -05: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
Nick Guerrera 96ee8ecc84 Merge pull request dotnet/corefx#688 from dotnet/v1.0
Merge v1.0 -> master

Commit migrated from https://github.com/dotnet/corefx/commit/bd08ac4fe67dd91dac06681a536683f1baf1dada
2015-02-07 15:05:35 -08:00
Stephen Toub e11cf0c397 Merge pull request dotnet/corefx#669 from stephentoub/more_dataflow_tests
Replace dataflow "hardening" tests

Commit migrated from https://github.com/dotnet/corefx/commit/64ac380e7775bdab24361e8da6d1c8c540fbe31d
2015-02-06 17:40:22 -05:00
Stephen Toub eb6f110122 Replace dataflow "hardening" tests
The existing "hardening tests" were duplicative of a bunch of things covered once the rest of the dataflow tests were rewritten.  They also involved lots of timeouts that made them unstable, especially in a lab environment. I'm deleted the whole file and added some additional tests throughout the rest of the suite to make up for a few remaining deficiencies.  I also removed a bit of dead code from the product.  Code coverage is not at ~93% (after ignoring source like the copy of ConcurrentQueue that's included).


Commit migrated from https://github.com/dotnet/corefx/commit/3cdc8dd1f28807eec703993885d9f4be5e17003d
2015-02-06 15:24:16 -05:00
Stephen Toub 60764de510 Remove faulty assert in ActionBlock test
The test was asserting that a Post would always be succesful, but the test
was purposefully faulting the block, which could (by design) cause Posts
to fail.


Commit migrated from https://github.com/dotnet/corefx/commit/5d5e03961ab8d89f679936d93cb55b1aaebe3746
2015-02-06 09:48:08 -05: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 6017874a92 Merge pull request dotnet/corefx#618 from stephentoub/null_target_task
Avoid caching incomplete task in DataflowBlock.NullTarget

Commit migrated from https://github.com/dotnet/corefx/commit/a44e90353a6dee81955f6ea98e189ce22c23168a
2015-02-04 08:42:11 -05:00
Jeremy Barton b561c6ab1b Remove "TestClosureUsage" test
The TestClosureUsage test is getting different results on the CI system
and my local system.  It has too much variability on system state, and
therefore isn't very helpful in diagnosing problems.


Commit migrated from https://github.com/dotnet/corefx/commit/73044647602098e4049d67b27d3114b4e6f80352
2015-02-03 16:51:13 -08:00
Jeremy Barton 5e346a1e6f Update the expected count of display classes in TestClosureUsage
The conditions that are being tested for do not add up to the same count that the message displays, just due to the way the test is structured.


Commit migrated from https://github.com/dotnet/corefx/commit/fe8193d3d2ed7ce8af66f839500e388d74cdf6b0
2015-02-03 16:00:24 -08:00
Jeremy Barton 716a2df6c1 Update failing [OuterLoop] tests.
One of the tests was updated to have new values, two others were tagged as known issues for https://github.com/dotnet/corefx/issues/614


Commit migrated from https://github.com/dotnet/corefx/commit/74101f6e754eebae15dc044f00622a9107eec632
2015-02-03 14:49:07 -08:00
Stephen Toub 6b992655a2 Avoid caching incomplete task in DataflowBlock.NullTarget
In general, code should avoid caching incomplete Tasks in statically rooted locations or else risk a potentially serious memory leak.  Today in Dataflow, the Task returned by DataflowBlock.NullTarget<T>()'s Completion is a statically-cached, never-completing task, which means that any continuations created off of it will be leaked for the duration of the app.  This commit changes DataflowBlock.NullTarget<T>() to return a Task specific to that block rather than one statically used across all blocks.


Commit migrated from https://github.com/dotnet/corefx/commit/031a4e1f4a2c3948eb9726b317146d2e0a2d29fa
2015-02-03 15:32:42 -05:00
Stephen Toub 0b87046404 Remove faulty asserts in dataflow tests
Several ctor tests were asserting that block.Completion.IsCompleted was false, but also creating the block with a canceled cancellation token.  That's erroneous.  But this wasn't caught initially because there's a race.


Commit migrated from https://github.com/dotnet/corefx/commit/a5fe0aaa5124adffe655f3700d878c2494c01e33
2015-01-30 13:49:09 -05:00
Nick Guerrera 51211e7424 Merge pull request dotnet/corefx#550 from nguerrera/set-package-build
Bump package versions to 22512

Commit migrated from https://github.com/dotnet/corefx/commit/368628a8d851d2c1887eff49cc4070a405f9e14a
2015-01-29 10:41:51 -08:00
Stephen Toub 7a146318c5 Overhaul TPL Dataflow Tests
This overhauls the System.Threading.Tasks.Dataflow test suite, rewriting most of the tests while retaining pieces here and there that made sense.

A large portion of the tests were marked as OuterLoop because they involved long and flaky timeouts, were unreliable, etc. After the rewrite, the vast majority of tests are inner loop, ~260 [Fact]s instead of ~40 (the suite previously rolled a bunch of tests into a single [Fact], tracking their success in a local Boolean), with only a handful remaining as [OuterLoop]. I've not scrubbed through the ConcurrentTests.cs and HardeningTests.cs files, which are still all outer loop and should be reviewed and updated in the future.

With this change, product source code coverage via inner inner loop tests jumps from ~60% to ~90%, while also reducing LOC by several thousand lines in the tests. Further, on my machine the inner loop tests now currently run in ~3 seconds.


Commit migrated from https://github.com/dotnet/corefx/commit/f6515a70353b5584a48fb6a698b575163ff40279
2015-01-28 22:40:04 -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
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
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
Stephen Toub 2c958f9c8c Explicitly type variables according to guidelines
Changed usage of 'var' in TPL Dataflow to match with .NET Core guidelines.  'var' is now only used when the right-hand side of a variable declaration is a constructor, a cast, or factory method where the resulting type is obvious.


Commit migrated from https://github.com/dotnet/corefx/commit/dca17056f7cf8a896d3d638a103dd344e4724bcd
2015-01-11 18:18:40 -05:00
Stephen Toub 66596c6a72 Remove defunct PRENET45 from TPL Dataflow
This compilation constant is legacy from when the library was building in CTPs for .NET 4, but it's not been used for a while and the library won't actually build as written with the flag set.


Commit migrated from https://github.com/dotnet/corefx/commit/ad16f98bdabbc7cf1097346eee590ddab4d051b5
2015-01-11 09:37:39 -05:00
Stephen Toub 9adfc54139 Fix field names in TPL Dataflow
A bunch of field instance names still had the "m_" prefix instead of just "_".  Others had been updated but were referenced in comments and those comments weren't changed to use "_" instead of "m_". Etc.


Commit migrated from https://github.com/dotnet/corefx/commit/9fd1337cd79bd00084e69a173f74d46f7de042b6
2015-01-09 23:41:59 -05: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 81b8a3b8e8 Merge pull request dotnet/corefx#332 from ericstj/fileSystem
Add System.IO.FileSystem and System.IO.FileSystem.Primitives

Commit migrated from https://github.com/dotnet/corefx/commit/377dde76c5df105a7bab2c0a3002c0d835ff1b07
2015-01-05 14:43:51 -08:00
Alexander Köplinger 2d555615f5 Add XML comment for the Post() method in ActionBlock.
The method is an optimization of the one in DataflowBlock,
so the comment was copied from there.


Commit migrated from https://github.com/dotnet/corefx/commit/748d4856637a122a0c06a29119735e19a0040ded
2015-01-03 17:27:27 +01:00
Alexander Köplinger aff281469e Dataflow: Fix the XPath for some doc comment includes
The XPaths pointed to wrong (nonexisting) nodes in CommonXmlDocComments.xml


Commit migrated from https://github.com/dotnet/corefx/commit/2bf5a7185fd81949da4d47a432662d8fe80989f6
2015-01-01 15:33:12 +01: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