mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: deploy ifstest.bat
This commit is contained in:
parent
406af6901f
commit
b55c20b393
@ -13,6 +13,7 @@ mkdir %TARGET% 2>nul
|
||||
for %%f in (winfsp-%SUFFIX%.sys winfsp-%SUFFIX%.dll winfsp-tests-%SUFFIX%.exe fsbench-%SUFFIX%.exe fscrash-%SUFFIX%.exe memfs-%SUFFIX%.exe) do (
|
||||
copy build\VStudio\build\%CONFIG%\%%f %TARGET% >nul
|
||||
)
|
||||
copy tools\ifstest.bat %TARGET% >nul
|
||||
echo sc create WinFsp type=filesys binPath=%%~dp0%DRIVER% >%TARGET%sc-create.bat
|
||||
echo sc start WinFsp >%TARGET%sc-start.bat
|
||||
echo sc stop WinFsp >%TARGET%sc-stop.bat
|
||||
|
@ -7,11 +7,15 @@ set Arch=amd64
|
||||
|
||||
set RegKey="HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots"
|
||||
set RegVal="KitsRoot10"
|
||||
reg query %RegKey% /v %RegVal% >nul 2>&1 || (echo Cannot find Windows Kit >&2 & exit /b 1)
|
||||
for /f "tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^| findstr %RegVal%') do (
|
||||
set KitRoot=%%j
|
||||
reg query %RegKey% /v %RegVal% >nul 2>&1
|
||||
if !ERRORLEVEL! equ 0 (
|
||||
for /f "tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^| findstr %RegVal%') do (
|
||||
set KitRoot=%%jHardware Lab Kit\
|
||||
)
|
||||
) else (
|
||||
set "KitRoot=C:\Program Files (x86)\Windows Kits\8.1\Hardware Certification Kit\"
|
||||
)
|
||||
|
||||
set BaseDir=%KitRoot%Hardware Lab Kit\Tests\%Arch%
|
||||
set BaseDir=%KitRoot%Tests\%Arch%
|
||||
set PATH=%BaseDir%\nttest\commontest\ntlog;%BaseDir%\nttest\basetest\core_file_services\shared_libs\fbslog;%PATH%
|
||||
"%KitRoot%Hardware Lab Kit\Tests\%Arch%\nttest\basetest\core_file_services\ifs_test_kit\ifstest.exe" %*
|
||||
"%BaseDir%\nttest\basetest\core_file_services\ifs_test_kit\ifstest.exe" %*
|
||||
|
Loading…
x
Reference in New Issue
Block a user