Rename GT_minimal.ppm to GT.ppm for D3D12 minimal integration test
- Rename golden image file to match simpler convention - Update CMakeLists.txt reference - Update TEST_SPEC.md documentation - Update run_tests.py reference
This commit is contained in:
@@ -275,12 +275,7 @@ class TestRunner:
|
|||||||
|
|
||||||
minimal_exe = integration_dir / "D3D12_Minimal.exe"
|
minimal_exe = integration_dir / "D3D12_Minimal.exe"
|
||||||
gt_minimal = (
|
gt_minimal = (
|
||||||
self.source_dir
|
self.source_dir / "tests" / "RHI" / "D3D12" / "integration" / "GT.ppm"
|
||||||
/ "tests"
|
|
||||||
/ "RHI"
|
|
||||||
/ "D3D12"
|
|
||||||
/ "integration"
|
|
||||||
/ "GT_minimal.ppm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if minimal_exe.exists() and gt_minimal.exists():
|
if minimal_exe.exists() and gt_minimal.exists():
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ integration/
|
|||||||
├── run.bat # Windows 启动脚本
|
├── run.bat # Windows 启动脚本
|
||||||
├── minimal/ # 最小化测试
|
├── minimal/ # 最小化测试
|
||||||
│ ├── main.cpp
|
│ ├── main.cpp
|
||||||
│ ├── GT_minimal.ppm
|
│ ├── GT.ppm
|
||||||
│ └── Res/
|
│ └── Res/
|
||||||
│ └── Shader/
|
│ └── Shader/
|
||||||
│ ├── ndctriangle.hlsl
|
│ ├── ndctriangle.hlsl
|
||||||
@@ -134,7 +134,7 @@ add_test(NAME D3D12_Minimal_Integration
|
|||||||
COMMAND ${Python3_EXECUTABLE} $<TARGET_FILE_DIR:D3D12_Minimal>/run_integration_test.py
|
COMMAND ${Python3_EXECUTABLE} $<TARGET_FILE_DIR:D3D12_Minimal>/run_integration_test.py
|
||||||
$<TARGET_FILE:D3D12_Minimal>
|
$<TARGET_FILE:D3D12_Minimal>
|
||||||
minimal.ppm
|
minimal.ppm
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/minimal/GT_minimal.ppm
|
${CMAKE_CURRENT_SOURCE_DIR}/minimal/GT.ppm
|
||||||
5
|
5
|
||||||
WORKING_DIRECTORY $<TARGET_FILE_DIR:D3D12_Minimal>
|
WORKING_DIRECTORY $<TARGET_FILE_DIR:D3D12_Minimal>
|
||||||
)
|
)
|
||||||
@@ -160,7 +160,7 @@ add_test(NAME D3D12_Minimal_Integration
|
|||||||
|
|
||||||
| 测试名 | Golden Image | 状态 |
|
| 测试名 | Golden Image | 状态 |
|
||||||
|--------|-------------|------|
|
|--------|-------------|------|
|
||||||
| D3D12_Minimal_Integration | `minimal/GT_minimal.ppm` | ✅ 通过 |
|
| D3D12_Minimal_Integration | `minimal/GT.ppm` | ✅ 通过 |
|
||||||
| D3D12_RenderModel_Integration | `render_model/GT.ppm` | ❌ 待修复 |
|
| D3D12_RenderModel_Integration | `render_model/GT.ppm` | ❌ 待修复 |
|
||||||
| D3D12_Triangle_Integration | `triangle/GT_triangle.ppm` | 🔄 待实现 |
|
| D3D12_Triangle_Integration | `triangle/GT_triangle.ppm` | 🔄 待实现 |
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ tests/RHI/D3D12/
|
|||||||
├── run.bat # 公共脚本
|
├── run.bat # 公共脚本
|
||||||
├── minimal/ # 测试子文件夹
|
├── minimal/ # 测试子文件夹
|
||||||
│ ├── main.cpp
|
│ ├── main.cpp
|
||||||
│ ├── GT_minimal.ppm
|
│ ├── GT.ppm
|
||||||
│ └── Res/
|
│ └── Res/
|
||||||
├── render_model/ # 测试子文件夹
|
├── render_model/ # 测试子文件夹
|
||||||
│ ├── main.cpp # 有 API 问题,待修复
|
│ ├── main.cpp # 有 API 问题,待修复
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ add_test(NAME D3D12_Minimal_Integration
|
|||||||
COMMAND ${Python3_EXECUTABLE} $<TARGET_FILE_DIR:D3D12_Minimal>/run_integration_test.py
|
COMMAND ${Python3_EXECUTABLE} $<TARGET_FILE_DIR:D3D12_Minimal>/run_integration_test.py
|
||||||
$<TARGET_FILE:D3D12_Minimal>
|
$<TARGET_FILE:D3D12_Minimal>
|
||||||
minimal.ppm
|
minimal.ppm
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/minimal/GT_minimal.ppm
|
${CMAKE_CURRENT_SOURCE_DIR}/minimal/GT.ppm
|
||||||
5
|
5
|
||||||
WORKING_DIRECTORY $<TARGET_FILE_DIR:D3D12_Minimal>
|
WORKING_DIRECTORY $<TARGET_FILE_DIR:D3D12_Minimal>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user