Skip to content

[tests] Delete legacy mmptest suite and port two tests to tests/dotnet/UnitTests. Fixes #26145.#26146

Draft
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/literate-doodle
Draft

[tests] Delete legacy mmptest suite and port two tests to tests/dotnet/UnitTests. Fixes #26145.#26146
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/literate-doodle

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

The tests/mmptest/ suite tested the classic mmp bundler and the legacy Xamarin.Mac SDK, none of which exist after the migration to .NET. The project targets .NET Framework v4.7.2 and references a mmp.exe that's no longer built, so it can't build and hasn't run in a long time.

Delete the entire suite, and port the two testcases that still cover relevant behavior into the running tests/dotnet/UnitTests suite:

  • BuildWithUnusualAssemblyName: build an app with an assembly name containing non-ASCII characters, spaces or a comma.
  • HardenedRuntimeCodesign: verify enabling the hardened runtime passes the expected options to codesign.

Also remove the now-orphaned references to the suite:

  • the /tests/mmptest CODEOWNERS entry
  • the MmpTestFramework native test framework
  • the dead FrameworkBuilder helper in tests/common/mac/ProjectTestHelpers.cs

Fixes #26145.

🤖 Pull request created by Copilot

…t/UnitTests

The tests/mmptest/ suite tested the classic `mmp` bundler and the legacy
Xamarin.Mac SDK, none of which exist after the migration to .NET. The project
targets .NET Framework v4.7.2 and references a `mmp.exe` that's no longer built,
so it can't build and hasn't run in a long time.

Delete the entire suite, and port the two testcases that still cover relevant
behavior into the running tests/dotnet/UnitTests suite:

- BuildWithUnusualAssemblyName: build an app with an assembly name containing
  non-ASCII characters, spaces or a comma.
- HardenedRuntimeCodesign: verify enabling the hardened runtime passes the
  expected options to codesign.

Also remove the now-orphaned references to the suite:
- the /tests/mmptest CODEOWNERS entry
- the MmpTestFramework native test framework
- the dead FrameworkBuilder helper in tests/common/mac/ProjectTestHelpers.cs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: e92097a906c70955cdfc2df8783674066643d872 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #e92097a] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 1 tests failed, 183 tests passed.

Failures

❌ dotnettests tests (macOS) [attempt 2]

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.DotNetProjectTest.BuildWithUnusualAssemblyName("pi...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...
    • Xamarin.Tests.DotNetProjectTest.BuildWithUnusualAssemblyName("Te...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...
    • Xamarin.Tests.DotNetProjectTest.BuildWithUnusualAssemblyName("Us...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...
    • ... and 2 more

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

🔥 Failed catastrophically on VSTS: test results - monotouch_tvos (no summary found).

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: e92097a906c70955cdfc2df8783674066643d872 [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete the legacy tests/mmptest/ suite (and port the few still-relevant tests)

3 participants