Skip to main content

Module testing

Module testing 

Source
Expand description

E2E visual testing framework for GPU kernels E2E Visual Testing Framework for GPU Kernels

This module provides pixel-level visual regression testing for GPU computations using the sovereign stack only - NO external crates.

§Architecture (Sovereign Stack)

GPU Output → GpuPixelRenderer → trueno-viz → PNG → compare_png_bytes → Pass/Fail
                                                          ↑
                                                   Golden Baseline

§Dependencies (Sovereign Stack)

  • trueno-viz v0.1.4: PNG encoding, Framebuffer (optional, feature = “viz”)
  • simular v0.2.0: Deterministic RNG for reproducible tests
  • renacer v0.7.0: Profiling and anomaly detection (optional)

§Features

  • viz: Enable GPU pixel renderer with trueno-viz
  • stress-test: Enable randomized frame-by-frame stress testing
  • tui-monitor: Enable TUI monitoring mode via presentar

Re-exports§

pub use stress::verify_performance;
pub use stress::Anomaly;
pub use stress::AnomalyKind;
pub use stress::FrameProfile;
pub use stress::PerformanceResult;
pub use stress::PerformanceThresholds;
pub use stress::StressConfig;
pub use stress::StressReport;
pub use stress::StressRng;
pub use stress::StressTestRunner;
pub use tui::progress_bar;
pub use tui::render_to_string;
pub use tui::TuiConfig;
pub use tui::TuiState;

Modules§

stress
Stress Testing Framework with Randomized Inputs
tui
TUI Monitoring Mode for Stress Testing

Enums§

BugClass
GPU-specific bug classification based on diff patterns