mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tools: ifstest
This commit is contained in:
		
							
								
								
									
										17
									
								
								tools/ifstest.bat
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								tools/ifstest.bat
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | @echo off | ||||||
|  |  | ||||||
|  | setlocal | ||||||
|  | setlocal EnableDelayedExpansion | ||||||
|  |  | ||||||
|  | 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 | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | set BaseDir=%KitRoot%Hardware Lab Kit\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" %* | ||||||
| @@ -24,40 +24,45 @@ cd N: >nul 2>nul || (echo === Unable to find drive N: >&2 & goto fail) | |||||||
| cd O: >nul 2>nul || (echo === Unable to find drive O: >&2 & goto fail) | cd O: >nul 2>nul || (echo === Unable to find drive O: >&2 & goto fail) | ||||||
| cd P: >nul 2>nul || (echo === Unable to find drive P: >&2 & goto fail) | cd P: >nul 2>nul || (echo === Unable to find drive P: >&2 & goto fail) | ||||||
|  |  | ||||||
|  | if not X%2==X ( | ||||||
|  |     set tests=%2 | ||||||
|  | ) else ( | ||||||
|  |     set tests=^ | ||||||
|  |         winfsp-tests-x64 ^ | ||||||
|  |         winfsp-tests-x64-case-randomize ^ | ||||||
|  |         winfsp-tests-x64-mountpoint-drive ^ | ||||||
|  |         winfsp-tests-x64-mountpoint-dir ^ | ||||||
|  |         winfsp-tests-x64-no-traverse ^ | ||||||
|  |         winfsp-tests-x64-oplock ^ | ||||||
|  |         winfsp-tests-x64-external-share ^ | ||||||
|  |         fsx-memfs-x64-disk ^ | ||||||
|  |         fsx-memfs-x64-net ^ | ||||||
|  |         standby-memfs-x64-disk ^ | ||||||
|  |         standby-memfs-x64-net ^ | ||||||
|  |         net-use-memfs-x64 ^ | ||||||
|  |         winfstest-memfs-x64-disk ^ | ||||||
|  |         winfstest-memfs-x64-net ^ | ||||||
|  |         fscrash-x64 ^ | ||||||
|  |         winfsp-tests-x86 ^ | ||||||
|  |         winfsp-tests-x86-case-randomize ^ | ||||||
|  |         winfsp-tests-x86-mountpoint-drive ^ | ||||||
|  |         winfsp-tests-x86-mountpoint-dir ^ | ||||||
|  |         winfsp-tests-x86-no-traverse ^ | ||||||
|  |         winfsp-tests-x86-oplock ^ | ||||||
|  |         winfsp-tests-x86-external-share ^ | ||||||
|  |         fsx-memfs-x86-disk ^ | ||||||
|  |         fsx-memfs-x86-net ^ | ||||||
|  |         standby-memfs-x86-disk ^ | ||||||
|  |         standby-memfs-x86-net ^ | ||||||
|  |         net-use-memfs-x86 ^ | ||||||
|  |         winfstest-memfs-x86-disk ^ | ||||||
|  |         winfstest-memfs-x86-net ^ | ||||||
|  |         fscrash-x86 | ||||||
|  | ) | ||||||
|  |  | ||||||
| set testpass=0 | set testpass=0 | ||||||
| set testfail=0 | set testfail=0 | ||||||
| for %%f in (^ | for %%f in (%tests%) do ( | ||||||
|     :winfsp-tests-x64 ^ |  | ||||||
|     :winfsp-tests-x64-case-randomize ^ |  | ||||||
|     :winfsp-tests-x64-mountpoint-drive ^ |  | ||||||
|     :winfsp-tests-x64-mountpoint-dir ^ |  | ||||||
|     :winfsp-tests-x64-no-traverse ^ |  | ||||||
|     :winfsp-tests-x64-oplock ^ |  | ||||||
|     :winfsp-tests-x64-external-share ^ |  | ||||||
|     :fsx-memfs-x64-disk ^ |  | ||||||
|     :fsx-memfs-x64-net ^ |  | ||||||
|     :standby-memfs-x64-disk ^ |  | ||||||
|     :standby-memfs-x64-net ^ |  | ||||||
|     :net-use-memfs-x64 ^ |  | ||||||
|     :winfstest-memfs-x64-disk ^ |  | ||||||
|     :winfstest-memfs-x64-net ^ |  | ||||||
|     :fscrash-x64 ^ |  | ||||||
|     :winfsp-tests-x86 ^ |  | ||||||
|     :winfsp-tests-x86-case-randomize ^ |  | ||||||
|     :winfsp-tests-x86-mountpoint-drive ^ |  | ||||||
|     :winfsp-tests-x86-mountpoint-dir ^ |  | ||||||
|     :winfsp-tests-x86-no-traverse ^ |  | ||||||
|     :winfsp-tests-x86-oplock ^ |  | ||||||
|     :winfsp-tests-x86-external-share ^ |  | ||||||
|     :fsx-memfs-x86-disk ^ |  | ||||||
|     :fsx-memfs-x86-net ^ |  | ||||||
|     :standby-memfs-x86-disk ^ |  | ||||||
|     :standby-memfs-x86-net ^ |  | ||||||
|     :net-use-memfs-x86 ^ |  | ||||||
|     :winfstest-memfs-x86-disk ^ |  | ||||||
|     :winfstest-memfs-x86-net ^ |  | ||||||
|     :fscrash-x86 ^ |  | ||||||
|     ) do ( |  | ||||||
|     echo === Running %%f |     echo === Running %%f | ||||||
|  |  | ||||||
|     if defined APPVEYOR ( |     if defined APPVEYOR ( | ||||||
| @@ -65,7 +70,7 @@ for %%f in (^ | |||||||
|     ) |     ) | ||||||
|  |  | ||||||
|     pushd %cd% |     pushd %cd% | ||||||
|     call %%f |     call :%%f | ||||||
|     popd |     popd | ||||||
|  |  | ||||||
|     if !ERRORLEVEL! neq 0 ( |     if !ERRORLEVEL! neq 0 ( | ||||||
| @@ -322,6 +327,12 @@ fscrash-x86 --huge-alloc-size --cached >nul 2>&1 | |||||||
| if !ERRORLEVEL! neq 1 goto fail | if !ERRORLEVEL! neq 1 goto fail | ||||||
| exit /b 0 | exit /b 0 | ||||||
|  |  | ||||||
|  | :ifstest-memfs-x64-disk | ||||||
|  | M: | ||||||
|  | call "%ProjRoot%\tools\ifstest.bat" M:\ /b | ||||||
|  | if !ERRORLEVEL! neq 0 goto fail | ||||||
|  | exit /b 0 | ||||||
|  |  | ||||||
| :leak-test | :leak-test | ||||||
| for /F "tokens=1,2 delims=:" %%i in ('verifier /query ^| findstr ^ | for /F "tokens=1,2 delims=:" %%i in ('verifier /query ^| findstr ^ | ||||||
|     /c:"Current Pool Allocations:" ^ |     /c:"Current Pool Allocations:" ^ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user