Testing
# Run all tests
cd src && make test # or: make run-tests
# Run specific test (from src directory)
cd src && make test_terminal
# Test with verbose output
cd src && make test_terminal VERBOSE=1
# Run with coverage
cd src && make test COVERAGE=1
Test categories: - test_smoke - Library build and API
accessibility verification (no KOS runtime required) -
test_simple - Minimal test runner for non-hardware tests
(ARC-001 pattern with mocks) - test_terminal - Terminal
functionality (ANSI sequences, erase, DEC Private Modes) -
test_render - PVR2 rendering - test_arc_001 -
Filename-Based Asset Loading Pattern validation -
test_arc_002 - Atomic Scene Bundle pattern validation -
test_tex_001 - Hardware-Decoded Compression Pattern
validation - test_tex_002 - Per-Scene Texture Segmentation
Pattern validation - test_str_002 - Metadata-First Layout
Pattern validation - test_patterns - Unified integration
tests for all SHACHI patterns - test_memory - Memory
management - test_spectre - SPECTRE integration unit tests
- test_input - Input handling - test_vmu - VMU
support - test_crc32 - CRC32 asset validation -
test_debug - Debug system - test_debug_menu -
Debug menu system - test_dec_modes - DEC Private Mode
handling (CSI ?h/?l) - test_error_handling - Error code
consistency across all modules
Test Framework Features: - Mocking support via
d3tui_mock_function() - Benchmarking support via
d3tui_benchmark_run() - Assertion macros:
D3TUI_TEST_ASSERT, D3TUI_TEST_ASSERT_EQUAL,
etc.