mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 00:13:01 -05:00
appveyor: add avast testing
This commit is contained in:
parent
1952d0d941
commit
fa388e57ad
@ -6,6 +6,8 @@ environment:
|
||||
TESTING: Func
|
||||
- CONFIGURATION: Release
|
||||
TESTING: Func
|
||||
- CONFIGURATION: Release
|
||||
TESTING: Avast
|
||||
- CONFIGURATION: Release
|
||||
TESTING: Perf
|
||||
|
||||
@ -30,6 +32,8 @@ test_script:
|
||||
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION%
|
||||
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% ifstest
|
||||
- if %TESTING%==Func tools\run-tests.bat %CONFIGURATION% sample
|
||||
- if %TESTING%==Avast choco install avastfreeantivirus && fltmc instances -v "C:"
|
||||
- if %TESTING%==Avast tools\run-tests.bat %CONFIGURATION% avast-tests
|
||||
- if %TESTING%==Perf tools\run-perf-tests.bat %CONFIGURATION% baseline > perf-tests.csv && type perf-tests.csv & appveyor PushArtifact perf-tests.csv
|
||||
- choco uninstall winfsp -y
|
||||
- if exist %SystemRoot%\memory.dmp exit 1
|
||||
|
@ -77,7 +77,10 @@ set opt_tests=^
|
||||
sample-fsx-passthrough-fuse-x64 ^
|
||||
sample-passthrough-fuse-x86 ^
|
||||
sample-fsx-passthrough-fuse-x86 ^
|
||||
sample-passthrough-dotnet
|
||||
sample-passthrough-dotnet ^
|
||||
avast-tests-x64 ^
|
||||
avast-tests-x86 ^
|
||||
avast-tests-dotnet
|
||||
|
||||
set tests=
|
||||
for %%f in (%dfl_tests%) do (
|
||||
@ -212,14 +215,28 @@ exit /b 0
|
||||
|
||||
:winfsp-tests-x64-external
|
||||
M:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient
|
||||
fltmc instances -v M: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient ^
|
||||
-querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:winfsp-tests-x64-external-share
|
||||
M:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
fltmc instances -v M: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^
|
||||
-reparse_symlink* -querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
@ -265,14 +282,28 @@ exit /b 0
|
||||
|
||||
:winfsp-tests-x86-external
|
||||
O:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --resilient
|
||||
fltmc instances -v O: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --resilient
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --resilient ^
|
||||
-querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:winfsp-tests-x86-external-share
|
||||
O:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --share=winfsp-tests-share=O:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
fltmc instances -v O: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --share=winfsp-tests-share=O:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --share=winfsp-tests-share=O:\ --resilient ^
|
||||
-reparse_symlink* -querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
@ -380,14 +411,28 @@ exit /b 0
|
||||
|
||||
:winfsp-tests-dotnet-external
|
||||
Q:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient
|
||||
fltmc instances -v Q: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --resilient ^
|
||||
-querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:winfsp-tests-dotnet-external-share
|
||||
Q:
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=Q:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
fltmc instances -v Q: | findstr aswSnx >nul
|
||||
if !ERRORLEVEL! neq 0 (
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=Q:\ --resilient ^
|
||||
-reparse_symlink*
|
||||
) else (
|
||||
REM Avast present
|
||||
"%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=Q:\ --resilient ^
|
||||
-reparse_symlink* -querydir_buffer_overflow_test
|
||||
)
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
@ -681,6 +726,27 @@ call "%ProjRoot%\tools\fsreg" -u %1
|
||||
rmdir /s/q "%TMP%\%1"
|
||||
exit /b !RunSampleTestExit!
|
||||
|
||||
:avast-tests-x64
|
||||
call :winfsp-tests-x64-external
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
call :winfsp-tests-x64-external-share
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:avast-tests-x86
|
||||
call :winfsp-tests-x86-external
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
call :winfsp-tests-x86-external-share
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:avast-tests-dotnet
|
||||
call :winfsp-tests-dotnet-external
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
call :winfsp-tests-dotnet-external-share
|
||||
if !ERRORLEVEL! neq 0 goto fail
|
||||
exit /b 0
|
||||
|
||||
:leak-test
|
||||
for /F "tokens=1,2 delims=:" %%i in ('verifier /query ^| findstr ^
|
||||
/c:"Current Pool Allocations:" ^
|
||||
|
Loading…
x
Reference in New Issue
Block a user