зеркало из https://github.com/dotnet/orleans.git
51 строка
1.7 KiB
Batchfile
51 строка
1.7 KiB
Batchfile
@if not defined _echo @echo off
|
|
setlocal
|
|
|
|
if not defined BuildConfiguration SET BuildConfiguration=Debug
|
|
|
|
SET CMDHOME=%~dp0
|
|
@REM Remove trailing backslash \
|
|
set CMDHOME=%CMDHOME:~0,-1%
|
|
|
|
:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
|
|
:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
|
|
set Platform=
|
|
|
|
:: Disable multilevel lookup https://github.com/dotnet/core-setup/blob/main/Documentation/design-docs/multilevel-sharedfx-lookup.md
|
|
set DOTNET_MULTILEVEL_LOOKUP=0
|
|
|
|
pushd "%CMDHOME%"
|
|
@cd
|
|
|
|
SET TestResultDir=%CMDHOME%\Binaries\%BuildConfiguration%\TestResults
|
|
|
|
if not exist %TestResultDir% md %TestResultDir%
|
|
|
|
SET _Directory=bin\%BuildConfiguration%\net461\win10-x64
|
|
|
|
set TESTS=^
|
|
'%CMDHOME%\test\Extensions\TesterAzureUtils',^
|
|
'%CMDHOME%\test\TesterInternal',^
|
|
'%CMDHOME%\test\Tester',^
|
|
'%CMDHOME%\test\DefaultCluster.Tests',^
|
|
'%CMDHOME%\test\NonSilo.Tests',^
|
|
'%CMDHOME%\test\Extensions\AWSUtils.Tests',^
|
|
'%CMDHOME%\test\Extensions\Consul.Tests',^
|
|
'%CMDHOME%\test\Extensions\ServiceBus.Tests',^
|
|
'%CMDHOME%\test\Extensions\TesterAdoNet',^
|
|
'%CMDHOME%\test\Extensions\TesterZooKeeperUtils',^
|
|
'%CMDHOME%\test\Transactions\Orleans.Transactions.Tests',^
|
|
'%CMDHOME%\test\Transactions\Orleans.Transactions.Azure.Test',^
|
|
'%CMDHOME%\test\TestInfrastructure\Orleans.TestingHost.Tests',^
|
|
'%CMDHOME%\test\DependencyInjection.Tests',^
|
|
'%CMDHOME%\test\Orleans.Connections.Security.Tests',^
|
|
'%CMDHOME%\test\Analyzers.Tests'"
|
|
|
|
@Echo Test assemblies = %TESTS%
|
|
|
|
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& ./Parallel-Tests.ps1 -directories %TESTS% -dotnet '%_dotnet%'"
|
|
set testresult=%errorlevel%
|
|
popd
|
|
endlocal&set testresult=%testresult%
|
|
exit /B %testresult%
|