@echo off REM ============================================================ REM HCIE-Rust v3.05 — Bulk All-Tests Execution Script (Windows) REM Usage: run_all_tests.bat [--no-io] [--no-4k] [--ignored] REM ============================================================ setlocal enabledelayedexpansion set ROOT_DIR=%~dp0 cd /d "%ROOT_DIR%" || exit /b 1 set PASS=0 set FAIL=0 set SKIP=0 set START_TIME=%TIME% set SKIP_IO=0 set SKIP_4K=0 set INCLUDE_IGNORED=0 :parse_args if "%~1"=="" goto :done_parse if /I "%~1"=="--no-io" set SKIP_IO=1 if /I "%~1"=="--no-4k" set SKIP_4K=1 if /I "%~1"=="--ignored" set INCLUDE_IGNORED=1 shift goto :parse_args :done_parse call :RUN_CRATE "hcie-protocol" call :RUN_CRATE "hcie-color" call :RUN_CRATE "hcie-blend" call :RUN_CRATE "hcie-brush-engine" call :RUN_CRATE "hcie-draw" call :RUN_CRATE "hcie-composite" call :RUN_CRATE "hcie-filter" call :RUN_CRATE "hcie-selection" call :RUN_CRATE "hcie-vector" call :RUN_CRATE "hcie-history" if %SKIP_IO%==1 ( echo [SKIP] hcie-io set /a SKIP+=1 ) else ( call :RUN_CRATE "hcie-io" ) call :RUN_CRATE "hcie-psd" call :RUN_CRATE "hcie-vision" call :RUN_CRATE "hcie-build-info" if %SKIP_4K%==1 ( echo [SKIP 4K benchmark in hcie-engine-api] cargo test -p hcie-engine-api --skip benchmark_4k_stroke_on_multilayer_document if !ERRORLEVEL!==0 ( set /a PASS+=1 ) else ( set /a FAIL+=1 ) ) else ( call :RUN_CRATE "hcie-engine-api" ) call :RUN_CRATE "hcie-gui-egui" call :RUN_CRATE "hcie-iced-gui" call :RUN_CRATE "hcie-dry-media-brushes" call :RUN_CRATE "hcie-paint-brushes" call :RUN_CRATE "hcie-digital-brushes" call :RUN_CRATE "hcie-watercolor-brushes" call :RUN_CRATE "hcie-ink-brushes" if %INCLUDE_IGNORED%==1 ( echo. echo ===== Running IGNORED tests ===== cargo test -p hcie-engine-api -- --ignored cargo test -p hcie-brush-engine -- --ignored cargo test -p hcie-iced-gui -- --ignored cargo test -p hcie-fx -- --ignored ) echo ============================================================ echo BULK TEST EXECUTION COMPLETE echo Crates passed: %PASS% echo Crates failed: %FAIL% echo Crates skipped: %SKIP% echo Start time: %START_TIME% echo ============================================================ exit /b %FAIL% :RUN_CRATE set CRATE=%~1 echo. echo ===== Running: %CRATE% ===== cargo test -p %CRATE% if %ERRORLEVEL%==0 ( set /a PASS+=1 ) else ( set /a FAIL+=1 ) goto :EOF