pykd/test/scripts/_run_pykdtest.cmd
SND\kernelnet_cp 54b6e5f15f [0.3.x] added : python unit tests
git-svn-id: https://pykd.svn.codeplex.com/svn@83678 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 14:36:26 +04:00

23 lines
629 B
Batchfile

::@echo on
:: Pass $(TargetDir)\<TestApp.exe> from Visual Studio
set TestAppPath=%1
:: Pass $(PlatformName) from Visual Studio
set TestAppPlatform=%2
set Arch=x64
if "%PROCESSOR_ARCHITECTURE%" == "x86" (
if not defined PROCESSOR_ARCHITEW6432 set Arch=x86
)
set PythonRegKey=HKLM\Software\Python\PythonCore\2.7\InstallPath
set RegSwitch=64
if "%TestAppPlatform%"=="Win32" set RegSwitch=32
for /F "tokens=3*" %%A in ('reg.exe query %PythonRegKey% /ve /reg:%RegSwitch% 2^>NUL ^| FIND "REG_SZ"') do set PythonInstallPath=%%A
%PythonInstallPath%python.exe "%~dp0pykdtest.py" %TestAppPath%
::pause