mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tools: deploy ifstest.bat
This commit is contained in:
		| @@ -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 ( | 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 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 create WinFsp type=filesys binPath=%%~dp0%DRIVER% >%TARGET%sc-create.bat | ||||||
| echo sc start WinFsp >%TARGET%sc-start.bat | echo sc start WinFsp >%TARGET%sc-start.bat | ||||||
| echo sc stop WinFsp >%TARGET%sc-stop.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 RegKey="HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" | ||||||
| set RegVal="KitsRoot10" | set RegVal="KitsRoot10" | ||||||
| reg query %RegKey% /v %RegVal% >nul 2>&1 || (echo Cannot find Windows Kit >&2 & exit /b 1) | 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 ( | 	for /f "tokens=2,*" %%i in ('reg query %RegKey% /v %RegVal% ^| findstr %RegVal%') do ( | ||||||
|     set KitRoot=%%j | 	    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% | 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" %* | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user