Commit Graph
292 Commits
Author SHA1 Message Date
Clockwork-Muse 0f46c604bb Enable roundtripping for specified encodings.
Commit migrated from https://github.com/dotnet/corefx/commit/5427b51a4d63e2b6eedf7e9ac3fdff58dde6800e
2015-06-08 13:44:00 +09:00
Clockwork-Muse 7aacd28262 Make TestDefaultEncodings() safer.
Just make sure default encoding in known list.
Do stronger test to ensure Encoding.GetEncoding(..) and CodePageEncodingProvider.GetEncoding(...) return the same objects.
Remove known issue for Unix.


Commit migrated from https://github.com/dotnet/corefx/commit/806fb5ffedce01884f2a05775901ef13ead99476
2015-06-08 13:14:44 +09:00
Clockwork-Muse a774de0c58 Remove unused variables and related comments.
Commit migrated from https://github.com/dotnet/corefx/commit/fd12148bea4b9731455bc3416c035d19b7b2b6fc
2015-06-08 13:14:40 +09:00
Clockwork-Muse 0c9b70818b Update CodePageEncoding tests.
Remove `EnsureInitialization` and pre-existing-encodings tests.
Ask CodePagesEncodingProvider directly for encodings.

Move encoding mapping data into member in prep for adding Theory attribute.

Add missing Europa (code page 29001) strings by regenerating file from fixed source data.
No obvious way to test "English" strings (unused!), leaving in for now.

Test for existence of all available default encodings.
Test replacement/supplementary behavior with addition of code-page mapping.
Attempt to add Unix-specific test (but not able to personally test, due to being on windows...).

Update TestCodepageEncoding to use Theory/MemberData.
Expand range of characters round-tripped (potentially more can be added, but additional tests for exceptions should be added).
Bring in code-page->webname mapping tests.

Remove existence test for Eudc encoding (part of testing data).

Update TestEncodingDisplayNames to use Theory/MemberData.
Raise lower bound of acceptable characters to only printable, and not solely whitespace.
Externalize culture setup to class load-time (in-method not thread safe!)

Move test classes out of default namespace.

Update TestSpecificCodepageEncodings
Extract test data to member.
Loft tests to method, use more idiomatic xUnit.

Update multibyte encoding tests.
Extract data to member.
Condense test methods into one.


Commit migrated from https://github.com/dotnet/corefx/commit/5d1db71ed9bdff40525e80fc57c457569115d3c9
2015-06-08 13:13:47 +09:00
Eric StJohn e8454e28a5 Update projects to latest CoreFx packages
This is the result of build /t:RestorePackages /p:LockDependencies=true from the root.

This adds all missing project.lock.json files and updates existing ones to the latest package versions.


Commit migrated from https://github.com/dotnet/corefx/commit/38e0d2a0f8513afe6dc7d86a67e5776ab7b99df1
2015-05-27 12:18:06 -07:00
Eric St. John a8788d6383 Lock dependencies to ensure we build against a predictable package version
This change adds the lock files to repo to ensure we build against a stable set of dependencies.  To explicitly update dependencies use build.cmd /T:RestorePackages /P:LockDependencies=true and this will pick up the latest depenedencies.

Existing projects adding new dependencies will automatically update the lock file incrementally.

New projects should make sure to check their lock file in with locked set to true.

[tfs-changeset: 1474296]


Commit migrated from https://github.com/dotnet/corefx/commit/d2fbc005707933db1cebca035d6cd6073af6cae4
2015-05-21 15:23:27 -07:00
Matt Ellis 771502f50b Merge 'upstream/master' into from-tfs
Conflicts:
	dir.props
	src/.nuget/packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/eb58e5b84672c7a0b82ee6b241577134d36c1401
2015-05-15 15:26:03 -07:00
Eric St. John de6614c63a Update to latest CoreFx packages
Latest packages are now on dotnet-core myget feed.

This should address a many of the warnings in the build.  I will follow up with another change to address the rest.

This change brings in the latest build tools with updates to consume "latest" packages (* versions).

I've updated every project in the repo to use * versioning for dependencies.

The new packages can be used to resolve runtime assets as well (like clrcompression.dll) so I have removed the custom code in System.IO.Compression to copy this dll.  Instead the test project references the actual System.IO.Compression package and sets the correct runtime IDs to pull out the resources.  The System.IO.Compression.dll from the package is not used since the project reference takes precedence.

I had to workaround an issue in System.Xml.XmlSerializer with the current packages: System.Runtime.WindowsRuntime 4.0.0 has a depedendency on "windows" package which doesn't exist.  This was caused by our auto-generation task not filtering the winrt reference in the reference assembly's surface area.  I've fixed this in a separate change and we can remove the workaround once we have a new set of packages.  https://github.com/dotnet/corefx/issues/1761

I also had to add a dependency to System.Security.Cryptography.Hashing.Algorithms\tests due to an issue with DNX.  It's not honoring the dependency group with no targetFramework when another dependency group exists in the nuspec.  This is inconsistent with nuget v2 and should be fixed in DNX.  https://github.com/aspnet/dnx/issues/1881

[tfs-changeset: 1471885]


Commit migrated from https://github.com/dotnet/corefx/commit/08c0d8628ef621fbd44d7aaa85b3239616a6b108
2015-05-15 12:40:33 -07:00
Alexander Köplinger b46f878f13 Remove outdated comment about packages.config from csproj's
Since the move to project.json we no longer use packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/1d489b12d2f6b7b7128888d525dc2e49fe2f1782
2015-05-15 20:10:42 +02:00
Lakshmi Priya Sekar 2a499c5cbf Remove XunitTraitDiscoverers from corefx and reference the nuget package xunit.netcore.extensions.
Commit migrated from https://github.com/dotnet/corefx/commit/03e32211d668ee215f32c599849987cb7d9d4e2a
2015-05-07 16:15:32 -07:00
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
Stephen Toub 964b3dea7d Add PlatformID.AnyUnix
There are ~110 tests that have been disabled with an ActiveIssue for PlatformID.Linux | PlatformID.OSX.  To simplify this and to avoid lots of additional churn when additional Unix-based platforms are added, I've added PlatformID.AnyUnix = Linux | OSX, and replaced all usage of Linux | OSX with just AnyUnix.  When new platforms are added, we can simply add to the enum, expand the meaning of AnyUnix, and most tests meant to be disabled for Unix will automatically be disabled.


Commit migrated from https://github.com/dotnet/corefx/commit/c96932da11940e0bae05de8e364eac90a6e1786b
2015-04-29 07:22:40 -04:00
Krzysztof Wicher c45a696084 Fix dotnet/corefx#1263: Fix encoding issue where no fallback occurs
Commit migrated from https://github.com/dotnet/corefx/commit/ce13ea98d0088b9a1dea34322b52382187595f8d
2015-04-27 14:48:01 -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 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
Stephen Toub aa72ec070e Annotate platform-specific tests in System.Text.Encoding.CodePages.Tests
A couple of the tests in System.Text.Encoding.CodePages.Tests depend on globalization support not yet implemented on Unix.  Disabling those for now.


Commit migrated from https://github.com/dotnet/corefx/commit/65cc742cf20a6b5cc4ea2565a637363627464d91
2015-04-03 15:22:09 -04:00
Christopher Costa 7e2dd3ad7b Delete closed libraries sources and reference open sources.
This change removes the closed libraries sources for libraries which we are now building in the open.  Stub project files are left in the closed libraries which improt sources from the open for various build configurations.

Also includes these two changes which were not yet ported to open:
- [Serialization]: DCS/DCJS fails to serialize/deserialize XElement type - regression
- Change namespace of System.Xml.XPath.XmlDocument extensions

Validated by pre-checkin gauntlet build dotnet/corefx#150320.14337

[tfs-changeset: 1437136]


Commit migrated from https://github.com/dotnet/corefx/commit/89881048ba6bb6adca5253024ea59e8aa8790a6a
2015-03-20 17:07:34 -07:00
Matt Ellis 53a9f1fe9a Refactor build properties for Linux and OSX builds
Previously, we used the catch all OS=Unix property in MSBuild to
determine if we were building for Windows vs Unix, and we shared the
same MSIL between Linux and OSX.  However, we have already started to
take dependencies on Linux specific APIs and we plan on using OSX
specific APIs very soon.

We don't want to try to ship MSIL that contains both Linux and OSX
specific implementations of a feature, so the build system needs to
change a little.

We'll continue to use the OS property as the entry point for the build
to specificy what platform you want to build for.  However, we now have
three platforms:

1. Windows_NT
2. Linux
3. OSX

However, the value of the OS property should not be tested directly,
instead we introduce properties about the target platform itself:

1. TargetsWindows
2. TargetsUnix
3. TargetsLinux
4. TargetsOSX

Code which works the same across Linux and OSX should be guarded by
TargetsUnix (which is true when OS is either 'Linux' or 'OSX').  Code
specific to one OS can be guarded with either TargetsLinux or
TargetsUnix.

In this change, I have simply rewritten all the '$(OS)' == 'Unix'
conditions to '$(TargetsUnix)' == 'true'.  A few libraries may do Linux
specific stuff, but we will clean up that debt when we go to flesh out
the OSX implementations.


Commit migrated from https://github.com/dotnet/corefx/commit/4d07173fbf86631d49ed56623581eff9cb7d3f87
2015-03-19 14:07:07 -07:00
Tarek Mahmoud Sayed 7f3ba338a0 Cleanup left over un-needed resources stuff after the FI.
Removing remaining resjson files and cleanup un-needed proj elements

[tfs-changeset: 1435017]


Commit migrated from https://github.com/dotnet/corefx/commit/34090cb805fc3830a93b7d044576eaeae91defcd
2015-03-18 11:24:36 -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
Pallavi Taneja 94054be3eb Consolidate interop calls for the following assemblies
1. System.Diagnostics.FileVersionInfo
   2. System.Diagnostics.TraceSource
   3. System.Globalization.Extensions
   4. System.Text.Encoding.CodePages


