Commit Graph
385 Commits
Author SHA1 Message Date
Ian Hays ebd5caab49 Add FSW tests for two set NotifyFilters
Commit migrated from https://github.com/dotnet/corefx/commit/77883e33b94164a318eb128605340dc2e61cd358
2017-08-07 16:43:18 -07:00
Ian Hays af8f8840b0 Add FSW file/directory event filtering to Linux
Because we are using inotify as the underlying implemenation for FileSystemWatcher on Linux, we can not only raise events for files or only raise events for directories, so we have to allow events for both to be raised regardless of NotifyFilters.

However, inotify does tell us that if an event occurred on a directory or on a file after the event has been raised. Since this is after filtering has already been done, we forward that event regardless of the NotifyFilters. This commit passes NotifyFilters to the RunningInstance that forwards the events and adds in some manual filtering after the fact. It isn't quite the same as filtering through the native call, but it does bring us closer to the Windows behavior.


Commit migrated from https://github.com/dotnet/corefx/commit/541f8e1535466c94b798e4e0177b834d1c3210da
2017-08-04 14:23:19 -07:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Jose Perez Rodriguez fb0f360046 Disabling FileSystemWatcher test on uap
Commit migrated from https://github.com/dotnet/corefx/commit/5fe6b5a61d2ef5ec5b813683a6c91a874909c675
2017-06-15 16:51:56 -07:00
Tarek Mahmoud Sayed 8754550d62 Enable UAP Remote Execution for all tests (dotnet/corefx#21014)
This change to enable remote execution of all corefx tests in UAP. Because the remote execution code for UAP is using WinRT APIs and to avoid forcing adding UAP configuration to all test projects, we factor the remote execution code into its own test library (called TestHelper) which is cross compiled.

Commit migrated from https://github.com/dotnet/corefx/commit/eb2f543b189e8f7f9ae4c31e832ac9d3c22bb41a
2017-06-14 13:26:57 -07:00
Santiago Fernandez Madero e8c0db60b4 Update buildtools and extensions and do tests cleanup for new attributes behavior (dotnet/corefx#20333)
* Update buildtools and extensions and do tests cleanup for new attributes behavior


Commit migrated from https://github.com/dotnet/corefx/commit/bc73a9b7ca2a644efd9fc3cb51dde3bc3726ecd7
2017-05-26 02:13:52 -05:00
Morgan Brown 975ad3c685 Scale back [Serializable] CoreFX types (dotnet/corefx#19742)
* Remove SerializableAttribute from many CoreFX types that will not be serializable.

* Removes serialization tests for types that are no longer serializable and fixes serializing a couple of types. Includes marking some internal serializable types as public so that they'll be reflectible with .NET Native.

* Remove unneeded pragmas

* Update based on review comments


Commit migrated from https://github.com/dotnet/corefx/commit/6dd451f51451a7d0ceea6104b51bd17005e9a0e6
2017-05-16 18:16:29 -04:00
FAREAST\v-lijiay 6b76c4a669 Disable failed test for issue 18308.
Commit migrated from https://github.com/dotnet/corefx/commit/ad0dd782ee220cca6637546f532e667dbf721063
2017-05-05 02:08:45 -07:00
Ian Hays d6054244af Fix 2 failing IO tests. (dotnet/corefx#18952)
* Fix 2 failing IO tests.

The MMF test is failing from a purposeful design change around the default FileShare being used in CreateFromFile. The FSW tests are failing intermittently from inconsistency so I'm reverting my recent change to move them to innerloop and reduce their wait time.

* Add issue number to Skip tag for MMF test


Commit migrated from https://github.com/dotnet/corefx/commit/9f35bcfb7728345151147e72b8264773085e56a0
2017-04-26 13:55:37 -04:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
danmosemsft 436098c2d8 Disable test for UWP
Commit migrated from https://github.com/dotnet/corefx/commit/221ebe188de359a5cd6a7f229ab20cfcc021172c
2017-04-06 15:58:04 -07:00
Alex Perovich fc4bb66b9f Fold or rename *.netstandard.cs files (dotnet/corefx#17697)
* Win32.Primitives

* System.Collections.Specialized

* System.Diagnostics.Process

* System.Globalization

* System.Globalization.Calendars

* System.IO

* System.IO.Compression

* System.IO.FileSystem

* System.IO.FileSystem.Watcher

* System.IO.Pipes

* System.Linq.Expressions

* System.Net.Primitives

* System.Net.Requests

* System.Net.Sockets

* System.Net.WebHeaderCollection

* System.ObjectModel

* System.Reflection

* System.Reflection.Emit

* System.Resources.ResourceManager

* System.Runtime

* System.Runtime.Extensions

* System.Runtime.Handles

* System.Runtime.InteropServices

* System.Security.Cryptography.X509Certificates

* System.Text.Encoding

* System.Text.Encoding.CodePages

* System.Threading

* System.Threading.Tasks

* System.Threading.Thread

* System.Threading.Timer

* System.ValueTuple


Commit migrated from https://github.com/dotnet/corefx/commit/023b6bdd6086271cbb6ca932c33d7783f8406062
2017-03-30 17:28:22 -05:00
Ian Hays d0c84002cc Add Retries to FSW WaitFor* Tests (dotnet/corefx#17240)
* Add Retries to FSW WaitFor* Tests

These tests are intermittently failing on some platforms from events not being risen by the filesystem. It's causing a fair amount of churn, so I'm adding retries to them like we have for a lot of the other FSW tests that are succeptible to intermittent failures. Doing so also greatly reduces the runtime in the failure case, allowing us to move the tests back to innerloop.

* Make FSW tests try/catch retry errors


Commit migrated from https://github.com/dotnet/corefx/commit/078b0f49388f787037edb09aa0d994773e6de02f
2017-03-17 15:46:08 -04:00
Paul Harrington 79d26b7560 Fix typos: occurred/occurrence (dotnet/corefx#16459)
Commit migrated from https://github.com/dotnet/corefx/commit/94a4ddf3f8f04ef2dc0486afcb62ef873bec2530
2017-02-24 23:56:39 -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
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
sepidehMS e3d734c19d Add comments to PlatformSpecific tests
Commit migrated from https://github.com/dotnet/corefx/commit/493cb79ff4976479be5cc7c6f1fe2d5d9b710425
2017-02-07 15:46:26 -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
Ian Hays 85114b6f37 Fix some misc failing desktop IO tests
These tests are failing on the full framework test runs for misc reasons explained in the comment section of the attributes. Most of them are because of lack of DeflateStream Flush support.


Commit migrated from https://github.com/dotnet/corefx/commit/48648ed33a17a0f2967a4de45b024bbd8173a27d
2017-02-02 12:55:06 -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
Ian Hays e3733e9157 Fix some intermittently failing Desktop FSW tests (dotnet/corefx#15007)
* Fix some intermittently failing Desktop FSW tests

They're failing for misc reasons but mostly are plagued by timeouts. I excluded some actual failures and increased timeouts for the other ones so desktop FSW runs should be clean going forward.

* Make FSW_NotifyFilter test catch any ArgException

This is so it still runs on desktop and isn't just flat out excluded.

* Fix FSW StopCalledOnBackgroundThread test

* fix FSW test


Commit migrated from https://github.com/dotnet/corefx/commit/f548a49b0d40b90b45ef43ea27bd99e16c50676c
2017-01-11 13:40:01 -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
John Chen (CLR) f2e4ee37be Replace API Set with Win32 DLL in tests
API Sets are not available on Windows 7, thus tests need to
import from Win32 DLL to run successfully on Windows 7.
Resolves issue dotnet/corefx#14728.


Commit migrated from https://github.com/dotnet/corefx/commit/21296d01c360e5febf4f9d7c501158cf740c604c
2017-01-04 16:27:17 -08: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
Eric Mellino da3c47cf33 Port first third of tests to build against the targeting pack / runtime (dotnet/corefx#14450)
* Change first third of test projects to compile against targeting pack.

* Add supplemental test data into an external project


Commit migrated from https://github.com/dotnet/corefx/commit/65780ef192c4f2214e65816e7ac90899be6a5557
2016-12-12 14:19:07 -08:00
Ian Hays fce9ab927d Add missing FileSystemWatcher methods
Adds source and tests for the remaining missing members in FileSystemWatcher. This required that FileSystemWatcher take a dependency on System.ComponentModel.TypeConverter.


Commit migrated from https://github.com/dotnet/corefx/commit/7e87de255ba67eed5953f9899887a73420dff5d9
2016-11-16 10:35:51 -08:00
Karthik Rajasekaran 9255a2e649 Combine test dependencies into a common project.json.
Restore this common project.json upfront to improve sync time and avoid download contention from nuget.


Commit migrated from https://github.com/dotnet/corefx/commit/654f5548f946659c694d110a4bbce8aa33f1a7a1
2016-10-18 11:39:53 -07:00
dotnet-bot 94f229c6a7 Update CoreClr, CoreFx to beta-24617-03, beta-24617-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/4c6df2edbad3b5d8ec3914c0366f80ebb73f7c12
2016-10-18 08:43:24 -04:00
dotnet-bot 7b31a1e04a Update CoreClr, CoreFx, External to beta-24615-02, beta-24615-03, beta-24614-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/025cec5bf1e82980a77e473f2e5d599ffd60af49
2016-10-15 08:33:01 +00:00
dotnet-bot 511149ab83 Update CoreClr, CoreFx, External to beta-24613-02, beta-24613-01, beta-24613-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/8f355c66ac9adbf9f36cfdd019ba1d2cefb54001
2016-10-13 08:37:30 +00:00
dotnet-bot 4a517b60c6 Update CoreClr, CoreFx to beta-24612-03, beta-24612-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/f01cf91423391f80ad5269340eb8e602ea9cb087
2016-10-12 16:28:54 +00:00
Stephen Toub f54cfb8704 Update CoreClr, CoreFx to beta-24611-01, beta-24611-02 respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/b7cc4e219207cff50cdbb11176d3cee25be724f0
2016-10-11 15:32:17 -04:00
Stephen Toub 320ec958ba Update CoreClr, CoreFx to beta-24608-02, beta-24608-01, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/0fe592ec0a6be3cb49ecf37a798ca482b0d261dc
2016-10-08 08:25:01 -04:00
Sedar Gokbulut fb95e1e002 Revert "Merge branch 'dotnet-bot-master-UpdateDependencies'"
This reverts commit dotnet/corefx@631f21b4c2, reversing
changes made to dotnet/corefx@374a387de0.


Commit migrated from https://github.com/dotnet/corefx/commit/30cd016952f1f806986f2918fc7c1ebdb570aefd
2016-10-07 16:10:51 -07:00
dotnet-bot d7384b3382 Update CoreClr, CoreFx, ProjectNTfs to beta-24607-02, beta-24607-03, beta-24607-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/6f081ec97720eb7efd2653b91f88cda45cb43431
2016-10-07 15:48:04 -04:00
Jose Perez Rodriguez c37abd4f53 Reorder test.builds files metadata to be consisteng across the repo
Commit migrated from https://github.com/dotnet/corefx/commit/8cbdf88e1b122babd37575587692448ed59e7f58
2016-10-05 14:58:03 -07:00
Jose Perez Rodriguez d3aeb49e0e Fix ordering of test builds files
Commit migrated from https://github.com/dotnet/corefx/commit/a3ae67fd338d55d0bdc0bab4e8ba37ac9b2b7e3d
2016-10-05 14:56:16 -07:00
Alex Perovich 674bb7a0f8 Update project ToolsVersions to 14.0 (dotnet/corefx#12355)
Commit migrated from https://github.com/dotnet/corefx/commit/71de1aac5cf3e5dc87714ae0cc829e1fa98f7c5d
2016-10-05 12:50:37 -07:00
Stephen Toub 14b16a8eae Merge pull request dotnet/corefx#11721 from ianhays/fsw_maxuserinstances
Remove CreateManyConcurrent test

Commit migrated from https://github.com/dotnet/corefx/commit/984a3748cb478c4eec044c4e316da91d09cc1737
2016-10-05 14:31:55 -04:00
dotnet-bot ddcb0ebc64 Update CoreClr, CoreFx, ProjectNTfs to beta-24605-01, beta-24604-02, beta-24604-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/193d21d6f4d181b086a52d17716499a3170785d0
2016-10-05 07:52:47 -04:00
Alex Ghiondea 54706f9534 Introduce Component as the base type for a few components
The following types were changed to derive from Component:
- WebClient
- FileSystemWatcher
- Ping
- BackgroundWorker
- Process
- ProcessModule
- ProcessThread


Commit migrated from https://github.com/dotnet/corefx/commit/94f14819050dc7e6dbe4f2b0cfc1eb47f3b3429e
2016-10-04 10:27:33 -07:00
Ian Hays 180cadd449 Remove the CreateManyConcurrent test
The test is causing intermittent failures in other tests and is also intermittently failing itself. Without modifying system resources we can't make this test trustworthy, so it's better to remove it for the sake of stability.


Commit migrated from https://github.com/dotnet/corefx/commit/2dab1441d118a81cda174a18b884aa3e1c627cd2
2016-10-04 08:36:30 -07:00
Stephen Toub 223322a88c Merge pull request dotnet/corefx#12285 from dotnet-bot/master-UpdateDependencies
Update CoreClr, CoreFx to beta-24602-02, beta-24601-02, respectively (master)

Commit migrated from https://github.com/dotnet/corefx/commit/06756f5cb7d12a10d77c468fc7b03abb67d9ed49
2016-10-02 10:05:09 -04:00
dotnet-bot 018cb6969b Update CoreClr, CoreFx to beta-24602-02, beta-24601-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/3274ef94654da6754aaa54427d289e51ec316ea9
2016-10-02 08:24:45 +00:00
Justin Van Patten aa68f5ce2f Replace uses of Xunit.PlatformID with renamed TestPlatforms
Replace uses of `Xunit.PlatformID` with renamed `TestPlatforms` because
the old name conflicts with `System.PlatformID` and should be plural
according to the design guidelines for flags enums.


Commit migrated from https://github.com/dotnet/corefx/commit/5179dda7331b1e201519adf76ce9ae69ffe2a0f6
2016-10-01 17:18:41 -07:00
Wes Haggard e0a471e97c Merge pull request dotnet/corefx#12267 from weshaggard/UpdateXunitNetcoreExtensions
Update xunit.netcore.extensions package

Commit migrated from https://github.com/dotnet/corefx/commit/0cc9db0ed12ea2588edfd080c568e8c3f55050c7
2016-10-01 15:08:20 -07:00