-
Notifications
You must be signed in to change notification settings - Fork 839
Tests for coreclr #6151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests for coreclr #6151
Conversation
KevinRansom
commented
Jan 28, 2019
- During the build build a nuget package with the FSharp.Core unit tests that the coreclr team can use to verify they haven't broken us again.
- FSharp.Core on master branch puts the net45 resources in the wrong place.
- Add support for xunit to FSharp.Core unit tests, because coreclr uses xunit.
- Ensure that tests can be built with an out of the box VS, and not require any VFS repo build magic.
- Remove the app.config for the unittests, they are no longer needed.
60ef93e to
afe7cd1
Compare
7161610 to
4e97752
Compare
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="XliffTasks" Version="$(XliffTasksPackageVersion)" /> | ||
| <PackageReference Include="XliffTasks" Version="$(XliffTasksPackageVersion)" PrivateAssets="All" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
| </None> | ||
|
|
||
| <Content Include="$(MSBuildProjectDirectory)\**\*.*" | ||
| Exclude="$(MSBuildProjectDirectory)\bin\**\*.*;$(MSBuildProjectDirectory)\obj\**\*.*;$(MSBuildProjectDirectory)\FSharp.Core\SampleTuples\**\*.*;$(MSBuildProjectDirectory)\Directory.Build.props;$(MSBuildProjectDirectory)\Directory.Build.targes;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: Directory.BUild targes -> Directory.Build.targets
More importantly, what specifically are you trying to include? This line looks terrible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to include the SampleTuples subdirectory. And the intermediate and output directories, which probably now are correctly in the artifacts directory.
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <DefineConstants Condition="'$(UnitTestType)' == 'xunit'">$(DefineConstants);XUNIT</DefineConstants> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're explicitly setting $(UnitTestType) to xunit a few lines up, so this section doesn't really do anything.
| <Pattern1>FSCoreVersion</Pattern1> | ||
| <Replacement1>$(FSCoreVersion)</Replacement1> | ||
| </CopyAndSubstituteText> | ||
| <Compile Include="SurfaceArea.coreclr.fs" Condition="$(TargetFramework.StartsWith('netcoreapp')) == true and '$(FX_VERIFY_SURFACEAREA)' == 'true'" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
== true makes me sad.
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="$(FSharpSourcesRoot)\fsharp\FSharp.Core\FSharp.Core.fsproj" /> | ||
| <Content Include="**/*" Exclude="**/*.bak;Directory.Build.Props;Directory.Build.targets" CopyToOutputDirectory="never" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What specifically would you like to include?