Skip to content

Commit

Permalink
Rename 'excludemonofailures' to 'mono' (#62749)
Browse files Browse the repository at this point in the history
  • Loading branch information
trylek authored Dec 14, 2021
1 parent 5f9a532 commit c3683b0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/workflow/testing/mono/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ To build the runtime tests for Mono JIT or interpreter:

```
cd src/tests
./build.sh excludemonofailures <release|debug>
./build.sh mono <release|debug>
```

To build an individual test, test directory, or a whole subdirectory tree, use the `-test:`, `-dir:` or `-tree:` options (without the src/tests prefix)
For example: `./build.sh excludemonofailures release -test:JIT/opt/InstructionCombining/DivToMul.csproj`
For example: `./build.sh mono release -test:JIT/opt/InstructionCombining/DivToMul.csproj`


Run individual test:
Expand All @@ -47,7 +47,7 @@ bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivT
### WebAssembly:
Build the runtime tests for WebAssembly
```
$(REPO_ROOT)/src/tests/build.sh -excludemonofailures os Browser wasm <Release/Debug>
$(REPO_ROOT)/src/tests/build.sh -mono os Browser wasm <Release/Debug>
```

The last few lines of the build log should contain something like this:
Expand All @@ -64,7 +64,7 @@ To run all tests, execute that command, adding `wasm` to the end.
### Android:
Build the runtime tests for Android x64/ARM64
```
$(REPO_ROOT)/src/tests/build.sh -excludemonofailures os Android <x64/arm64> <Release/Debug>
$(REPO_ROOT)/src/tests/build.sh -mono os Android <x64/arm64> <Release/Debug>
```

Run one test wrapper from repo root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parameters:


steps:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -excludemonofailures os ${{ parameters.osGroup }} ${{ parameters.archType }} /p:RuntimeVariant=${{ parameters.runtimeVariant }} $(buildConfigUpper)
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -mono os ${{ parameters.osGroup }} ${{ parameters.archType }} /p:RuntimeVariant=${{ parameters.runtimeVariant }} $(buildConfigUpper)
displayName: Build Tests

# Send tests to Helix
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/templates/runtimes/build-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:

- ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
- name: runtimeFlavorArgs
value: '-excludemonofailures'
value: '-mono'

steps:

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/templates/runtimes/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
- name: runtimeFlavorArgs
value: '-excludemonofailures'
value: '-mono'

- name: runtimeVariantArg
value: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ parameters:


steps:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:RuntimeVariant=monointerpreter /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -excludemonofailures os Browser wasm $(buildConfigUpper)
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:RuntimeVariant=monointerpreter /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -mono os Browser wasm $(buildConfigUpper)
displayName: Build Tests

# Send tests to Helix
Expand Down
1 change: 1 addition & 0 deletions src/tests/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ if /i "%1" == "Exclude" (set __Exclude=%2&set processedArgs=!proce
if /i "%1" == "-priority" (set __Priority=%2&shift&set processedArgs=!processedArgs! %1=%2&shift&goto Arg_Loop)
if /i "%1" == "allTargets" (set "__BuildNeedTargetArg=/p:CLRTestBuildAllTargets=%1"&set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)
if /i "%1" == "-excludemonofailures" (set __Mono=1&set processedArgs=!processedArgs!&shift&goto Arg_Loop)
if /i "%1" == "-mono" (set __Mono=1&set processedArgs=!processedArgs!&shift&goto Arg_Loop)
if /i "%1" == "--" (set processedArgs=!processedArgs! %1&shift&goto Arg_Loop)

if [!processedArgs!]==[] (
Expand Down
6 changes: 5 additions & 1 deletion src/tests/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ usage_list+=("-allTargets: Build managed tests for all target platforms (includi

usage_list+=("-rebuild: if tests have already been built - rebuild them.")
usage_list+=("-runtests: run tests after building them.")
usage_list+=("-excludemonofailures: Mark the build as running on Mono runtime so that mono-specific issues are honored.")
usage_list+=("-mono: Build the tests for the Mono runtime honoring mono-specific issues.")

usage_list+=("-log: base file name to use for log files (used in lab pipelines that build tests in multiple steps to retain logs for each step.")

Expand Down Expand Up @@ -248,6 +248,10 @@ handle_arguments_local() {
__Mono=1
;;

mono|-mono)
__Mono=1
;;

mono_aot|-mono_aot)
__Mono=1
__MonoAot=1
Expand Down

0 comments on commit c3683b0

Please sign in to comment.