Commit Graph
469 Commits
Author SHA1 Message Date
Viktor Hofer 5f98ba6a2b Enable project restore for test projects (dotnet/corefx#38151)
* Factor out repo restore into seperate props/targets

* Use configuration system msbuild sdk

* Remove XUnit.Runtime.depproj

* Remove TargetGroup usages in test projects

* Fix ILLink configuration

The ILLink package contains netcoreapp2.0 assets which are compatible
with netstandard2.0. Removing the old TargetFramework to restore
successfully.

* Remove usages from TargetGroup in Directory.Build.props

* Remove dead net4* configurations

* Change tests.builds to tests.proj sdk proj

* Make externals dir proj an sdk project

* Consume Microsoft.DotNet.CoreFxTesting as an msbuild sdk

* Use runtimeconfig.template.json

* Remove SupplementalTestData

* Map shared framework version to product version

* Stop binplacing tests

* Move some tool depprojs to targets during restore

* Remove dead code

* Use PackageReference instead of RefFromRuntime in test

* Disable using an apphost

* Copy compression testdata manually cause unicode bug

* Remove target batching in optimizationData

* Reference packaging tools from CoreFx.Private.TestUtilities


Commit migrated from https://github.com/dotnet/corefx/commit/c4c1985531cc1f25c805bbc4801b85c98e0dfee0
2019-06-15 21:27:13 +02:00
Santiago Fernandez Madero 5c5cb2ee99 Add nullable annotations to System.Threading.Thread ref assembly (dotnet/corefx#38236)
Commit migrated from https://github.com/dotnet/corefx/commit/44d305e2f0a312bb0506e0e1ef1fcafeb07b2bb1
2019-06-13 20:10:11 -04:00
Jeremy Koritzinsky a01d6d345f Delete CoreFX tests of COM lifetime control methods. (dotnet/corefx#38290)
* Delete CoreFX tests of COM lifetime control methods.

* Remove deleted files from project file.


Commit migrated from https://github.com/dotnet/corefx/commit/500e6882a78c92ecfd584bd4d8ba8e49f4410eb7
2019-06-06 22:58:07 -04:00
Viktor Hofer cacc1ff968 Remove NetNative uapaot support (dotnet/corefx#38170)
* Remove NetNative uapaot support

* Remove uapaot assets from packages

* Disable emit lightweight and ilgen version check


Commit migrated from https://github.com/dotnet/corefx/commit/ab58ff6e649852b85fdb99b15992a2fa3a7d8834
2019-06-06 21:39:46 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Santiago Fernandez Madero 5c5b7bbf70 Update to new compiler toolset by using arcade's property (dotnet/corefx#37883)
* Update to new compiler toolset by using arcade's property

* Run manual darc update


Commit migrated from https://github.com/dotnet/corefx/commit/daa005b23d4954d4a41b1663171d6ada2d960bd2
2019-05-22 21:28:22 -07:00
dotnet-maestro[bot] 1030e61c68 [master] Update dependencies from dotnet/coreclr (dotnet/corefx#37514)
* Update dependencies from https://github.com/dotnet/coreclr build 20190507.72

- Microsoft.NET.Sdk.IL - 3.0.0-preview6-27707-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview6-27707-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview6-27707-72

* Update Microsoft.DotNet.XUnitConsoleRunner

We need the fix which removes STAThread from the main routine of
xunit.console.

* Clean up the baseline for DiagnosticCounter

* Update test baseline.


Commit migrated from https://github.com/dotnet/corefx/commit/5640cde41c872e03e6a8a751fac5092e3c68b2c6
2019-05-09 07:03:22 -04:00
Koundinya Veluri 8ea83020c4 Expose and test APIs for some threading metrics (CoreFX) (dotnet/corefx#37401)
* Expose and test APIs for some threading metrics (CoreFX)

- API review: https://github.com/dotnet/corefx/issues/35500
- Depends on https://github.com/dotnet/coreclr/pull/22754, https://github.com/dotnet/corert/pull/7066

* Separate and expose pending local vs global work item count

* Remove local/global variants of PendingWorkItemCount

* Remove unrelated test

* Add test for a fix to ThreadLocal.Values property throwing NullReferenceException when disposed

Fix is in https://github.com/dotnet/corert/pull/7066

* Fix build

* Fix test

* Add API compat baselines for uapaot

* Fix test

* Use RemoteExecutor for MetricsTest

* Address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/34fe566b6f6bd739a876e7e1dc48cf631647e5d7
2019-05-09 06:44:39 -04:00
Stephen Toub a431378ac8 Nullable: System.Threading.Thread.dll
Commit migrated from https://github.com/dotnet/corefx/commit/b90aa1fa7648e221fda87ff5f90c5630dabd82da
2019-05-09 06:42:58 -04:00
Tanner Gooding 5a5ed7652a Regenerating reference sources in order to reorder enum fields (dotnet/corefx#37045)
Commit migrated from https://github.com/dotnet/corefx/commit/17382def0f680653870c31af1acf086ac41dcc0b
2019-04-23 13:40:45 -07:00
Anirudh Agnihotry bc2d80c6f4 Removed netcoreappaot configuration from corefx (dotnet/corefx#36739)
* netcoreappaot-Windows_NT regex removed

* netcoreappaot-WebAssembly;\n regex removed

* netcoreappaot-Windows_NT-Debug;netcoreappaot-Windows_NT-Release;
regex removed

* netcoreappaot; regex removed

* netcoreappaot-Debug;netcoreappaot-Release; removed

* removing rest of occurences of netcoreappaot

* deleteing the netcoreappaot apicompat files


Commit migrated from https://github.com/dotnet/corefx/commit/e9d1a10ed1d38a8b1ed599b3b5be09b8349f8ea8
2019-04-09 14:07:31 -07:00
Viktor 7e4b5f9b01 Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/817c36a05ef2d92e59ce6f5a37e2be50076361b3
2019-04-02 19:21:57 +02:00
Stephen Toub 1de0f651e4 Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing.  Also fixed the visibility on a bunch of test methods it wasn't able to access.

Commit migrated from https://github.com/dotnet/corefx/commit/475542441df2f054d5e9aa39576019775a5d2f52
2019-03-29 17:40:05 -04:00
Jan Kotas c59774b810 Delete remaining uses of RuntimeThread
Update ProjectNTfs dependency


Commit migrated from https://github.com/dotnet/corefx/commit/1f65248b2bc62b35818789e56b913ac87d794445
2019-03-20 09:31:10 -07:00
Nikita Potapenko 28f63d6f4e Fix typo (dotnet/corefx#36107)
.Net -> .NET

Commit migrated from https://github.com/dotnet/corefx/commit/d29ae79fb13b4df9078400ac49b460e011f96404
2019-03-17 15:43:21 -07:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Stephen Toub 757a2d032c Adapt corefx to recent coreclr changes
Commit migrated from https://github.com/dotnet/corefx/commit/feb6eb3db7ca0a886f08ecd1eb259e0ae8ca434c
2019-03-01 08:56:00 -05:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Filip Navara f0d7d1f8c6 Add temporary resources and copy of Thread implementation to unblock merge of shared CoreLib (dotnet/corefx#35553)
Commit migrated from https://github.com/dotnet/corefx/commit/facf731986511cb0cc0ceb181b6c7d846afa0743
2019-02-25 21:47:18 -05:00
Filip Navara d4385957b5 Move Thread to shared CoreLib (dotnet/corefx#35462)
Commit migrated from https://github.com/dotnet/corefx/commit/694eeba312046e2097c731d40f32c1cac675aa03
2019-02-20 21:23:41 -05:00
Viktor Hofer b6ef84842c Thread principal unauthenticated (dotnet/corefx#35112)
* Remove bind error for thread principal

* Disable threadpool test for uapaot

* Disable MailMessage reflection test on uapaot

* Disable ValueTask reflection tests on uapaot

* Guard System.TestEnvironment against ILC

* Revert AppDomain UnauthenticatedPrincipal change


Commit migrated from https://github.com/dotnet/corefx/commit/0424e9db4628029b3308380f26312c79912bfb42
2019-02-12 00:14:08 +01:00
Marco Rossignoli c2f7f04f76 Flow Thread.CurrentPrincipal with ExecutionContext (dotnet/corefx#34747)
* flow Thread.CurrentPrincipal with ExecutionContext

* fix netfx test

* address PR feedback

* address PR feedback

* try to make test more reliable using StartNew(), removed from NetFramework

* address PR feedback

* nit: extraline

* add null set test

* nit: extraline, again...

* rename test

* apply Stephen fix

* nit: typos

* address PR feedback

* nit: update comment


Commit migrated from https://github.com/dotnet/corefx/commit/bab35ecc6f3f94215705d109d5094c1b3c461992
2019-01-30 07:48:28 -05:00
Viktor 194fe08d90 Disable ApartmentState on UAP
Commit migrated from https://github.com/dotnet/corefx/commit/a33d75aec0daff5e6a043352d443ce6270f6660c
2019-01-24 13:05:06 +01:00
Jan Kotas 4069deba28 Allow setting Thread culture before thread start (dotnet/corefx#33576)
Fixes dotnet/corefx#33574


Commit migrated from https://github.com/dotnet/corefx/commit/0cec1456227512233144b8484d6516f323423f7c
2018-11-18 22:21:50 -08:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Viktor ff1cee711b Automatically copy runtime config files if executable
Commit migrated from https://github.com/dotnet/corefx/commit/09768a9f0e54d326bbaceec81c8b6a56e322147e
2018-10-16 10:47:41 +02:00
Jan Kotas 005c064038 Mark tests exercising CoreLib with TestRuntime tag (dotnet/corefx#32720)
Commit migrated from https://github.com/dotnet/corefx/commit/6b299367382b28ec0b9592bf5b37db48fb02cb67
2018-10-09 12:51:04 -07:00
Sam Neirinck 68b24b8b69 Cleanup MSDN URL's (dotnet/corefx#32663)
* Fix non-https msdn links

* Additional HTTPS treatment


Commit migrated from https://github.com/dotnet/corefx/commit/0bfc4f3cf62f6fc29162ad5b1b89acc14124a375
2018-10-09 11:59:36 -07:00
Morgan Brown abc0943945 Build managed code and packages for WebAssembly/netcoreappaot (dotnet/corefx#32045)
Adds support for a WebAssembly netcoreappaot configuration for building managed libraries and packages. This is enough to produce a package of libraries that CoreRT's WebAssembly implementation can consume.


Commit migrated from https://github.com/dotnet/corefx/commit/2b868f80c307a514dfafb7eb166dad3dbc2ed26b
2018-09-11 21:57:52 -07:00
Viktor Hofer b32eca7f74 Fix apartment tests for netfx due to differnet file extension
Commit migrated from https://github.com/dotnet/corefx/commit/317ddd17e185af36888d487a4cda935470e2186b
2018-09-07 22:30:34 +02:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Viktor Hofer b998fc821e Xunit 2.4 test changes
Commit migrated from https://github.com/dotnet/corefx/commit/591f0b5ba2c0ddcdad1a326eb327936cb2dd40d8
2018-08-23 19:55:27 +02:00
Viktor Hofer c527cd334d Make BaseIntermediateOutputPath project specific
Set BaseIntermediateOutputPath and IntermediateOutputPath accordingly in
proj/depprojs and add TargetFramework* props for various configurations.


Commit migrated from https://github.com/dotnet/corefx/commit/3d223d3c55e07c110b5ebb0bc7ecb225e168da15
2018-08-22 14:05:29 +02:00
Morgan Brown 5851b3de9a Add netcoreappaot target group (dotnet/corefx#30980)
Changes to add a new netcoreappaot target group, similar to netcoreapp but it builds against the .NET Native core libraries. A couple of libraries, such as System.Linq.Expressions, have aot-specific definitions that are enabled for netcoreappaot.

Commit migrated from https://github.com/dotnet/corefx/commit/3333166174e54ae9435c31e0a68a6784e9aacc41
2018-08-21 18:19:59 -07:00
Koundinya Veluri 97acd4ff10 Test a couple of fixes for apartment state issues
Depends on https://github.com/dotnet/coreclr/pull/19384

Closes https://github.com/dotnet/coreclr/issues/17822
Closes https://github.com/dotnet/coreclr/issues/17787
Closes https://github.com/dotnet/coreclr/issues/19225


Commit migrated from https://github.com/dotnet/corefx/commit/363ebdbcc8bd83e3a5663fe2e6baa6aa9e5b4564
2018-08-13 14:34:04 -07:00
Eric Erhardt 21b7a52139 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0343b37275d50fa44b8db91bd9ed8364f89600fc
2018-07-05 14:06:19 -05:00
Anirudh Agnihotry 9bd761e0a5 Lazy Initialization of Thread.CurrentPrincipal and implementing GetThreadPrincipal (dotnet/corefx#30765)
Commit migrated from https://github.com/dotnet/corefx/commit/6fb57a4bfe4504b60b3af769798b96ba15e6c842
2018-07-04 11:18:31 +02:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Koundinya Veluri e340456c5d Fix test for Thread constructor taking stack size (dotnet/corefx#29798)
* Fix test for Thread constructor taking stack size

Leave some pages worth of buffer when allocating stack space. See https://github.com/dotnet/coreclr/issues/17170.

* Fix comment

* Fix comment


Commit migrated from https://github.com/dotnet/corefx/commit/0c9ecd37fd9c9404205f195bb9ce74cce7d4fd8d
2018-05-21 15:09:03 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Koundinya Veluri d01c92a7f0 Fix thread constructor test on newer kernels (dotnet/corefx#28613)
Works around and closes https://github.com/dotnet/coreclr/issues/17170
- Works around an issue on linux-arm64 where pthread_create appears to reserve less stack space than requested without failing, and limits the max reserved stack size to the ulimit-configued value, leading to seg fault when the requested size of stack space is attempted to be used
- Fixed to write every page in the stack region that is being checked, to guarantee hitting the guard page in case of failure. The JIT's stack probe for stackalloc should cover this, https://github.com/dotnet/coreclr/issues/16827 details why that was not happening, in any case this test is not intended to test stack probing behavior, so this change makes the test a bit stronger in what it actually intends to test.

Commit migrated from https://github.com/dotnet/corefx/commit/d73eb9141ea4b8ca526881e7bbaebe5b36db0fe1
2018-04-01 04:26:11 -07:00
Wes Haggard f8801500fa Normalize project configurations (dotnet/corefx#28396)
Commit migrated from https://github.com/dotnet/corefx/commit/29b20cab377ea807eddcbc2dc5832d8d17b0bb00
2018-03-22 21:11:43 -07:00
Simon Nattress 52c8e150c1 Update UAP System.Private.CoreLib to unblock UAP builds (dotnet/corefx#27805)
* Update UAP targeting pack

To fix the flow from CoreCLR and CoreFX into TFS, update the targeting pack with a version of System.Private.CoreLib that has an updated signature for Stream.WriteAsync. This should be sufficient to re-enable uapaot builds so we can get a new set of uap packages.

* Revert "Disable uapaot builds on several projects"

This reverts commit dotnet/corefx@ebe14686a8.



Commit migrated from https://github.com/dotnet/corefx/commit/671b10bb21668d8432f066a4307c269a98a66ea8
2018-03-08 16:40:00 -08:00
Eric St. John 98c0015605 Update SLNs and projects to be in sync with configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8ce7e620e1b5001be002598f4d10d4becdd77a49
2018-03-08 08:25:31 -08:00
Jan Kotas d0978b6a66 Delete unnecesary workarounds (dotnet/corefx#27663)
Commit migrated from https://github.com/dotnet/corefx/commit/f1ba98dbb0612f08091e047eadde8688f79dd1ce
2018-03-02 18:31:51 -05:00
Stephen Toub b09ec74165 Disable uapaot builds on several projects
This was needed to get through the change of Stream.WriteAsync's return type from Task to ValueTask.


Commit migrated from https://github.com/dotnet/corefx/commit/ebe14686a89d26d1d34d359f7a636d6e9a36a624
2018-03-02 09:56:25 -08:00
Simon Nattress 0aa965eb67 Re-enable UAP builds (dotnet/corefx#27531)
* Build uapaot System.Numerics.Vectors

With `Vector<T>` now residing in System.Private.CoreLib, directly reference System.Private.Corelib instead of contracts just like netcoreapp does.

Add uapaot flavor since System.Private.CoreLib has a different strong name key on that platform.

* Make EnsureExtendedPrefixOverMaxPath available to UAP

Add the helper method `System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath` to Common\src\System\IO\PathInternal.Windows.cs. It was previously not visible to UAP since  Common\src\CoreLib\System\IO\PathInternal.Windows.cs is not included in UAP compilation.

* Keep SocketsHttpHandler out of UAP builds

SocketsHttpHandler is not supported in uap and is currently leaking into UAP builds since they've been disabled for a few weeks. Adjust the contract so it's not available to UAP, and clean the implementation assembly so SocketsHttpHandler internals don't leak out into HttpClientHandler.Core.cs.

* Fix GetAddrInfoExSupportsOverlapped UAP build break

`System.Net.NameResolutionPal.GetAddrInfoExSupportsOverlapped` uses LoadLibraryExW which is not compatible with UAP (which only supports LoadLibrary of DLLs within a container). Refactor the helper so UAP returns false.

* Revert "Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)"

This reverts commit dotnet/corefx@120dce456a.

* Revert "Disable UAP configurations in all configurations build"

This reverts commit dotnet/corefx@2202b4fd49.

* Revert "Disable UAP official builds (dotnet/corefx#26871)"

This reverts commit dotnet/corefx@ef79caf14c.

- Baseline the ApiCompat and GenFacades failures in System.Runtime.Extensions and System.Threading.ThreadPool.
- Adjust naming of files to match branch conventions
- Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.
- ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.


Commit migrated from https://github.com/dotnet/corefx/commit/c9cdfba45e62eeac28ef554d8bbdfdd620a0fd15
2018-03-01 17:59:35 -08:00