Skip to content

Support more test names in difftest #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2025
Merged

Conversation

LegNeato
Copy link
Collaborator

@LegNeato LegNeato commented Jul 1, 2025

These all now work. Previously, the path ones did not work:

  • cargo difftest -- difftests::arch::workgroup_memory (original format)
  • cargo difftest -- arch/workgroup_memory (path-like format)
  • cargo difftest -- arch (directory filter)

These all now work. Previously, the path ones did not work:

  - cargo difftest -- difftests::arch::workgroup_memory (original format)
  - cargo difftest -- arch/workgroup_memory (path-like format)
  - cargo difftest -- arch (directory filter)
Copy link
Member

@Firestar99 Firestar99 left a comment

Choose a reason for hiding this comment

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

Why does this not work?

  • cargo difftest difftests/simple

works:

  • cargo difftest difftests::simple
  • cargo difftest simple
  • cargo difftest difftests

Copy link
Member

@Firestar99 Firestar99 left a comment

Choose a reason for hiding this comment

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

You were always preprending difftests:: so difftests/simple turned into difftests::difftests::simple. I removed that prepend, though that means arch would run a test named difftest::bla::test::bla_test_arch. But since we haven't encountered that issue with compiletest either, I don't think that's a huge deal.

@LegNeato LegNeato added this pull request to the merge queue Jul 2, 2025
@LegNeato
Copy link
Collaborator Author

LegNeato commented Jul 2, 2025

Thanks!

Merged via the queue into Rust-GPU:main with commit 3d5e301 Jul 2, 2025
13 checks passed
@LegNeato LegNeato deleted the difftestname branch July 2, 2025 12:23
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