mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
tools: run-tests: add fsx and winfstest tests
This commit is contained in:
parent
7e2c767997
commit
5fa7ba3513
@ -5,23 +5,32 @@ setlocal
|
|||||||
set Configuration=Release
|
set Configuration=Release
|
||||||
if not X%1==X set Configuration=%1
|
if not X%1==X set Configuration=%1
|
||||||
|
|
||||||
cd %~dp0..\build\VStudio
|
cd %~dp0..
|
||||||
if not exist build\%Configuration% (
|
set ProjRoot=%cd%
|
||||||
echo === No tests found 1>&2
|
|
||||||
goto fail
|
cd build\VStudio
|
||||||
)
|
if not exist build\%Configuration% echo === No tests found >&2 & goto fail
|
||||||
cd build\%Configuration%
|
cd build\%Configuration%
|
||||||
|
|
||||||
|
launchctl-x64 start memfs64 test \memfs64\test M: >nul
|
||||||
|
launchctl-x64 start memfs32 test \memfs32\test N: >nul
|
||||||
|
rem Cannot use timeout under cygwin/mintty: "Input redirection is not supported"
|
||||||
|
waitfor 7BF47D72F6664550B03248ECFE77C7DD /t 3 2>nul
|
||||||
|
cd M: >nul 2>nul || (echo === Unable to find drive M: >&2 & goto fail)
|
||||||
|
cd N: >nul 2>nul || (echo === Unable to find drive N: >&2 & goto fail)
|
||||||
|
|
||||||
set testpass=0
|
set testpass=0
|
||||||
set testfail=0
|
set testfail=0
|
||||||
for %%f in (winfsp-tests-x64 winfsp-tests-x86 :winfstest) do (
|
for %%f in (winfsp-tests-x64 winfsp-tests-x86 :fsx-memfs-x64 :fsx-memfs-x86 :winfstest-memfs-x64 :winfstest-memfs-x86) do (
|
||||||
echo === Running %%f
|
echo === Running %%f
|
||||||
|
|
||||||
if defined APPVEYOR (
|
if defined APPVEYOR (
|
||||||
appveyor AddTest "%%f" -FileName None -Framework None -Outcome Running
|
appveyor AddTest "%%f" -FileName None -Framework None -Outcome Running
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pushd %cd%
|
||||||
call %%f
|
call %%f
|
||||||
|
popd
|
||||||
|
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
set /a testfail=testfail+1
|
set /a testfail=testfail+1
|
||||||
@ -43,6 +52,9 @@ for %%f in (winfsp-tests-x64 winfsp-tests-x86 :winfstest) do (
|
|||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
|
launchctl-x64 stop memfs64 test >nul
|
||||||
|
launchctl-x64 stop memfs32 test >nul
|
||||||
|
|
||||||
set /a total=testpass+testfail
|
set /a total=testpass+testfail
|
||||||
echo === Total: %testpass%/%total%
|
echo === Total: %testpass%/%total%
|
||||||
if not %testfail%==0 goto fail
|
if not %testfail%==0 goto fail
|
||||||
@ -52,5 +64,26 @@ exit /b 0
|
|||||||
:fail
|
:fail
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|
||||||
:winfstest
|
:fsx-memfs-x64
|
||||||
|
M:
|
||||||
|
"%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 1000 test xxxxxx
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
exit /b 0
|
||||||
|
|
||||||
|
:fsx-memfs-x86
|
||||||
|
N:
|
||||||
|
"%ProjRoot%\ext\test\fstools\src\fsx\fsx.exe" -N 1000 test xxxxxx
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
exit /b 0
|
||||||
|
|
||||||
|
:winfstest-memfs-x64
|
||||||
|
M:
|
||||||
|
call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" base
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
exit /b 0
|
||||||
|
|
||||||
|
:winfstest-memfs-x86
|
||||||
|
N:
|
||||||
|
call "%ProjRoot%\ext\test\winfstest\run-winfstest.bat" base
|
||||||
|
if errorlevel 1 goto fail
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user