Commit Graph
585 Commits
Author SHA1 Message Date
Tarek Mahmoud Sayed a5a1c845fd Getting the infrastructure fot NetFX test runner inplace (dotnet/corefx#16194)
* Getting the infrastructure fot NetFX test runner inplace

This change will enable running the tests with NetFX.
Note that we still need to go through all tests and fix any issues there like assembly binding issues or the test is written in way that not suitable for the desktop runs

The change also include some fixes in return the src and test sources compile back with NetFx

* Small fixes


Commit migrated from https://github.com/dotnet/corefx/commit/ebac7976d3e1f946989a3c4e01526f94f4ed418e
2017-02-15 11:43:22 -08:00
Tarek Mahmoud Sayed 96f3a77ac5 Fix hidden overflow issue in encoding code (dotnet/corefx#16160)
When enabling overflow/underflow compilation flag globally we found one of the System.Text.Encoding.CodePages tests is failing.
The reason is we have some method that can adjust a byte pointer by some int value, when passing -1 to this method the calculation of adjusted pointer value becomes wrong when the overflow/underflow flag is wrong.
the operation is carried with 8 bytes registers so the overflow and underflow is not detected and no exception is thrown. here is some example of the generated code with and without the overflow check:

with overflow/underflow check is on
            _bytes += count;
00007FFF46E67D76  mov         rax,qword ptr [rbp+50h]
00007FFF46E67D7A  mov         edx,dword ptr [rbp+58h]  <<< edx = -1
00007FFF46E67D7D  mov         edx,edx
00007FFF46E67D7F  add         rdx,qword ptr [rax+48h]  <<< wrong unexpected value
00007FFF46E67D83  jae         00007FFF46E67D8A
00007FFF46E67D85  call        00007FFFA65AFBD0
00007FFF46E67D8A  mov         rax,qword ptr [rbp+50h]
00007FFF46E67D8E  mov         qword ptr [rax+48h],rdx

with overflow/underflow check is off

00007FFF46E877D6  mov         eax,dword ptr [rbp+58h] <<< eax = -1
00007FFF46E877D9  movsxd      rax,eax
00007FFF46E877DC  mov         rdx,qword ptr [rbp+50h] <<< right expected value
00007FFF46E877E0  add         qword ptr [rdx+48h],rax

Commit migrated from https://github.com/dotnet/corefx/commit/10733b7bb84d6132f4ac6fd83f3405f3ebd689a6
2017-02-14 15:09:47 -08:00
Eric St. John ba03538d7c Make pkgprojs reference *proj rather than builds
Commit migrated from https://github.com/dotnet/corefx/commit/0ede35ef512ac16b5dabe8c6b7b3d7d54c1c0ddb
2017-02-14 09:52:02 -08:00
Eric St. John cc939555ea Remove pkg .builds files
Commit migrated from https://github.com/dotnet/corefx/commit/361a62675ad474ac7a6c593becbc35f2cf48e6a3
2017-02-14 09:52:01 -08:00
Jan Kotas 9af9e339e2 Cleanup netstandard ifdefs and conditions (dotnet/corefx#16072)
* Cleanup netstandard conditions in csproj files
* Cleanup netstandard17 ifdefs
* Disable failing tests

Commit migrated from https://github.com/dotnet/corefx/commit/608267af43311b131d20e4111477ffb1109233a0
2017-02-11 21:40:35 -08:00
Dennis "D.C." Dietrich a841a37279 Marking code as unchecked (pt 5)
Marking code that may intentionally lead to over or underflows with
unchecked in preparation of turning on CheckForOverflowUnderflow for
all projects (issue dotnet/corefx#3140)


Commit migrated from https://github.com/dotnet/corefx/commit/05c544cb5fe109357d61d1391b3ab4860a5b2eaf
2017-02-10 01:47:19 +01:00
Jose Perez Rodriguez d9c497be12 Prepare uap package (dotnet/corefx#15866)
Prepare uap package

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
Tarek Mahmoud Sayed 77cad86b1e Remove versioned configuration from test projects (dotnet/corefx#15879)
The changes onclude some other minor clean up in the test project files

Commit migrated from https://github.com/dotnet/corefx/commit/62212cca900081173fce70991c3a0b30393994a3
2017-02-06 13:52:11 -08:00
Justin Van Patten 90e7825333 Avoid unnecessary branches when fixing non-null/empty arrays (dotnet/corefx#15597)
* Avoid unnecessary branches when fixing non-null/empty arrays

* Address PR Feedback


Commit migrated from https://github.com/dotnet/corefx/commit/bfac45af5dddcbd70b6935fcf92b4b8755f3cd1c
2017-02-04 16:29:55 -05:00
Wes Haggard f2fd0ea78a Update Solution files to use windows path slashes.
Commit migrated from https://github.com/dotnet/corefx/commit/f8ba7c412d06d8e4d4e6278502d4dd771a0f10bb
2017-02-03 16:31:48 -08:00
Eric St. John c2dc83e56a Sync BuildConfiguration with project PropertyGroups
Commit migrated from https://github.com/dotnet/corefx/commit/758a0e16e8c5af8741d14043f4bef1d15a79a377
2017-02-03 08:34:24 -08:00
Tarek Mahmoud Sayed 7395af32ad Enable compiling the test projects against the configuration (dotnet/corefx#15743)
* Enable compiling the test projects against the configuration

The tests were compiled using the vertical configuration and not the best configuration picked from Configurations.props. this change is fix that and have all test projects configured accordingly.
This change ensuring netcoreapp runs successfully and we'll have another rounds later for other configurations like netfx, UAP...etc.

* Fix openssl test project on Linux distros

* Update the project configurations

* Update VS solution files

* update solution files


Commit migrated from https://github.com/dotnet/corefx/commit/e79912f8b77bc22abfd85e94b74c06e5d99e8381
2017-02-02 17:54:40 -08:00
Wes Haggard c4e17cd362 Update all solution files using solution generation tool
Commit migrated from https://github.com/dotnet/corefx/commit/a822a266821cf79df96cdd77d2a3d44f1510d9a0
2017-02-02 15:44:45 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Jose Perez Rodriguez a840e703dd Updating VS Configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8e7497f825856eddfd84f81fc4afc0104fb917b0
2017-01-31 15:10:43 -08:00
Jose Perez Rodriguez f7c237e4e2 Adding missing Configurations for uap
Commit migrated from https://github.com/dotnet/corefx/commit/16ceba583604b00f12a173a8f3d218584ec2b0ee
2017-01-31 15:08:05 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Eric St. John 3a15f3acd6 Fix src projects for appropriate ref folder
After the change to use the appropriate references for a configuration
we needed to make sure that every library has a versionless targetgroup
so that it can build in the source build scenarios without requiring
external packages from NuGet.

For any library that is part of netstandard, its implementation should
not build against netstandard

For any library that is part of the imlpementation closure of netstandard,
its implementation should not build against netstandard (else we'd have cycles).

OpenSSL must keep its netstandard ref, however it has NETCoreApp specific API
dependencies. See https://github.com/dotnet/standard/issues/186.  As such we
need to cross-compile both src and ref for NETCoreApp.  I've moved the not-
supported assembly to be the 'netstandard' implementation.


Commit migrated from https://github.com/dotnet/corefx/commit/28097ca87cc2e8bcf7760f05732464b2c00eeaa4
2017-01-30 11:14:08 -08:00
Eric St. John d8824893ff Fix ref configurations for appropriate ref folder
For any ref that can build on top of NETStandard it should.


Commit migrated from https://github.com/dotnet/corefx/commit/3733239be954dcd9179df7d196f8a3c95e3b868b
2017-01-30 08:39:35 -08:00
Jose Perez Rodriguez dd708b105d Adding missing Configurations.props for refs and fixing the existing ones (dotnet/corefx#15291)
Adding missing Configurations.props for refs and fixing the existing ones

Commit migrated from https://github.com/dotnet/corefx/commit/2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b
2017-01-19 16:38:55 -08:00
Eric St. John 02b6743d19 Remove PackageTargetFramework
This property is largely obsolete and replaced with NuGetTargetMoniker
where its needed.

I've also cleaned up mentions of this and validation suppression around
it in projects that will never be packaged.

PackageTargetFramework remains in projects that will be packaged and
duplicate their asset in multiple folders,
eg: netstandard1.0;portable-net45+win8+wp8+wpa81


Commit migrated from https://github.com/dotnet/corefx/commit/8590e419f6639d9d5eabdbcb916e62fb1656d30e
2017-01-18 14:02:30 -08:00
Karthik Rajasekaran 4bbdadd88a Update project configuration and sln files (dotnet/corefx#15182)
* Add ValidateVSConfigurations

* Update project config and sln files.


Commit migrated from https://github.com/dotnet/corefx/commit/f6ab339f446e37505f93ef9f430801fa1dcc05b8
2017-01-17 14:31:23 -08:00
Jose Perez Rodriguez 24a5aef91d Merge master into dev/eng
Commit migrated from https://github.com/dotnet/corefx/commit/a9dd06b73bdd71038217bb263decf2b7285fb8db
2017-01-12 10:09:09 -08:00
Tarek Mahmoud Sayed 3c27011491 Fix Encoding.CodePages test on desktop (dotnet/corefx#15079)
* Fix Encoding.CodePages test on desktop

* Better comment


Commit migrated from https://github.com/dotnet/corefx/commit/cd7cda833aad27c371ca14a2ee70e68116a7927f
2017-01-11 15:10:17 -08:00
dotnet bot fd2b99ee2a Update CoreClr, CoreFx, ProjectNTfs to beta-24911-02, beta-24911-02, beta-24911-00, respectively (dotnet/corefx#15071)
Commit migrated from https://github.com/dotnet/corefx/commit/f4dbd9ba2d8ae56b5960a5030a2bf0328fa37b3f
2017-01-11 09:11:26 -08:00
Alex Perovich ae1810f29c Automated rename of tfm specific files
Commit migrated from https://github.com/dotnet/corefx/commit/ca330455c9b884ffcca5b8b98d28a129e2248fe6
2017-01-10 16:20:59 -08:00
Alex Perovich 573869c47f Automated update of ns1.7->ns2.0 and nca1.1->nca2.0
Commit migrated from https://github.com/dotnet/corefx/commit/1f8b5264a8156f91c48b2dc344d5410ee6f574cb
2017-01-10 16:20:42 -08:00
Alex Perovich c3087a2ed5 Manual changes for ns2.0 rename
Commit migrated from https://github.com/dotnet/corefx/commit/7bba15c1d2518d3f0bb85c40ed87322edfdf87eb
2017-01-10 16:20:29 -08:00
Jose Perez Rodriguez c65aa91391 [dev/eng] Sorting and trimming Reference items in csprojs (dotnet/corefx#15035)
Sorting and trimming Reference items in csprojs


Commit migrated from https://github.com/dotnet/corefx/commit/d1a6358e7a6b1bc04223885c860701209d52a7e8
2017-01-10 13:24:35 -08:00
dotnet bot 250715866c Update CoreClr, CoreFx, ProjectNTfs to beta-24910-02, beta-24910-02, beta-24910-00, respectively (dotnet/corefx#15019)
Commit migrated from https://github.com/dotnet/corefx/commit/24bc3ffa34e5da233c98389309c4d68a4382b457
2017-01-10 08:50:42 -08:00
dotnet-bot 0a8bc1232a Update CoreClr, CoreFx to beta-24909-03, beta-24909-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/4ac5235d4c33b6a040c70aa9c9ed0a9294f7ef75
2017-01-09 17:27:36 +00:00
dotnet-bot 88e6031b90 Update CoreClr, CoreFx, ProjectNTfs to beta-24909-02, beta-24909-01, beta-24909-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d7e3e57699a54415092203f9baf81c29b1da3baa
2017-01-09 09:40:09 +00:00
dotnet-bot f50c7ffedd Update CoreClr, CoreFx to beta-24907-02, beta-24907-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/fb76aa1fb9c9a999eff950ba0caa46f50cb4356b
2017-01-07 16:11:20 +00:00
dotnet bot 2d69a1eec5 Update CoreClr, CoreFx to beta-24906-04, beta-24906-03, respectively (master) (dotnet/corefx#14944)
* Update CoreClr, CoreFx to beta-24906-04, beta-24906-03, respectively

* Fix build break due to version updates


Commit migrated from https://github.com/dotnet/corefx/commit/9064de8ce82634fddfc0ca326422957efdf2390f
2017-01-06 15:46:20 -08:00
dotnet bot 4d160b84df Update CoreFx to beta-24906-02 (dotnet/corefx#14932)
Commit migrated from https://github.com/dotnet/corefx/commit/2865f5bf0082830824b03e279eafaa8cf5652b0d
2017-01-06 08:55:46 -08:00
dotnet-bot 6cb76fa118 Update CoreClr, CoreFx, ProjectNTfs to beta-24906-01, beta-24906-01, beta-24906-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d88d329d9e511938efac9ee177824e2d7f4033f9
2017-01-06 04:18:15 +00:00
Jose Perez Rodriguez 846d8ab24b Merge branch master into dev/eng
Commit migrated from https://github.com/dotnet/corefx/commit/44b68e694948065c1b61457cec125d3d64c1fa22
2017-01-05 14:03:56 -08:00
dotnet bot 9a413a6bca Update CoreFx to beta-24905-02 (dotnet/corefx#14892)
Commit migrated from https://github.com/dotnet/corefx/commit/48661a20d332cc19ae7cecaf69ab0e95a2abc50a
2017-01-05 10:58:29 -08:00
dotnet bot fc9cc043d3 Update CoreFx, ProjectNTfs to beta-24905-01, beta-24905-00, respectively (dotnet/corefx#14882)
Commit migrated from https://github.com/dotnet/corefx/commit/93d99e8c797e311059f822036e7598fe58d71e3e
2017-01-04 21:27:48 -08:00
dotnet-bot f6c2208f04 Update CoreClr, CoreFx, ProjectNTfs to beta-24904-02, beta-24904-01, beta-24904-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/81832da776d1502b0a68219cba6b8cbaf9399ed6
2017-01-04 09:48:26 +00:00
Eric Mellino dd3d24027d Add Configurations.props files for test projects, include tests in build.proj (dotnet/corefx#14663)
* [WIP]Created src\tests.proj which is mostly building all tests

* Convert test project .builds to Configuration.props

* Fix test paths in targetingpack.props, move test-runtime.

* Move test-runtime under external.
* Rename RuntimeDir->RuntimePath in targetingpacks.props and
  Xunit.Runtime.depproj.
* Remove test-runtime project.json from the SupplementalTestData list in
  dir.targets.

* Remove XUnit.Runtime.depproj from tests.proj

* Convert test .builds files to Configuration.props.

* Revert "Convert test project .builds to Configuration.props"

This reverts commit dotnet/corefx@1efc4d9a02.

* Fix compilation error in System.Collections.Concurrent.Tests

* Fix condition in System.Collections ref project

* Fix two more Collections test project issues

* Add Configuration.props for System.Collections ref

* Fix TargetGroup conditions in System.Collections.Tests.csproj.

* Fix compilation problems with NameResoltion.Pal.Tests.

* Fix compilation errors in SqlClient Stress tests

* Fix IO.Compression.Performance tests compilation

* Fix compilation and configurations of System.Net.Http.Unit.Tests.csproj.

* Fix compilation issues in System.Private.Xml.Linq tests

* Disable XsltScenarios.Tests project, like it was before.

* Fix missing DefineConstants for System.Linq ref project.

* Fix compilation of System.Net.Primitives.Pal.Tests.csproj

* Fix compilation of System.Net.Primitives.UnitTests.Tests.csproj

* Fix compilation of System.Security.Cryptography.Cng.Tests.csproj.

* Fix compilation of System.Net.Primitives reference project

* Fix compilation of System.Net.Security ref project

* Fix compilation of SYstem.Net.Security.Tests.csproj

* Fix configuration of X509Certificates ref project

* Fix compilation errors in System.Net.Http.Unit.Tests.csproj

* Fix Common.Tests.csproj

* Fix System.Diagnostics.Debug.Tests.csproj

* Fix Microsoft.Win32.Registry.Tests.csproj

* Add runtime.native.System.Data.SqlClient.sni to external project

* Fix System.Diagnostics.TraceSource.Tests.csproj

* Fix System.IO.Compression.Performance.Tests.csproj

* Move supplemental test data into test-runtime/project.json

* Fix System.IO.FileSystem.Watcher.Tests.csproj

* Fix System.IO.FileSystem.Tests.csproj

* Fix System.IO.Pipes.AccessControl.Tests.csproj

* Fix System.IO.MemoryMappedFiles.Tests.csproj

* Fix System.IO.Pipes.Tests.csproj

* Fix System.Json.Tests.csproj

* Add missing supplemental test data for net security tests

* Fix resource names in System.Xml.XPath.XDocument.Tests.csproj

* Fix Assembly.Location test case

* Fix assembly loading paths in DefaultLoadContextTest.cs

* Fix issues in System.Runtime.Loader.Tests.csproj

* Fix RootNamespace in ResourceManager tests

* Mark OpenSSL tests as unsupported on Windows

* Fix RootNamespace in System.Xml.XPath.Tests.csproj

* Fix RootNamespace in System.Xml.XPath.XmlDocument.Tests.csproj

* Fix System.IO.Compression.Tests.csproj

* Add missing Configurations.props files for System.Net projects

* Fix compilation issues in WinHttpHandler tests

* Add fixes and a workaround for Linq.Expressions tests

* Add workaround for System.Runtime.Tests

* Use extension methods explicitly in Ref.Emit tests

* Hook up test projects into build

* Fix build configuration of Crypto.Primitives for netcoreapp

* Enable VB tests outside Windows

* Enable Mail tests outside windows

* Don't run Unsafe tests outside windows

* Don't build Unsafe tests outside Windows

* Don't build WebServer project outside of Windows.

* Fix corerun path for Unix tests.

* Fix casing of 'Native' directory in NETCoreApp private pkgproj

* Remove runtime-specific stuff from Xunit.Runtime.depproj

* Move tests into a separate project ('tests.msbuild') which isn't built in build.proj

* Remove duplicate types from NameResolution.Pal tests

* Skip tests in a project if there is no compatible configuration.

* Include internal socket types only on Windows in NameResolution tests

* Manually fix S.R.InteropServices configurations

* Rename tests.msbuild -> tests.builds

* Manually fix System.Text.Encoding.Tests.csproj configuration

* Manually fix System.Threading.Tests configuration

* Manually clean up System.Runtime.Tests.csproj

* Fix System.IO.FileSystem.Tests configurations

* Manually fix System.Globalization.Tests configurations

* Manually fix System.IO.Pipes.Tests configurations

* Manually fix System.IO.Compression.Tests configurations

* Manually fix System.Runtime.Extensions.Tests configurations

* Manually fix System.IO.MemoryMappedFiles.Tests configurations

* Manually fix S.Diagnostics.Process.Tests configurations

* Manually fix System.ComponentModel.TypeConverter.Tests configurations

* Misc PR feedback.

* Use HostRunnerName instead of HostRunner in Process tests

* Fix configurations for S.ServiceProcess.ServiceController.Tests

* Revert to using ConfigurationErrorMsg to check if tests should be skipped.

Configuration still defaults to 'Debug' even if there is no valid configuration.


Commit migrated from https://github.com/dotnet/corefx/commit/2c0352ec38f9f6f602ae819f0cafb02c1908f137
2017-01-03 13:27:19 -08:00
dotnet bot db5f76dc34 Update CoreClr, CoreFx to beta-24903-03, beta-24903-02, respectively (dotnet/corefx#14819)
Commit migrated from https://github.com/dotnet/corefx/commit/c379ecd7f3b53ee00521b91c4e8421e15fe6178a
2017-01-03 10:58:17 -08:00
dotnet-bot 80435753bd Update CoreClr, CoreFx, ProjectNTfs to beta-24903-02, beta-24903-01, beta-24903-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/14a3a5b6c2dce0ea80209ef3c4f34d4c6d460177
2017-01-03 09:43:53 +00:00
dotnet-bot d45b4d8506 Update CoreClr, CoreFx to beta-24902-03, beta-24902-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ecb70894ab9e82f08fb8afcfe01e1f663f10a2e5
2017-01-02 17:29:07 +00:00
dotnet-bot d3b238de6a Update CoreClr, CoreFx, ProjectNTfs to beta-24902-02, beta-24902-01, beta-24902-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d52cb08c73cdf51b363d721cfbd3299347eb6a03
2017-01-02 09:45:03 +00:00
dotnet bot a92d96c1a8 Update CoreClr, CoreFx, ProjectNTfs to beta-24829-03, beta-24829-02, beta-24829-00, respectively (dotnet/corefx#14755)
Commit migrated from https://github.com/dotnet/corefx/commit/3860fe87088c38e0093952ecfcc01f9cc01c628e
2016-12-29 11:22:00 -08:00
dotnet bot b4eb941d9a Update CoreClr, CoreFx, ProjectNTfs to beta-24828-03, beta-24828-03, beta-24828-00, respectively (dotnet/corefx#14743)
Commit migrated from https://github.com/dotnet/corefx/commit/24d0731401fa324f6f75ac711f966f488372f6c1
2016-12-28 14:32:38 -08:00
dotnet-bot 60a7566d99 Update CoreClr, CoreFx, ProjectNTfs to beta-24827-03, beta-24827-01, beta-24827-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/f7f3a2ed0b236af4d7e77cbeb4c170a5b9c3f69d
2016-12-27 19:42:49 -08:00
Tarek Mahmoud Sayed d198bb4457 Enable full Encodings on Windows Console by Default (dotnet/corefx#14649)
* Enable full Encodings on Windows Console by Default

by default .NetCore doesn't enable the codepage encoding and the app has to opt-in to the full encoding through the call
	Encoding.RegisterProvider(CodePagesEncodingProvider.Instance)
This was not a good stand for the Console specially on Windows as the Console always using encoding which is not supported by default and we had to fallback using UTF8.
In this change we are supporting the full OS encoding on Console and System.Diagnostics.Process without bringing the big encoding size cost (which is 600+ KB). The way we support it is we create an OSEncoding class wrapper which will call the OS instead of using our own encoding data.
The only restriction we’ll have is cannot use encoding fallback with OSEncoding as this will be very slow and not intuitive. But this is acceptable as usually apps don’t use the console encodings for such fallback operation. But if anyone want to do that can still register the encoding provider and get full support.

* Add Encoder/Decoder to OSEncoding in Console

* fix misspelling

* Some fixes and adding tests

* Fix corner case when buffer has only one high surrogate char


Commit migrated from https://github.com/dotnet/corefx/commit/bb068f3be887ed34e7f8bedc4c12ec4284884441
2016-12-27 13:47:04 -08:00
chcosta 692c3f7ed6 Use netcoreapp and netstandard for targetgroups (dotnet/corefx#14616)
* Use netcoreapp and netstandard for targetgroups

* Add configurations for some reference projects


Commit migrated from https://github.com/dotnet/corefx/commit/fa7a54ad6d9c785a5d68cc7ade7b4995f04f7823
2016-12-19 15:23:37 -08:00