-
-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathtests.bat
More file actions
29 lines (19 loc) · 609 Bytes
/
Copy pathtests.bat
File metadata and controls
29 lines (19 loc) · 609 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
@echo off
if "%~1"=="PublicRelease" ( set "config=Release" ) else set config=%~1
setlocal
if exist "tests\a.bat" (
cd tests
) else if not defined config (
echo.&echo %~n0 Debug&echo %~n0 Release
exit /B 0
) else if exist "bin\%config%\raw\" (
cd bin\%config%\raw\tests
) else goto buildError
set "rdir=..\"
set "tgntPath=GetNuTool\"
call _run %rdir% DllExport -hMSBuild %tgntPath%
endlocal
exit /B 0
:buildError
echo. Tests cannot be started for '%config%' configuration. Use `%~nx0 ^<config^>` or check your build first. >&2
exit /B 1