1@echo off
2REM We change the below line to "set CONTEXT=package" during package generation
3set "CONTEXT=source"
4set "SCRIPTDIR=%~dp0"
5
6:args
7if "%1" == "" goto args_end
8if "%1" == "-d" (
9    set "DEBUG=1"
10)
11shift
12goto args
13:args_end
14
15set "BINDIR=%SCRIPTDIR%\output\bin\Release"
16if "%DEBUG%" == "1" (
17    set "BINDIR=%SCRIPTDIR%\output\bin\Debug"
18)
19
20if "%CONTEXT%" == "source" (
21    py -3 "%SCRIPTDIR%\tests\run_tests.py" --css-file "%SCRIPTDIR%\lib\resources\styles\robot.css" --exclude "skip_windows" --robot-framework-remote-server-full-directory "%BINDIR%" -r %cd% %*
22) else (
23    py -3 "%SCRIPTDIR%\..\tests\run_tests.py" --css-file "%SCRIPTDIR%\..\tests\robot.css" --exclude "skip_windows" --robot-framework-remote-server-full-directory "%SCRIPTDIR%\" -r "%cd%" %*
24)
25