Created
February 24, 2014 16:40
-
-
Save milgner/9191862 to your computer and use it in GitHub Desktop.
Script to run all test projects (which are based on Google test) in TeamCity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd %~dp0..\build\%1\tests | |
call :treeProcess | |
goto :eof | |
:treeProcess | |
for %%e in (*.exe) do ( | |
%%e --gtest_output=xml:%TEMP%\%%e.xml | |
echo ##teamcity[importData type='junit' path='%TEMP%\%%e.xml'] | |
) | |
for /D %%d in (*) do ( | |
cd %%d | |
call :treeProcess | |
cd .. | |
) | |
exit /b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment