Rename 'excludemonofailures' to 'mono' (#62749)
authorTomáš Rylek <trylek@microsoft.com>
Tue, 14 Dec 2021 06:38:55 +0000 (07:38 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 06:38:55 +0000 (07:38 +0100)
docs/workflow/testing/mono/testing.md
eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml
eng/pipelines/common/templates/runtimes/build-test-job.yml
eng/pipelines/common/templates/runtimes/run-test-job.yml
eng/pipelines/common/templates/runtimes/wasm-runtime-and-send-to-helix.yml
src/tests/build.cmd
src/tests/build.sh

index 7d34ee1..41cdad4 100644 (file)
@@ -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:
@@ -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:
@@ -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
index f42787a..2e883dc 100644 (file)
@@ -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
index f7cc720..b05315f 100644 (file)
@@ -94,7 +94,7 @@ jobs:
 
       - ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
         - name: runtimeFlavorArgs
-          value: '-excludemonofailures'
+          value: '-mono'
 
     steps:
 
index 4776d80..baba146 100644 (file)
@@ -101,7 +101,7 @@ jobs:
 
     - ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
       - name: runtimeFlavorArgs
-        value: '-excludemonofailures'
+        value: '-mono'
 
     - name: runtimeVariantArg
       value: ''
index 2e9fa6d..6dd5f6b 100644 (file)
@@ -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
index b26cd80..e0a981b 100644 (file)
@@ -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!]==[] (
index 35a3092..83c1020 100755 (executable)
@@ -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.")
 
@@ -248,6 +248,10 @@ handle_arguments_local() {
             __Mono=1
             ;;
 
+        mono|-mono)
+            __Mono=1
+            ;;
+
         mono_aot|-mono_aot)
             __Mono=1
             __MonoAot=1