Commit f58d7f2
Fix test discovery failure: defer gtest_discover_tests to test time
gtest_discover_tests() runs the test binary at build time to enumerate
tests, but the CI container has no NVIDIA driver so libnvidia-ml.so.1
is missing at runtime. The binary links fine against the CUDA toolkit
stub but cannot execute.
- Use DISCOVERY_MODE PRE_TEST to defer discovery to ctest runtime
- Add LD_LIBRARY_PATH for CUDA stubs in the unit-tests CI job so the
tests can load when ctest actually runs them
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2db0f39 commit f58d7f2
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
0 commit comments