@echo off
SETLOCAL EnableDelayedExpansion

set failed=0

cd bin
for /r "." %%a in (tst_*.exe) do (
  "%%~fa"
  if not ERRORLEVEL 0 (
    echo Test FAILED: "%%~fa"
    set failed=1 
  )
)
cd ..
if %failed% EQU 1 (
  echo ERROR: At least one unit test failed!
  if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" (
    pause
  )
  exit /B 1
)

echo All tests passed
if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" (
  pause
)

Add unit test bat script
Add unit test bat script
