Skip to content

Commit

Permalink
Always build FSharp.Core.UnitTests against the FSharp.Core in the rep…
Browse files Browse the repository at this point in the history
…ository (#6384)
  • Loading branch information
KevinRansom authored and dsyme committed Mar 28, 2019
1 parent a8080a6 commit 65461d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FSharpBuild.Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Import Project="eng\targets\Settings.props" />

<PropertyGroup>
<BUILD_IN_FSHARP_REPOSITORY>true</BUILD_IN_FSHARP_REPOSITORY>
</PropertyGroup>

<!-- directory locations -->
<PropertyGroup>
<FSharpSourcesRoot>$(RepoRoot)src</FSharpSourcesRoot>
Expand Down
10 changes: 10 additions & 0 deletions eng/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ param (
[switch][Alias('test')]$testDesktop,
[switch]$testCoreClr,
[switch]$testFSharpQA,
[switch]$testFSharpCore,
[switch]$testVs,
[switch]$testAll,

Expand Down Expand Up @@ -76,6 +77,7 @@ function Print-Usage() {
Write-Host " -testDesktop Run tests against full .NET Framework"
Write-Host " -testCoreClr Run tests against CoreCLR"
Write-Host " -testFSharpQA Run F# Cambridge tests"
Write-Host " -testFSharpCore Run FSharpCore unit tests"
Write-Host " -testVs Run F# editor unit tests"
Write-Host ""
Write-Host "Advanced settings:"
Expand Down Expand Up @@ -271,6 +273,14 @@ try {
Pop-Location
}

if ($testFSharpCore) {
Write-Host "Environment Variables"
Get-Childitem Env:
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $desktopTargetFramework
TestUsingNUnit -testProject "$RepoRoot\tests\FSharp.Core.UnitTests\FSharp.Core.UnitTests.fsproj" -targetFramework $coreclrTargetFramework
}


if ($testVs) {
Write-Host "Environment Variables"
Get-Childitem Env:
Expand Down

0 comments on commit 65461d7

Please sign in to comment.