-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtests.bat
More file actions
32 lines (24 loc) · 858 Bytes
/
tests.bat
File metadata and controls
32 lines (24 loc) · 858 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
::! Copyright (c) 2017 Denis Kuzmin <x-3F@outlook.com> github/3F
::! Copyright (c) hMSBuild contributors https://github.com/3F/hMSBuild/graphs/contributors
::! Licensed under the MIT License (MIT).
::! See accompanying License.txt file or visit https://github.com/3F/hMSBuild
@echo off
:: run tests by default
setlocal
if exist "hMSBuild.full.bat" (
set "rdir=..\"
set "tgntPath=GetNuTool\"
call srv.create >nul
set "hmsLocalServer=..\\"
) else if exist "bin\Release\raw\" (
set "rdir=..\bin\Release\raw\"
set "tgntPath=..\GetNuTool\tests\"
set "hmsLocalServer=..\bin\Release\\"
) else goto buildError
cd tests
call _run %rdir% hMSBuild.bat hMSBuild.full.bat %tgntPath%
endlocal
exit /B 0
:buildError
echo. Tests cannot be started: Check your build first. >&2
exit /B 1