cpp_client_telemetry/build-tests.cmd

43 строки
1.5 KiB
Batchfile
Исходник Обычный вид История

2019-08-28 01:11:01 +03:00
@echo off
cd %~dp0
2019-08-28 01:11:01 +03:00
call tools\gen-version.cmd
@setlocal ENABLEEXTENSIONS
if DEFINED GIT_PULL_TOKEN (
rd /s /q lib\modules
git clone https://%GIT_PULL_TOKEN%:x-oauth-basic@github.com/microsoft/cpp_client_telemetry_modules.git lib\modules
)
set GTEST_PATH=third_party\googletest
if NOT EXIST %GTEST_PATH%\CMakeLists.txt (
git clone --depth 1 --branch release-1.12.1 https://github.com/google/googletest %GTEST_PATH%
)
set PLATFORM=
2019-08-28 01:11:01 +03:00
REM Possible platforms: Win32|x64
set PLAT=%1
2019-08-28 01:11:01 +03:00
REM Possible configurations: Release|Debug
set CONFIGURATION=%2
set CUSTOM_PROPS=
if ("%3"=="") goto skip
set CUSTOM_PROPS="/p:ForceImportBeforeCppTargets=%3"
echo Using custom properties file for the build:
echo %CUSTOM_PROPS%
:skip
2019-08-28 01:11:01 +03:00
set MAXCPUCOUNT=%NUMBER_OF_PROCESSORS%
set SOLUTION=Solutions\MSTelemetrySDK.sln
msbuild %SOLUTION% /target:sqlite:Rebuild,zlib:Rebuild,Tests\gmock:Rebuild,Tests\gtest:Rebuild,Tests\UnitTests:Rebuild,Tests\FuncTests:Rebuild /p:BuildProjectReferences=true /maxcpucount:%MAXCPUCOUNT% /detailedsummary /p:Configuration=%CONFIGURATION% /p:Platform=%PLAT% %CUSTOM_PROPS%
2019-08-28 01:11:01 +03:00
if errorLevel 1 goto end
Solutions\out\%CONFIGURATION%\%PLAT%\UnitTests\UnitTests.exe
2019-08-28 01:11:01 +03:00
if errorLevel 1 goto end
Solutions\out\%CONFIGURATION%\%PLAT%\FuncTests\FuncTests.exe
2019-08-28 01:11:01 +03:00
:end
2020-07-20 15:17:03 +03:00
if errorLevel 1 goto end
start "" Solutions\out\%CONFIGURATION%\%PLAT%\FuncTests\FuncTests.exe --gtest_filter=MultipleLogManagersTests.MultiProcessesLogManager
start "" Solutions\out\%CONFIGURATION%\%PLAT%\FuncTests\FuncTests.exe --gtest_filter=MultipleLogManagersTests.MultiProcessesLogManager
:end