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