Commit migrated from https://github.com/dotnet/corefx/commit/c6932300b420faf2662433071ae986df90a06d43
2015-03-16 09:09:27 -07:00
Tarek Mahmoud Sayed d52779a137 Cleanup project files from empty items with resource comments
Commit migrated from https://github.com/dotnet/corefx/commit/47b1663630ab0a6089d1a95c8d9934af3c6bc92b
2015-03-04 11:34:17 -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
Pallavi Taneja 7f18e72a0c Update resource generation for libraries.
[tfs-changeset: 1422400]


Commit migrated from https://github.com/dotnet/corefx/commit/3ad583086b7b5eebfaca535fea861b871776cc3d
2015-02-26 17:55:48 -08: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
Stephen Toub 0188aeb399 Merge pull request dotnet/corefx#818 from stephentoub/os_proj_config
Update solutions/projects with OS-specific configs

Commit migrated from https://github.com/dotnet/corefx/commit/7dc38bf6e203210f987d41a579de1f44c81550e1
2015-02-18 19:39:20 -05: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 2c54a7ae72 Update solutions/projects with OS-specific configs
For projects that have OS-specific implementations, this change modifies
their solution and project files to create OS-specific configurations.
Rather than just having a Debug or Release option, in Visual Studio a
developer can now select OS_Debug or OS_Release, e.g. for a project that
has a Windows implementation and a Unix implementation, Windows_Debug,
Windows_Release, Unix_Debug, and Unix_Release will all be available
options.  Changing the configuration will update the properties used to
configure conditional includes, build outputs, etc.


Commit migrated from https://github.com/dotnet/corefx/commit/d3b259b89877e4a52d12c08e0f9031f37cb0905b
2015-02-18 13:01:48 -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
Matt Ellis b17c611fe5 Replace Debug.Assert(false, ...) with Debug.Fail()
I was unable to make this change in System.Reflection.Metadata. Per
discussion with Nick, this assembly can not take a dependency on the
newer Debug contract which supports these members in order to support
runnin on some platforms (e.g. Win8P where this member is not
present).

I faced the same problem in System.Threading.Tasks.Dataflow.


Commit migrated from https://github.com/dotnet/corefx/commit/2bcb80876244b2d488b32881542a85f18ff7a5fc
2015-02-11 13:59:07 -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
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 2c69e7b094 Merge pull request dotnet/corefx#555 from dotnet/v1.0
Merge v1.0 to master

Commit migrated from https://github.com/dotnet/corefx/commit/1ea0f1ef443e3d5de322cadedc39825933c04571
2015-01-29 10:46:15 -08: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
Stephen Toub 6f90a9ec0d Merge v1 to master
Commit migrated from https://github.com/dotnet/corefx/commit/5cdde5b80e3b588109dbe1dc0aca866d7eae1462
2015-01-26 09:36:12 -05: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
Nick Guerrera 10f180c735 Merge branch 'v1.0' into merge-v1.0-to-master
Conflicts:
	src/System.IO.MemoryMappedFiles/src/Microsoft/Win32/SafeMemoryMappedFileHandle.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateFromFile.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateNew.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateOrOpen.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewAccessor.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/CreateViewStream.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/Dispose.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedFile/OpenExisting.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/Flush.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/ReadX.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/SafeMemoryMappedViewHandle.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewAccessor/WriteX.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/Flush.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/ReadWrite.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SafeMemoryMappedViewHandle.cs
	src/System.IO.MemoryMappedFiles/tests/MemoryMappedViewStream/SetLength.cs


Commit migrated from https://github.com/dotnet/corefx/commit/8018d0685e1cc40fdb2df3c8577ceb95503a8ff9
2015-01-17 16:04:22 -08:00
Nick Guerrera f3705efd65 Remove logging of expected outcomes from CodePages tests
Commit migrated from https://github.com/dotnet/corefx/commit/5a8441438ca98137f708e13342f724897fa4d2cc
2015-01-17 10:37:24 -08:00
Stephen Toub e8343b3aeb Stop compiling Interop.cs into Unix build of code pages
The Interop.cs file was being compiled into the unix build of System.Text.Encoding.CodePages.  This commit just renames the file to be Windows-specific and includes it only in the Windows builds.  It also does some minor cleanup of a couple of files.


Commit migrated from https://github.com/dotnet/corefx/commit/69dddda00e7e9c34dcdfa5bcf550f4dbcb4edbdb
2015-01-16 16:43:12 -05:00
dotnet-bot 614eb73475 Initial commit of System.Text.Encoding.CodePages
Commit migrated from https://github.com/dotnet/corefx/commit/0fadaabd3e1379d3e41215d932fddd2dd3b9411e
2015-01-16 11:56:11 -08:00
dotnet-bot 6686a85d0f Initial commit of System.Text.Encoding.CodePages
Commit migrated from https://github.com/dotnet/corefx/commit/a8f65abf1d3f19f3e853c13125906e1a056fb884
2015-01-16 11:11:21 -08:00