-
Notifications
You must be signed in to change notification settings - Fork 186
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
Implement FileCheck tests for several test commands #2747
Conversation
premake5.lua
Outdated
-- We link with llvm here for FileCheck support, LLVM-14 is the | ||
-- library required according to llvm-config (llvm-config isn't in the | ||
-- binary llvm distribution on Windows, so just inline the output here) | ||
links { "compiler-core", "slang", "core", "miniz", "lz4", "LLVM-13" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not done through slang-llvm
wrapper?
Does this mean I need to pull llvm repo locally and setup my environment so the llvm headers can be found?
af79031
to
f74519a
Compare
`slang-test -- tests/foo tests/bar`
Makes this issue present consistently: shader-slang#2766
- SIMPLE, SIMPLE_EX - SIMPLE_LINE - REFLECTION, CPU_REFLECTION - CROSS_COMPILE It does not currently support the render tests or the COMPARE_COMPUTE commands It is invoked by adding `(filecheck=MY_FILECHECK_PREFIX)` to the test command, for example TEST:CROSS_COMPILE(filecheck=SPIRV): -target spirv-assembly
Which were waiting on FileCheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! This will significantly improve our productivity when working with tests. Thank you!
It does not currently support the render tests or the COMPARE_COMPUTE commands
It is invoked by adding
(filecheck=MY_FILECHECK_PREFIX)
to the test command, for exampleTEST:CROSS_COMPILE(filecheck=SPIRV): -target spirv-assembly
Need to go through and neaten things up, and finish support for the
compute tests (which have both data and compiler diagnostic output to
confuse things).
depends on shader-slang/slang-llvm#64