mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
appveyor: perf tests job
This commit is contained in:
parent
9e4e7d4bcf
commit
7c383654bd
71
appveyor.yml
71
appveyor.yml
@ -1,33 +1,38 @@
|
|||||||
version: '{build}'
|
version: '{build}'
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- CONFIGURATION: Debug
|
- CONFIGURATION: Debug
|
||||||
- CONFIGURATION: Release
|
TESTING: Func
|
||||||
|
- CONFIGURATION: Release
|
||||||
install:
|
TESTING: Func
|
||||||
- git submodule update --init --recursive
|
- CONFIGURATION: Release
|
||||||
- appveyor DownloadFile http://www.secfs.net/winfsp/resources/Test.Filter.Driver.zip & 7z x Test.Filter.Driver.zip
|
TESTING: Perf
|
||||||
- appveyor AddMessage "Change boot configuration and reboot" -Category Information
|
|
||||||
- if exist %SystemRoot%\memory.dmp del %SystemRoot%\memory.dmp
|
install:
|
||||||
- verifier /standard /driver winfsp-x64.sys
|
- git submodule update --init --recursive
|
||||||
- bcdedit /set testsigning on
|
- appveyor DownloadFile http://www.secfs.net/winfsp/resources/Test.Filter.Driver.zip & 7z x Test.Filter.Driver.zip
|
||||||
- ps: Restart-Computer -Force
|
- appveyor AddMessage "Change boot configuration and reboot" -Category Information
|
||||||
- ps: Start-Sleep -s 60
|
- if exist %SystemRoot%\memory.dmp del %SystemRoot%\memory.dmp
|
||||||
|
- if %TESTING%==Func verifier /standard /driver winfsp-x64.sys
|
||||||
build_script:
|
- bcdedit /set testsigning on
|
||||||
- appveyor AddMessage "Reboot complete" -Category Information
|
- ps: Restart-Computer -Force
|
||||||
- bcdedit | findstr /i "testsigning"
|
- ps: Start-Sleep -s 60
|
||||||
- tools\build.bat %CONFIGURATION%
|
|
||||||
|
build_script:
|
||||||
test_script:
|
- appveyor AddMessage "Reboot complete" -Category Information
|
||||||
- for %%f in ("build\VStudio\build\%CONFIGURATION%\winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000
|
- bcdedit | findstr /i "testsigning"
|
||||||
- start /wait msiexec /i "Test.Filter.Driver\HCK Filter.Driver Content-x86_en-us.msi" /qn
|
- tools\build.bat %CONFIGURATION%
|
||||||
- tools\nmake-ext-test.bat %CONFIGURATION%
|
|
||||||
- tools\run-tests.bat %CONFIGURATION%
|
test_script:
|
||||||
- tools\run-tests.bat %CONFIGURATION% ifstest
|
- for %%f in ("build\VStudio\build\%CONFIGURATION%\winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000
|
||||||
- if exist %SystemRoot%\memory.dmp exit 1
|
- start /wait msiexec /i "Test.Filter.Driver\HCK Filter.Driver Content-x86_en-us.msi" /qn
|
||||||
|
- tools\nmake-ext-test.bat %CONFIGURATION%
|
||||||
on_finish:
|
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION%
|
||||||
- if exist %SystemRoot%\memory.dmp (7z a memory.dmp.zip %SystemRoot%\memory.dmp & appveyor PushArtifact memory.dmp.zip)
|
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% ifstest
|
||||||
- verifier /query
|
- if %TESTING%==Perf tools\run-perf-tests.bat %CONFIGURATION% self
|
||||||
|
- if exist %SystemRoot%\memory.dmp exit 1
|
||||||
|
|
||||||
|
on_finish:
|
||||||
|
- if exist %SystemRoot%\memory.dmp (7z a memory.dmp.zip %SystemRoot%\memory.dmp & appveyor PushArtifact memory.dmp.zip)
|
||||||
|
- verifier /query
|
||||||
|
@ -14,6 +14,13 @@ popd
|
|||||||
verifier /query | findstr winfsp >nul 2>nul
|
verifier /query | findstr winfsp >nul 2>nul
|
||||||
if !ERRORLEVEL! equ 0 echo warning: verifier for winfsp is ON >&2
|
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"
|
set fsbench="%ProjRoot%\build\VStudio\build\%Configuration%\fsbench-x64.exe"
|
||||||
mkdir fsbench
|
mkdir fsbench
|
||||||
pushd fsbench
|
pushd fsbench
|
||||||
@ -37,8 +44,17 @@ for %%a in (100 200 300 400 500) do (
|
|||||||
popd
|
popd
|
||||||
rmdir fsbench
|
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
|
exit /b 0
|
||||||
|
|
||||||
|
:fail
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
:csv
|
:csv
|
||||||
set Iter=%1
|
set Iter=%1
|
||||||
for /F "tokens=1,2,3" %%i in ('%2') do (
|
for /F "tokens=1,2,3" %%i in ('%2') do (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user