@echo off
chcp 65001 >nul
setlocal EnableDelayedExpansion

echo ==========================================
echo  Acoustic Analyzer Batch Validation Test
echo ==========================================
set DEMO=build\demo_offline.exe
if not exist %DEMO% (
    echo [ERROR] demo_offline.exe not found. Run build_demo.bat first.
    exit /b 1
)

echo.
echo [TEST 1] Validation set (all subdirectories)...
%DEMO% dataset\binary\val
if %ERRORLEVEL% NEQ 0 (
    echo [FAIL] Validation test failed.
    exit /b 1
)

echo.
echo [TEST 2] Single ambient file...
%DEMO% dataset\binary\val\ambient\drone_noise_val_000.wav

echo.
echo [TEST 3] Single threat file...
%DEMO% dataset\binary\val\threat\synth_threat_val_000.wav

echo.
echo [OK] All batch tests completed.
endlocal
