Skip to content

Conversation

@damyanp
Copy link
Member

@damyanp damyanp commented Nov 5, 2025

Currently, the various test runners (lit, hcttest.cmd) only run execution tests where the Priority metadata is <2.

Previously, the LongVectors tests didn't set a value for priority, and this resulted in them never being selected. This change adds the missing priority metadata - and then fixes up the tests so they don't immediately fail if the runtime/device doesn't support SM 6.9!

Currently, the various test runners (lit, hcttest.cmd) only run execution tests where the Priority metadata is <2.

Previously, the LongVectors tests didn't set a value for priority, and this resulted in them never being selected.  This change adds the missing priority metadata - and then fixes up the tests so they don't immediately fail if the runtime/device doesn't support SM 6.9!
Copy link
Contributor

@alsepkow alsepkow left a comment

Choose a reason for hiding this comment

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

lgtm

TEST_CLASS_PROPERTY(
"Kits.Specification",
"Device.Graphics.D3D12.DXILCore.ShaderModel69.CoreRequirement")
TEST_METHOD_PROPERTY(L"Priority", L"0")
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, actually wondering if this is right? I tested it seems to work as I would expect. The individual methods all seem to inherit it. But seeing a TEST_METHOD_PROPERTY inside of the TEST_CLASS definition seems weird.

Did you sanity check that? Wondering if this behavior could change in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

I take that back. It shouldn't compile if it isnt expected to work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it looks weird, but this is how it's done in ExecutionTest.cpp. I'm not sure you'd expect a compilation error due to the way TAEF is implemented, but a runtime error maybe. Practically, it seems to apply the same property to all the methods in the class.

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

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

3 participants