-
Notifications
You must be signed in to change notification settings - Fork 4
/
runtests.cmd
49 lines (36 loc) · 1000 Bytes
/
runtests.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
37
38
39
40
41
42
43
44
45
46
47
48
49
@ECHO OFF
SETLOCAL
SET SCRIPTPATH=%~dp0
SET SCRIPTPATH=%SCRIPTPATH:~0,-1%
CD %SCRIPTPATH%
CALL ..\..\..\build\set35vars.bat
SET RESULTDIR=%1
IF "%RESULTDIR%"=="" SET RESULTDIR=testresults
IF NOT EXIST %RESULTDIR% MKDIR %RESULTDIR%
SET DLLNAME=Cyotek.Data.Nbt.Tests
SET SRCDIR=tests\
SET SLNNAME=Cyotek.Data.Nbt.sln
dotnet build %SLNNAME% --configuration Release
IF %ERRORLEVEL% NEQ 0 GOTO :testsfailed
CALL :runtests net35
CALL :runtests net40
CALL :runtests net45
CALL :runtests net452
CALL :runtests net462
CALL :runtests net472
CALL :runtests net48
REM CALL :runtests netstandard2.0
REM CALL :runtests netstandard2.1
REM CALL :runtests netcoreapp2.1
REM CALL :runtests netcoreapp3.1
REM CALL :runtests netcoreapp2.2
ENDLOCAL
GOTO :eof
:runtests
SET TRG=%1
%nunitexe% %SRCDIR%bin\x86\release\%TRG%\%DLLNAME%.dll /result=testresults\%DLLNAME%.%TRG%.xml %nunitargs%
IF %ERRORLEVEL% NEQ 0 GOTO :testsfailed
GOTO :eof
:testsfailed
CECHO {0c}ERROR: *** TEST RUN FAILED ***{#}{\n}
EXIT /b 1