Skip to content

Commit

Permalink
Fix AOT (dotnet#17238)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom authored May 28, 2024
1 parent c88f99b commit 7e59327
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ extends:
- script: eng\CIBuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
-testAllButIntegrationAndAot
-testAllButIntegration
-officialSkipTests $(SkipTests)
/p:SignType=$(_SignType)
/p:DotNetSignType=$(_SignType)
Expand Down
12 changes: 0 additions & 12 deletions eng/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ param (
[switch]$testVs,
[switch]$testAll,
[switch]$testAllButIntegration,
[switch]$testAllButIntegrationAndAot,
[switch]$testpack,
[switch]$testAOT,
[switch]$testBenchmarks,
Expand Down Expand Up @@ -105,7 +104,6 @@ function Print-Usage() {
Write-Host "Test actions"
Write-Host " -testAll Run all tests"
Write-Host " -testAllButIntegration Run all but integration tests"
Write-Host " -testAllButIntegrationAndAot Run all but integration and AOT tests"
Write-Host " -testCambridge Run Cambridge tests"
Write-Host " -testCompiler Run FSharpCompiler unit tests"
Write-Host " -testCompilerService Run FSharpCompilerService unit tests"
Expand Down Expand Up @@ -172,19 +170,9 @@ function Process-Arguments() {
$script:testAOT = $True
}

if($testAllButIntegrationAndAot) {
$script:testDesktop = $True
$script:testCoreClr = $True
$script:testFSharpQA = $True
$script:testIntegration = $False
$script:testVs = $True
$script:testAOT = $False
}

if ([System.Boolean]::Parse($script:officialSkipTests)) {
$script:testAll = $False
$script:testAllButIntegration = $False
$script:testAllButIntegrationAndAot = $False
$script:testCambridge = $False
$script:testCompiler = $False
$script:testCompilerService = $False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
<DependentProjects Include="$(MSBuildThisFileDirectory)..\Compiler\FSharp.Compiler.Service.fsproj">
<AdditionalProperties>TargetFrameworks=netstandard2.0</AdditionalProperties>
</DependentProjects>
<DependentProjects Include="$(MSBuildThisFileDirectory)..\Compiler\FSharp.Compiler.Service.fsproj">
<AdditionalProperties>TargetFrameworks=netstandard2.0</AdditionalProperties>
</DependentProjects>
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions tests/AheadOfTime/check.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Write-Host "AheadOfTime: check1.ps1"

# the NUGET_PACKAGES environment variable tells dotnet nuget where the global package is
# So save the current setting, we'll reset it after the tests are complete
# Then clear the global cache so that we can grab the FSharp.Core nuget we built earlier
$savedNUGET_PACKAGES=$env:NUGET_PACKAGES
$env:NUGET_PACKAGES=Join-Path $PSScriptRoot "../../artifacts/nuget/AOT/"
dotnet nuget locals global-packages --clear

Equality\check.ps1
Trimming\check.ps1
$env:NUGET_PACKAGES=$savedNUGET_PACKAGES

0 comments on commit 7e59327

Please sign in to comment.