@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt

echo Testing (Google Test)...

FOR /F %%i IN (__tmp_gtest.txt) DO (
	echo %%i
	%%i
)
del __tmp_gtest.txt

@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt

echo Testing (Google Test)...

set failures=0

FOR /F %%i IN (__tmp_gtest.txt) DO (
	echo %%i
	%%i
	set /A failures=%failures%+1
)
del __tmp_gtest.txt

EXIT /B 1

Add CI build failure on failed GTests
Add CI build failure on failed GTests
