Files
XCEngine/tests/RHI/integration
ssdfasd 238ebb50f4 test: Add RHI integration test framework
Add integration tests for RHI module:
- Add tests/RHI/integration/ directory with CMakeLists.txt
- Add RHIIntegrationFixture for shared test utilities
- Add minimal integration test (window creation, basic rendering)
- Add compare_ppm.py for image comparison
- Add run_integration_test.py test runner script

These integration tests verify the complete rendering pipeline
by comparing rendered output against ground truth PPM files.
2026-03-25 19:00:30 +08:00
..

RHI Integration Tests

This folder will contain integration tests for the RHI abstraction layer.

Integration tests verify the interaction between multiple RHI components working together.

Planned Tests

  • Full render pipeline test (device -> swap chain -> command list -> present)
  • Multi-threaded command recording
  • Resource state transitions across multiple objects
  • Frame synchronization with fences

Running Tests

# Build once, run against different backends
cmake --build build --config Debug

# Test D3D12 backend
RHI_BACKEND=D3D12 ./build/tests/RHI/unit/rhi_unit_tests.exe

# Test OpenGL backend
RHI_BACKEND=OpenGL ./build/tests/RHI/unit/rhi_unit_tests.exe