Skip to content

Conversation

@marxin
Copy link
Contributor

@marxin marxin commented Jan 9, 2026

That's going to help filtering out the tests if a feature is not enabled (e.g. for cranelift on LoongArch64).

Copilot AI review requested due to automatic review settings January 9, 2026 13:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors test functions in the compilers test suite to use the #[compiler_test] macro instead of the standard #[test] attribute. This enables these tests to run across all available compilers (LLVM, Cranelift, Singlepass) and allows for better filtering when certain compiler features are not enabled on specific architectures (e.g., Cranelift on LoongArch64).

Key changes:

  • Tests now receive a Config parameter that provides compiler-specific configuration
  • Store instances are created via config.store() instead of using default initialization
  • Functions return Result<()> to align with the compiler test framework conventions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/compilers/deterministic.rs Converted two deterministic compilation tests to use the compiler_test framework, updating signatures and store creation
tests/compilers/artifact.rs Converted artifact serialization roundtrip test to use the compiler_test framework, adding Result return type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants