-
Notifications
You must be signed in to change notification settings - Fork 16
/
Test.cmd
36 lines (24 loc) · 1.03 KB
/
Test.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@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%
:: Disable multilevel lookup https://github.com/dotnet/core-setup/blob/master/Documentation/design-docs/multilevel-sharedfx-lookup.md
set DOTNET_MULTILEVEL_LOOKUP=0
call Ensure-DotNetSdk.cmd
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\Orleans.Indexing.Tests
if []==[%TEST_FILTERS%] set TEST_FILTERS=-trait Category=BVT -trait Category=SlowBVT
@Echo Test assemblies = %TESTS%
@Echo Test filters = %TEST_FILTERS%
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& ./Parallel-Tests.ps1 -directories %TESTS% -testFilter \"%TEST_FILTERS%\" -outDir '%TestResultDir%' -dotnet '%_dotnet%'"
set testresult=%errorlevel%
popd
endlocal&set testresult=%testresult%
exit /B %testresult%