Commit Graph
553 Commits
Author SHA1 Message Date
Santiago Fernandez Madero 504fca1427 Add BinPlaceConfiguration for test projects to have a working directory per BuildConfiguration (dotnet/corefx#23633)
* With this change we will have the next behavior when building/running tests:

-When building the tests we will still bin place the test assets to the OutputDirectory (corefx\bin\OSGroup.Configuration\TestProject\TargetGroup/)

-When running the tests we will bin place the tests assets to this new TestPath which will be the TestPath. This new path will be the test's working directory where we will bin place the RunTests.cmd and necessary dependencies in tests.targets. Also the testResults.xml will be found here after the test execution.

-TestPath is set to be bin/tests/<TestProject>/<BuildConfiguration>/ (i.e corefx\bin\tests\System.Collections.Immutable.Tests\netcoreapp-Windows_NT-Debug-x64) in dir.props

-This TestPath will be added to the BinPlaceDir in FrameworkTargeting.targets when BinPlaceTest is set to true. Then in the BinPlaceFiles target the test assets will be hardlinked to the TestPath.

This will isolate every test execution per build configuration and will allow people to run the same test project for all of the supported configurations on the same repo without having to clean the repo.

Commit migrated from https://github.com/dotnet/corefx/commit/664ca9508a03483a7fb2714b55b9cba885593d90
2017-09-05 13:30:09 -07:00
Eric St. John 88ba753808 Suppress unused field warnings introduced with new CSC
The new buildtools brought CSC 2.0.0.61404 which is emitting warnings
for unused events and fields.  Suppress these for now.


Commit migrated from https://github.com/dotnet/corefx/commit/84c6a81f7d1343a038850c6aa6286bd50f210a29
2017-08-25 14:05:47 -07:00
Krzysztof Wicher f984ad7d02 do not depend on current directory
Commit migrated from https://github.com/dotnet/corefx/commit/56c917805b8f71ad106b328ec746821f7d5bd20b
2017-06-30 13:55:32 -07:00
Krzysztof Wicher 9733850ce8 remove commented out line
Commit migrated from https://github.com/dotnet/corefx/commit/c6284039e90209bfb1f8e722c6bd0f13686ea5f5
2017-06-30 13:23:41 -07:00
Krzysztof Wicher efdb15fb71 remove leftover change
Commit migrated from https://github.com/dotnet/corefx/commit/234205b56d0613303f5f915a4c598eeed755be50
2017-06-30 12:40:43 -07:00
Krzysztof Wicher 44ab69269e fix System.Runtime.Loader.DefaultContext on uap (and simplify code)
Commit migrated from https://github.com/dotnet/corefx/commit/6742d290d3382e67f6a22af9dc62081ae2f9a8bf
2017-06-30 12:32:58 -07:00
Dan Moseley 3d739508af Fix/disable more libraries for UAP (dotnet/corefx#21417)
* fix Pkcs tests for UAP

* Fix DriveInfo tests for uap

* Fix S.R.L tests for uap


Commit migrated from https://github.com/dotnet/corefx/commit/63fa0879a1e75ff46e5e3afadccb45c8ed7315f4
2017-06-22 22:59:42 -07:00
Santiago Fernandez Madero 5a1b881257 Fix System.Runtime.Loader.RefEmitLoadContext test in uap (dotnet/corefx#21121)
Commit migrated from https://github.com/dotnet/corefx/commit/c4fea4df2bbfed6df6f469ed4f9a550d561d9780
2017-06-15 23:31:42 -07:00
Atsushi Kanamori 561f4fdacf Get rid of assorted CoreFx test on ILC noise.
The recent change to unblock all serializable types
for Reflection (even if the types themselves are
internal) woke up the XUnit ToString() problem
again.

Now, reflecting on ToString() on these types
are throwing MME's rather than bleeding through
the prevaricator Type that pretends to have no
members to the public base type.

This is most irritating but there's not much for
it except to rd.xml these internal types
directly.


Commit migrated from https://github.com/dotnet/corefx/commit/679c8e0637111ea5e39036aca1a02d7db7d2b92f
2017-05-30 14:34:46 -07:00
Eric St. John af62668426 Update build configurations
Commit migrated from https://github.com/dotnet/corefx/commit/7cfc4fcdbf659581c535f01202e24a6ceb335e31
2017-05-26 08:16:33 -07:00
Eric St. John af1d155bf6 Remove help VS comments
Many CSProjs included the comment
`<!-- Help VS understand available configurations -->`

These aren't handled well by the tooling that rewrites projects and weren't providing much value.

Remove them.


Commit migrated from https://github.com/dotnet/corefx/commit/5ba948d13e3177c2c7075b6b00791e574bfa0860
2017-05-25 11:10:27 -07:00
Krzysztof Wicher ad165cec4e building System.IO.MemoryMappedFiles.Performance.Tests and System.Runtime.Loader.Tests on uapaot (dotnet/corefx#20205)
Commit migrated from https://github.com/dotnet/corefx/commit/8b9a5086b5ad95b30d585e6a196ed6ee22f336d6
2017-05-23 21:17:25 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Gaurav Khanna 923aa18186 Add Test to enumerate dynamically generated assemblies
Commit migrated from https://github.com/dotnet/corefx/commit/7b449ee30210e73964cefd8094d30a08ef965279
2017-04-29 07:53:03 -07:00
Gaurav Khanna 399b534a7b Reenable RefEmit Test
Commit migrated from https://github.com/dotnet/corefx/commit/cf91b03cd989992491f6ccf4393d3c03800f4805
2017-04-28 09:19:35 -07:00
Gaurav Khanna 1e41bfc802 Update RefEmit Test to expect LoadContext for DynamicAssemblies
Commit migrated from https://github.com/dotnet/corefx/commit/194b7279167cb204ebeba028e22ded1e15e56581
2017-04-28 08:04:42 -07:00
Gaurav Khanna 13fd3da177 Disable RefEmit Test
Commit migrated from https://github.com/dotnet/corefx/commit/dd535c586b4903892c0eb41b35251100cd5d44fd
2017-04-27 13:55:50 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
Jose Perez Rodriguez 1142da6074 Fixing uapaot baselines
Commit migrated from https://github.com/dotnet/corefx/commit/3b646acc9132930ce28f261046c6982e1d5b3d38
2017-04-06 09:44:35 -07:00
Rahul Kumar 9012b68424 Fix path to fx after move to shared fx installation to run tests
Commit migrated from https://github.com/dotnet/corefx/commit/a2c12083d7a7c5305c5a39cd812d410f6a72a303
2017-03-29 10:40:28 -07:00
Jiayi Li d8b41f8f9e Cleanup disabled tests missing correct issue numbers (dotnet/corefx#16756)
* Move a System.Collections test

Just moves the test to a more derived test class.  In its current location, it's unnecessarily getting run multiple times but without any variation.

* 20170306 - Audit some active issues/v-lijiay

* Remove Active Issue 16750 and change performancetest to [Benchmark], remove the link in Fact when it has activeissue.

* The type or namespace name 'BenchmarkAttribute' could not be found, add using Microsoft.Xunit.Performance;

* 20170306 - Audit some active issues/v-lijiay

* Remove Active Issue 16750 and change performancetest to [Benchmark], remove the link in Fact when it has activeissue.

* The type or namespace name 'BenchmarkAttribute' could not be found, add using Microsoft.Xunit.Performance;


Commit migrated from https://github.com/dotnet/corefx/commit/31e2eb9779b8ec07c3363ed52c32e1838c4eb4de
2017-03-07 22:10:33 -08:00
Wes Haggard e3486cb2bf Clean-up references to old build against packages properties
This removes configurations for build against properties as well
as cleans up some of the Restore-All targets which we no longer
need.


Commit migrated from https://github.com/dotnet/corefx/commit/9df80a47f2314d62a7f307378324246350c21f63
2017-02-22 13:04:25 -08:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
2017-02-08 15:32:53 -08:00
Eric Mellino 8fbc03fb77 Remove non-existent project.json's from project files
Commit migrated from https://github.com/dotnet/corefx/commit/56202d079c0a45f17b5b6680ac1df3e5a4f78be1
2017-02-07 12:22:10 -08:00
Stephen Toub 2c8e5204aa Merge pull request dotnet/corefx#15898 from jkotas/NoWarn
Delete NoWarn's that are not required anymore

Commit migrated from https://github.com/dotnet/corefx/commit/dec64155673f97a7f7a0a12b426a9ea9e0681692
2017-02-07 07:25:13 -05:00
Jan Kotas 5b0ef7c767 Delete NoWarn's that are not required anymore
Commit migrated from https://github.com/dotnet/corefx/commit/71f6a5923535b98678f0d7e71aabf10c5d24b078
2017-02-06 22:10:10 -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
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
Eric St. John 9fa663b850 Fix uses of GenFacadesArgs -ignoreMissingTypes
Commit migrated from https://github.com/dotnet/corefx/commit/ac5b1e7d7c4054dd65d7cc2b4578e775604bab69
2017-02-03 08:32:14 -08:00
Eric St. John 83ddd73043 System.Private.CoreLib is OSGroup-specific
Make sure that we represent System.PrivateCoreLib as OSGroup specific
since it exposes different types on Windows vs Unix.


Commit migrated from https://github.com/dotnet/corefx/commit/d549c08d12f32c6c8bead3a98cfce9d0fe9dd10d
2017-02-03 08:32:14 -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 7404829809 Adding UAPAOT vertical and configurations
Commit migrated from https://github.com/dotnet/corefx/commit/84400b252e840382da44b55502731061f7b2380b
2017-02-02 11:25:18 -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
Eric St. John 95a7c07d4b Fix configurations for UAP
These changes enable TargetGroup=UAP to build completely.


Commit migrated from https://github.com/dotnet/corefx/commit/17fdb439c50f4aa66a99f9b5549e9db923331e40
2017-01-31 06:27:49 -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
Jose Perez Rodriguez a0ffb9b029 Removing System.Private.CoreLib from TargetingPack (dotnet/corefx#15357)
Removing System.Private.CoreLib from TargetingPack

Commit migrated from https://github.com/dotnet/corefx/commit/446e0057ed1491fd1f41ffb06357dee445131622
2017-01-20 17:07:38 -08:00
Eric StJohn 2c0e6a5cb4 Merge pull request dotnet/corefx#15342 from ericstj/netcoreapp-corelib-facades
Ensure corelib-based facades are in NETCoreApp

Commit migrated from https://github.com/dotnet/corefx/commit/7771cc8f182e815537736c5ed439cd9cfc15105f
2017-01-19 21:08:47 -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 11d45f7f9d Ensure corelib-based facades are in NETCoreApp
Anything with type-forwards into corlib needs to be part of the shared
framework.  It should also not ship as a package since it could get out
of sync with the corlib, so I've removed these packages as well and
ensured that they are part of the NETCoreApp targeting pack (removing
IsNETCoreAppRef=false).

There is one exception which is System.Buffers.  In this case it will
also ship as a package in order to provide downlevel support.  The
version in NETCoreApp will have precedence over the pacakge version
and we should consider omitting the NETCoreApp build from the package
once we bring that back.


Commit migrated from https://github.com/dotnet/corefx/commit/01eed8b5e0f0519333591ac5f3bd55fe6662959f
2017-01-19 15:14:39 -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
Karthik Rajasekaran c7e4c0952f Execute tests with dotnet cli (dotnet/corefx#14823)
* Execute tests with dotnet cli

Update to reuse assets from Tools

Remove split IsManagedAssembly

Add DotNetHost as a platform specific dependency

* Run RemoteExecutorConsoleApp against dotnet

* Update dependencies and refactor property names

* PR Feedback

* Skip failing System.Runtime.Loader tests to unblock test runs

* Add runtimeconfig for RemoteExecutorConsoleApp

* Fix bad merge of build.proj

Remove debug statement of rid from dir.targets

Add tracking issue to skipped tests in System.Runtime.Loader for 3 tests

Cleanup tests.targets

* Ensure shared fx is generated before test build

* Fix exit code ordering for non-Windows runs

* Change TestModulesContainsCorerun to TestModulesContainsDotnet


Commit migrated from https://github.com/dotnet/corefx/commit/1bdedff433d19862e86f28d6fdf4bb3d0f9bde18
2017-01-12 09:17:38 -08:00
Jose Perez Rodriguez c5a8e52061 Redefining IsTestProject and cleaning all projects that were defining it
Commit migrated from https://github.com/dotnet/corefx/commit/4b649caf7c0e5cdbfc5ae6fd48e12170f2a12294
2017-01-11 14:05:38 -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
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
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