Add Vulkan backend minimal integration test
This commit is contained in:
@@ -8,12 +8,20 @@
|
||||
tests/RHI/Vulkan/
|
||||
|- CMakeLists.txt
|
||||
|- TEST_SPEC.md
|
||||
\- integration/
|
||||
| |- CMakeLists.txt
|
||||
| \- minimal/
|
||||
| |- CMakeLists.txt
|
||||
| |- GT.ppm
|
||||
| \- main.cpp
|
||||
\- unit/
|
||||
|- CMakeLists.txt
|
||||
|- fixtures/
|
||||
| |- VulkanTestFixture.cpp
|
||||
| \- VulkanTestFixture.h
|
||||
|- test_compute.cpp
|
||||
|- test_descriptor_set.cpp
|
||||
|- test_pipeline_layout.cpp
|
||||
|- test_pipeline_state.cpp
|
||||
|- test_render_pass.cpp
|
||||
\- test_shader.cpp
|
||||
@@ -24,6 +32,7 @@ tests/RHI/Vulkan/
|
||||
| 类别 | target |
|
||||
| --- | --- |
|
||||
| Vulkan 后端单元测试 | `rhi_vulkan_tests` |
|
||||
| Vulkan 后端集成测试 | `vulkan_minimal_test` |
|
||||
|
||||
## 3. 当前覆盖
|
||||
|
||||
@@ -45,11 +54,14 @@ tests/RHI/Vulkan/
|
||||
|
||||
- `tests/RHI/unit/` 继续只承载 RHI 抽象层统一语义测试。
|
||||
- `tests/RHI/Vulkan/unit/` 承载 Vulkan 专属断言、原生对象检查和需要直接调用 Vulkan API 的测试。
|
||||
- 如果后续增加 Vulkan 后端集成测试,应在 `tests/RHI/Vulkan/integration/` 下单独建树,而不是继续堆进 generic abstraction suite。
|
||||
- `tests/RHI/Vulkan/integration/` 承载 Vulkan 后端直连场景,当前先落地 `minimal`,后续再按需要扩到 triangle / quad / sphere。
|
||||
|
||||
## 5. 推荐执行方式
|
||||
|
||||
```bash
|
||||
cmake --build build --config Debug --target rhi_vulkan_tests
|
||||
build\tests\RHI\Vulkan\unit\Debug\rhi_vulkan_tests.exe --gtest_brief=1
|
||||
|
||||
cmake --build build --config Debug --target vulkan_minimal_test
|
||||
ctest -C Debug -R vulkan_minimal_test --test-dir build
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user