appveyor: perf tests job

This commit is contained in:
Bill Zissimopoulos 2017-01-04 13:07:51 -08:00
parent 9e4e7d4bcf
commit 7c383654bd
2 changed files with 54 additions and 33 deletions

View File

@ -3,14 +3,18 @@ version: '{build}'
environment:
matrix:
- CONFIGURATION: Debug
TESTING: Func
- CONFIGURATION: Release
TESTING: Func
- CONFIGURATION: Release
TESTING: Perf
install:
- git submodule update --init --recursive
- appveyor DownloadFile http://www.secfs.net/winfsp/resources/Test.Filter.Driver.zip & 7z x Test.Filter.Driver.zip
- appveyor AddMessage "Change boot configuration and reboot" -Category Information
- if exist %SystemRoot%\memory.dmp del %SystemRoot%\memory.dmp
- verifier /standard /driver winfsp-x64.sys
- if %TESTING%==Func verifier /standard /driver winfsp-x64.sys
- bcdedit /set testsigning on
- ps: Restart-Computer -Force
- ps: Start-Sleep -s 60
@ -24,8 +28,9 @@ test_script:
- for %%f in ("build\VStudio\build\%CONFIGURATION%\winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000
- start /wait msiexec /i "Test.Filter.Driver\HCK Filter.Driver Content-x86_en-us.msi" /qn
- tools\nmake-ext-test.bat %CONFIGURATION%
- tools\run-tests.bat %CONFIGURATION%
- tools\run-tests.bat %CONFIGURATION% ifstest
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION%
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% ifstest
- if %TESTING%==Perf tools\run-perf-tests.bat %CONFIGURATION% self
- if exist %SystemRoot%\memory.dmp exit 1
on_finish:

View File

@ -14,6 +14,13 @@ popd
verifier /query | findstr winfsp >nul 2>nul
if !ERRORLEVEL! equ 0 echo warning: verifier for winfsp is ON >&2
if X%2==Xself (
launchctl-x64 start memfs64 testdsk "" M: >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)
)
set fsbench="%ProjRoot%\build\VStudio\build\%Configuration%\fsbench-x64.exe"
mkdir fsbench
pushd fsbench
@ -37,8 +44,17 @@ for %%a in (100 200 300 400 500) do (
popd
rmdir fsbench
if X%2==Xself (
launchctl-x64 stop memfs64 testdsk >nul
rem Cannot use timeout under cygwin/mintty: "Input redirection is not supported"
waitfor 7BF47D72F6664550B03248ECFE77C7DD /t 3 2>nul
)
exit /b 0
:fail
exit /b 1
:csv
set Iter=%1
for /F "tokens=1,2,3" %%i in ('%2') do (