2019-08-28 01:11:01 +03:00
|
|
|
@echo off
|
2019-10-24 22:43:35 +03:00
|
|
|
cd %~dp0
|
2019-08-28 01:11:01 +03:00
|
|
|
call tools\gen-version.cmd
|
|
|
|
@setlocal ENABLEEXTENSIONS
|
|
|
|
|
2019-09-07 18:51:27 +03:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2022-03-10 10:00:41 +03:00
|
|
|
set GTEST_PATH=third_party\googletest
|
|
|
|
if NOT EXIST %GTEST_PATH%\CMakeLists.txt (
|
2023-01-07 02:56:51 +03:00
|
|
|
git clone --depth 1 --branch release-1.12.1 https://github.com/google/googletest %GTEST_PATH%
|
2022-03-10 10:00:41 +03:00
|
|
|
)
|
|
|
|
|
2019-08-28 01:39:27 +03:00
|
|
|
set PLATFORM=
|
|
|
|
|
2019-08-28 01:11:01 +03:00
|
|
|
REM Possible platforms: Win32|x64
|
2019-08-28 01:39:27 +03:00
|
|
|
set PLAT=%1
|
2019-08-28 01:11:01 +03:00
|
|
|
REM Possible configurations: Release|Debug
|
|
|
|
set CONFIGURATION=%2
|
|
|
|
|
2020-09-10 13:13:55 +03:00
|
|
|
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
|
|
|
|
|
2021-05-28 19:10:18 +03:00
|
|
|
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
|
2019-08-28 01:39:27 +03:00
|
|
|
Solutions\out\%CONFIGURATION%\%PLAT%\UnitTests\UnitTests.exe
|
2019-08-28 01:11:01 +03:00
|
|
|
if errorLevel 1 goto end
|
2019-08-28 01:39:27 +03:00
|
|
|
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
|