forked from chrisant996/clink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.cmd
33 lines (30 loc) · 828 Bytes
/
test.cmd
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
@echo off
setlocal
set __DBG=
set __ME=%~dp0
:arg
if x%1x == x?x goto :usage
if x%1x == x/?x goto :usage
if x%1x == x-?x goto :usage
if x%1x == x/hx goto :usage
if x%1x == x-hx goto :usage
if x%1x == x/helpx goto :usage
if x%1x == x--helpx goto :usage
if x%1x == xhelpx goto :usage
if x%1x == x/dbgx set __DBG=call devenv /debugexe
if x%1x == x/dbgx shift & goto :arg
%__DBG% %__ME%.build\vs2019\bin\debug\clink_test_x64.exe %1 %2 %3
goto :eof
:usage
echo Usage: test [/? /dbg] [test name prefix]
echo.
echo Run clink_test_x64.exe.
echo.
echo. /? Show usage info.
echo /dbg Run test under the debugger.
echo -d Load Lua debugger.
echo -t Show execution time.
echo.
echo If [test name prefix] is included, then it only runs tests whose name begins
echo with the specified prefix.
goto :eof