@echo off
echo ===== Running Sauna Driver Unit Tests =====

echo.
echo Building unit tests...
cl /EHsc /std:c++17 /I"../../headers" /Fe"unit_tests.exe" run_unit_tests.cpp test_imu_data_provider.cpp test_lighthouse_driver_wrapper.cpp test_sauna_device_driver.cpp test_utils.cpp

if %ERRORLEVEL% neq 0 (
    echo Failed to build unit tests.
    exit /b %ERRORLEVEL%
)

echo.
echo Running unit tests...
unit_tests.exe

echo.
echo Unit tests completed.
pause