-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtests.csharp.bat
More file actions
35 lines (24 loc) · 885 Bytes
/
Copy pathtests.csharp.bat
File metadata and controls
35 lines (24 loc) · 885 Bytes
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
::! Copyright (c) 2015 Denis Kuzmin <x-3F@outlook.com> github/3F
::! Copyright (c) GetNuTool contributors https://github.com/3F/GetNuTool/graphs/contributors
::! Licensed under the MIT License (MIT).
::! See accompanying License.txt file or visit https://github.com/3F/GetNuTool
@echo off
:: run tests for C# edition
if exist "core\gnt.core" (
set "bdir=..\shell\batch\"
) else if exist "bin\Release\" (
set "bdir=..\bin\Release\"
) else goto buildError
set usrLogger=%1
:: e.g. --logger:AppVeyor etc.
if defined usrLogger set usrLogger=--logger:%usrLogger%
set msb=%~dp0\.tools\hMSBuild
setlocal
cd tests\cs\
call %msb% ~x ~c Release /t:restore /t:Build
dotnet test -c Release --no-build --no-restore --test-adapter-path:. %usrLogger% CsEditionTest
endlocal
exit /B 0
:buildError
echo. Tests cannot be started: Check your build first. >&2
exit /B 1