[mono] [tests] Set error for mono_fullaot runtime tests when no suitable tests are found#96902
Conversation
|
Tagging subscribers to this area: @directhex Issue DetailsReport MSBuild error when compiling selected runtime tests with MotivationThis can happen when locally building selected tests that are disabled in
Previous behaviorBuild doesn't get stopped and the following warning is reported:
New behaviorBuild gets canceled and error is reported:
|
There was a problem hiding this comment.
LGTM!
Only two nits:
- Would it make sense to check on
TestAssembliesinstead, as there is already a condition filtering out paths that exist on line 115? - Maybe the error message can include additional information about tests exclusions, something like:
... Make sure that desired test cases are not excluded from AOT compilation
…ble tests are found (dotnet#96902)
Report MSBuild error when compiling selected runtime tests with
mono_fullaotand no suitable tests are found.Motivation
This can happen when locally building selected tests that are disabled in
issues.targets. This causes:TestExclusionscontain the selected tests,TestScriptswon't be created.runtime/src/tests/build.proj
Line 112 in 980491d
TestDirsto no exists, leading to enumarating all dlls on the disk (/**/*.dll) inruntime/src/tests/build.proj
Line 127 in 980491d
Previous behavior
Build doesn't get stopped and the following warning is reported:
MSBUILD : warning MSB5029: The value "/**/*.dll" of the "Include" attribute in element <ItemGroup> in file "<RUNTIME_ROOT>runtime/src/tests/build.proj (122,37)" is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.New behavior
Build gets canceled and error is reported:
error : No tests found for Mono AOT compilation.