@echo off
echo ===== Running Sauna Driver Integration Tests =====

echo.
echo Building integration tests...
cl /EHsc /std:c++17 /I"../../headers" /Fe"integration_tests.exe" integration_test.cpp ../lighthouse_driver_wrapper.cpp ../imu_data_provider.cpp ../sauna_device_driver.cpp test_utils.cpp

if %ERRORLEVEL% neq 0 (
    echo Failed to build integration tests.
    exit /b %ERRORLEVEL%
)

echo.
echo Running integration tests...
echo Note: These tests require manual intervention and SteamVR to be installed but not running.
echo Please follow the instructions on screen.
echo.
integration_tests.exe

echo.
echo Integration tests completed.
pause