mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tools: run-tests: correctly test ERRORLEVEL
This commit is contained in:
		| @@ -74,79 +74,79 @@ exit /b 1 | ||||
| :winfsp-tests-x64 | ||||
| echo winfsp-tests-x64 | ||||
| winfsp-tests-x64 | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x64 --case-randomize | ||||
| winfsp-tests-x64 --case-randomize | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x64 --mountpoint=X: | ||||
| winfsp-tests-x64 --mountpoint=X: | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x64 --mountpoint=mymnt | ||||
| winfsp-tests-x64 --mountpoint=mymnt | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x64 --no-traverse | ||||
| winfsp-tests-x64 --no-traverse | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|  | ||||
| :winfsp-tests-x86 | ||||
| echo winfsp-tests-x86 | ||||
| winfsp-tests-x86 | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x86 --case-randomize | ||||
| winfsp-tests-x86 --case-randomize | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x86 --mountpoint=X: | ||||
| winfsp-tests-x86 --mountpoint=X: | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x86 --mountpoint=mymnt | ||||
| winfsp-tests-x86 --mountpoint=mymnt | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| echo winfsp-tests-x86 --no-traverse | ||||
| winfsp-tests-x86 --no-traverse | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|  | ||||
| :fsx-memfs-x64 | ||||
| M: | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -f foo -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| N: | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -f foo -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|  | ||||
| :fsx-memfs-x86 | ||||
| O: | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -f foo -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| P: | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| "%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -f foo -N 5000 test xxxxxx | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|  | ||||
| :winfstest-memfs-x64 | ||||
| M: | ||||
| call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| N: | ||||
| call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|  | ||||
| :winfstest-memfs-x86 | ||||
| O: | ||||
| call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| P: | ||||
| call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" | ||||
| if errorlevel 1 goto fail | ||||
| if !ERRORLEVEL! neq 0 goto fail | ||||
| exit /b 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user