-
Notifications
You must be signed in to change notification settings - Fork 235
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
How to run a specific test? #890
Comments
For NEON, the test definition makes it such that I can do Looking at the x86 test setup, it looks like you can only run per SSE extension. So I don't think you can do that. |
Btw, you can use
So for SSE/SSE2, you cannot run an individual test. But for AVX512, you an run just xorsign or roundscale tests. |
Zhi's answer is correct, but here is a little more info which may help: Using meson to run a single test works, but the disadvantage is that it will actually compile everything. You can also use ninja to compile a single test and it will only compile that test I often use this during development; my go-to is something like: If you're using Meson you have to run all the tests in a specific suite. On x86 prior to AVX-512 that can be pretty annoying since all the (for example) SSE2 tests are in a single suite, but for AVX-512 as well as most other architectures the tests are broken up by function instead of ISA extension, so for example you can use Honestly, the tests are really all fast enough that running a single suite shouldn't really be a problem (SVML is, IMHO, the only real possible exception), but if if you use CMake then the test suite uses µnit which is capable of running a single test (just pass the test name as an argument to |
Hey Evan. Can you copy this information into the docs or a wiki page? |
Sorry for my late response, and thanks for your info. I will take a look at it! |
Related to the contributing document , I thought if I knew the way to run a specific test, it would be useful to debug or report. Is there a way to do it?
How to run only tests for a specific family? e.g. How to run tests for only
roundscale
insimde_avx512_families
inmeson.build
(top level).How to run a specific test? e.g. How to run only
test_simde_mm_cvt_ps2pi
intest/x86/sse.c
?Thanks.
The text was updated successfully, but these errors were encountered: