Fix ssltest to run on appveyor

This commit is contained in:
kinichiro 2020-07-07 18:24:27 +09:00
parent fa26b5359b
commit 615c380811
2 changed files with 5 additions and 3 deletions

View File

@ -43,5 +43,4 @@ build_script:
- cmake --build . --config %CONFIG%
test_script:
# TODO: Determine how to run ssltest on AppVeyor
- ctest -C %CONFIG% --timeout 150 --output-on-failure -E ssltest
- ctest -C %CONFIG% --timeout 150 --output-on-failure

View File

@ -11,7 +11,10 @@ set extra=%6
%openssl% version & if !errorlevel! neq 0 exit /b 1
for /f "usebackq" %%s in (`%openssl% x509 -in %cert% -text -noout ^| find /c "DSA Public Key"`) do set lines=%%s
set lines=0
for /f "usebackq" %%s in (`%openssl% x509 -in %cert% -text -noout ^| find "DSA Public Key"`) do (
set /a lines=%lines%+1
)
if %lines% gtr 0 (
set dsa_cert=YES
) else (