forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.cmd
27 lines (20 loc) · 1.26 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
cd /d "%~dp0"
ECHO OFF
SET CONFIG=%1
SET NETFX=%2
SET NET60=%3
SET NET80=%4
SET FORMAT=%5
SET EXTRA=%6
IF [%1] EQU [] (SET CONFIG=Debug)
IF [%2] EQU [] (SET NETFX=1)
IF [%3] EQU [] (SET NET60=1)
IF [%4] EQU [] (SET NET80=1)
IF [%5] EQU [] (SET FORMAT=html)
dotnet build linq2db.sln -c %CONFIG% -v m
IF %NETFX% NEQ 0 (dotnet test .build/bin/Tests/%CONFIG%/net462/linq2db.Tests.dll -f net462 -l %FORMAT%;LogFileName=net462.%FORMAT% %EXTRA%)
IF %NET60% NEQ 0 (dotnet test .build/bin/Tests/%CONFIG%/net6.0/linq2db.Tests.dll -f net6.0 -l %FORMAT%;LogFileName=net60.%FORMAT% %EXTRA%)
IF %NET80% NEQ 0 (dotnet test .build/bin/Tests/%CONFIG%/net8.0/linq2db.Tests.dll -f net8.0 -l %FORMAT%;LogFileName=net80.%FORMAT% %EXTRA%)
IF %NETFX% NEQ 0 (dotnet test .build/bin/Tests.EntityFrameworkCore/%CONFIG%/net462/linq2db.EntityFrameworkCore.Tests.dll -f net462 -l %FORMAT%;LogFileName=net462.efcore.%FORMAT% %EXTRA%)
IF %NET60% NEQ 0 (dotnet test .build/bin/Tests.EntityFrameworkCore/%CONFIG%/net6.0/linq2db.EntityFrameworkCore.Tests.dll -f net6.0 -l %FORMAT%;LogFileName=net60.efcore.%FORMAT% %EXTRA%)
IF %NET80% NEQ 0 (dotnet test .build/bin/Tests.EntityFrameworkCore/%CONFIG%/net8.0/linq2db.EntityFrameworkCore.Tests.dll -f net8.0 -l %FORMAT%;LogFileName=net80.efcore.%FORMAT% %EXTRA%)