-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6d2e38
commit 7f57584
Showing
4 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
parameters: | ||
buildConfig: '' | ||
archType: '' | ||
osGroup: '' | ||
osSubgroup: '' | ||
platform: '' | ||
pgoType: '' | ||
runtimeVariant: '' | ||
uploadTests: false | ||
testFilter: tree nativeaot | ||
runSingleFileTests: true | ||
|
||
steps: | ||
# Can't run arm/arm64 tests on x64 build machines | ||
- ${{ if and(ne(parameters.archType, 'arm'), ne(parameters.archType, 'arm64')) }}: | ||
|
||
# Build coreclr native test output | ||
- ${{ if eq(parameters.osGroup, 'windows') }}: | ||
- script: $(Build.SourcesDirectory)/src/tests/build.cmd nativeaot $(buildConfigUpper) ${{ parameters.archType }} ${{ parameters.testFilter }} /p:NativeAotMultimodule=true | ||
displayName: Build tests | ||
- ${{ if ne(parameters.osGroup, 'windows') }}: | ||
- script: $(Build.SourcesDirectory)/src/tests/build.sh nativeaot $(buildConfigUpper) ${{ parameters.archType }} '${{ parameters.testFilter }}' | ||
displayName: Build tests | ||
|
||
- ${{ if eq(parameters.runSingleFileTests, true) }}: | ||
- ${{ if eq(parameters.osGroup, 'windows') }}: | ||
- script: $(Build.SourcesDirectory)/src/tests/run.cmd runnativeaottests $(buildConfigUpper) ${{ parameters.archType }} | ||
displayName: Run tests in single file mode | ||
- ${{ if ne(parameters.osGroup, 'windows') }}: | ||
- script: $(Build.SourcesDirectory)/src/tests/run.sh --runnativeaottests $(buildConfigUpper) ${{ parameters.archType }} | ||
displayName: Run tests in single file mode | ||
|
||
- ${{ if eq(parameters.osGroup, 'windows') }}: | ||
- script: $(Build.SourcesDirectory)/src/tests/run.sh runnativeaottests nativeaotmultimodule $(buildConfigUpper) ${{ parameters.archType }} | ||
displayName: Run tests in multifile mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters