Skip to content
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

Need to invoke slang-test with full path when running individual unit test #6449

Open
aleino-nv opened this issue Feb 25, 2025 · 3 comments
Open
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang

Comments

@aleino-nv
Copy link
Collaborator

Note that no tests are run in the second invocation:

C:\Users\aleino\workspaces\slang>build\Debug\bin\slang-test.exe slang-unit-test-tool/byteEncode 
Supported backends: fxc dxc glslang spirv-dis visualstudio genericcpp llvm spirv-opt tint
passed test: 'slang-unit-test-tool/byteEncode.internal' 
===
100% of tests passed (1/1)
===
C:\Users\aleino\workspaces\slang>slang-test slang-unit-test-tool/byteEncode 
Supported backends: fxc dxc glslang spirv-dis visualstudio genericcpp llvm spirv-opt tint
no tests run
@aleino-nv aleino-nv self-assigned this Feb 25, 2025
@csyonghe
Copy link
Collaborator

Why is slang-test a discoverable command from slang root?

@jkwak-work
Copy link
Collaborator

I think... the issue is that, when you install Vulkan SDK, you get slangc.exe as well, which is located in somewhere unexpected.

I am not sure if slang-test is also a part of Vulkan SDK, probably not. But you need to be careful with which path you are calling from.

@aleino-nv
Copy link
Collaborator Author

Why is slang-test a discoverable command from slang root?

I have it in PATH

@aleino-nv aleino-nv assigned bmillsNV and unassigned aleino-nv Mar 12, 2025
@bmillsNV bmillsNV added this to the Q2 2025 (Spring) milestone Mar 13, 2025
@bmillsNV bmillsNV added the goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang label Mar 13, 2025
@bmillsNV bmillsNV removed their assignment Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang
Projects
None yet
Development

No branches or pull requests

4 participants