mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: run-tests
This commit is contained in:
parent
3935372956
commit
0412fac588
@ -20,11 +20,4 @@ build_script:
|
||||
|
||||
test_script:
|
||||
- for %%f in ("build\VStudio\build\%CONFIGURATION%\winfsp-*.msi") do start /wait msiexec /i %%f /qn INSTALLLEVEL=1000
|
||||
-
|
||||
- appveyor AddTest winfsp-tests-x64 -Outcome Running
|
||||
- build\VStudio\build\%CONFIGURATION%\winfsp-tests-x64.exe
|
||||
- appveyor UpdateTest winfsp-tests-x64 -Outcome Passed
|
||||
-
|
||||
- appveyor AddTest winfsp-tests-x86 -Outcome Running
|
||||
- build\VStudio\build\%CONFIGURATION%\winfsp-tests-x86.exe
|
||||
- appveyor UpdateTest winfsp-tests-x86 -Outcome Passed
|
||||
- tools\run-tests.bat %CONFIGURATION%
|
||||
|
56
tools/run-tests.bat
Normal file
56
tools/run-tests.bat
Normal file
@ -0,0 +1,56 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
set Configuration=Release
|
||||
if not X%1==X set Configuration=%1
|
||||
|
||||
cd %~dp0..\build\VStudio
|
||||
if not exist build\%Configuration% (
|
||||
echo === No tests found 1>&2
|
||||
goto fail
|
||||
)
|
||||
cd build\%Configuration%
|
||||
|
||||
set testpass=0
|
||||
set testfail=0
|
||||
for %%f in (winfsp-tests-x64 winfsp-tests-x86 :winfstest) do (
|
||||
echo === Running %%f
|
||||
|
||||
if defined APPVEYOR (
|
||||
appveyor AddTest "%%f" -FileName None -Framework None -Outcome Running
|
||||
)
|
||||
|
||||
call %%f
|
||||
|
||||
if errorlevel 1 (
|
||||
set /a testfail=testfail+1
|
||||
|
||||
echo === Failed %%f
|
||||
|
||||
if defined APPVEYOR (
|
||||
appveyor UpdateTest "%%f" -FileName None -Framework None -Outcome Passed -Duration 0
|
||||
)
|
||||
) else (
|
||||
set /a testpass=testpass+1
|
||||
|
||||
echo === Passed %%f
|
||||
|
||||
if defined APPVEYOR (
|
||||
appveyor UpdateTest "%%f" -FileName None -Framework None -Outcome Failed -Duration 0
|
||||
)
|
||||
)
|
||||
echo:
|
||||
)
|
||||
|
||||
set /a total=testpass+testfail
|
||||
echo === Total: %testpass%/%total%
|
||||
if not %testfail%==0 goto fail
|
||||
|
||||
exit /b 0
|
||||
|
||||
:fail
|
||||
exit /b 1
|
||||
|
||||
:winfstest
|
||||
exit /b 0
|
Loading…
x
Reference in New Issue
Block a user