Skip to content

Commit

Permalink
Build NativeAOT-iOS runtime tests as standalone to restore test runs (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored and jtschuster committed Sep 17, 2024
1 parent d09c7da commit 6f7fe24
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ parameters:
variables: {}
pool: ''
dependsOn: []
compileOnHelix: false
interpreter: false
buildAllTestsAsStandalone: false
#arcade-specific parameters
condition: always()
continueOnError: false
Expand All @@ -27,8 +30,6 @@ parameters:
enableMicrobuild: ''
gatherAssetManifests: false
shouldContinueOnError: false
compileOnHelix: false
interpreter: false

steps:
- template: /eng/pipelines/common/templates/runtimes/build-runtime-tests.yml
Expand All @@ -38,6 +39,7 @@ steps:
archType: ${{ parameters.archType }}
buildConfig: ${{ parameters.buildConfig }}
testBuildArgs: ${{ parameters.testBuildArgs }}
buildAllTestsAsStandalone: ${{ parameters.buildAllTestsAsStandalone }}
# Build a Mono AOT cross-compiler for non-amd64 targets (in this case, just arm64)
- ${{ if and(eq(parameters.runtimeFlavor, 'mono'), in(parameters.runtimeVariant, 'llvmaot', 'llvmfullaot', 'minifullaot')) }}:
- ${{ if eq(parameters.archType, 'arm64') }}:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
archType: ''
buildConfig: ''
testBuildArgs: ''
buildAllTestsAsStandalone: false
#arcade-specific parameters
condition: always()
continueOnError: false
Expand All @@ -18,6 +19,13 @@ steps:
- ${{ if eq(parameters.osGroup, 'windows') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(crossArg) ci ${{ parameters.archType }} $(buildConfigUpper) $(_nativeSanitizersArg) $(priorityArg) $(runtimeFlavorArgs) ${{ parameters.testBuildArgs }} $(runtimeVariantArg) $(librariesConfigurationArg)
displayName: Build Tests
env:
${{ if eq(parameters.buildAllTestsAsStandalone, true) }}:
BuildAllTestsAsStandalone: true

- ${{ if ne(parameters.osGroup, 'windows') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(crossArg) ci os ${{ parameters.osGroup }} ${{ parameters.archType }} $(buildConfigUpper) $(_nativeSanitizersArg) $(priorityArg) $(runtimeFlavorArgs) ${{ parameters.testBuildArgs }} $(runtimeVariantArg) $(librariesConfigurationArg)
displayName: Build Tests
env:
${{ if eq(parameters.buildAllTestsAsStandalone, true) }}:
BuildAllTestsAsStandalone: true
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ jobs:
creator: dotnet-bot
testBuildArgs: tree nativeaot/SmokeTests /p:BuildNativeAOTRuntimePack=true
testRunNamePrefixSuffix: NativeAOT_$(_BuildConfig)
buildAllTestsAsStandalone: true
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@ jobs:
creator: dotnet-bot
testBuildArgs: tree nativeaot/SmokeTests /p:BuildNativeAOTRuntimePack=true
testRunNamePrefixSuffix: NativeAOT_$(_BuildConfig)
buildAllTestsAsStandalone: true
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
- template: /eng/pipelines/common/templates/runtimes/build-runtime-tests-and-send-to-helix.yml
parameters:
creator: dotnet-bot
buildAllTestsAsStandalone: true
testBuildArgs: tree nativeaot/SmokeTests /p:BuildNativeAOTRuntimePack=true
testRunNamePrefixSuffix: NativeAOT_$(_BuildConfig)

Expand Down Expand Up @@ -149,5 +150,6 @@ jobs:
- template: /eng/pipelines/common/templates/runtimes/build-runtime-tests-and-send-to-helix.yml
parameters:
creator: dotnet-bot
buildAllTestsAsStandalone: true
testBuildArgs: tree nativeaot/SmokeTests /p:BuildNativeAOTRuntimePack=true /p:DevTeamProvisioning=adhoc /p:EnableAppSandbox=true
testRunNamePrefixSuffix: NativeAOT_$(_BuildConfig)

0 comments on commit 6f7fe24

Please sign in to comment.