aboutsummaryrefslogtreecommitdiff
path: root/scripts/testsetup.bat
blob: 3adabca2908a644850072aeb93466f14934a370b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off

rem This script can be used to add the build output folder (Release) to the path for easier
rem ad hoc testing from the command line

CALL :NORMALIZEPATH "%~dp0..\x64\Release"

SET _BINPATH=%RETVAL%

path|find /i "%_BINPATH%" >nul || set PATH=%PATH%;%_BINPATH%

SET _BINPATH=

EXIT /B

:NORMALIZEPATH
  SET RETVAL=%~f1
  EXIT /B