diff options
author | Don <don.j.olmstead@gmail.com> | 2018-03-20 15:55:41 -0700 |
---|---|---|
committer | Don <don.j.olmstead@gmail.com> | 2018-03-20 16:44:41 -0700 |
commit | 644c1097a8402d170603f5a0ff17efb37360dac7 (patch) | |
tree | 473b3aae687b1aa1a30bd68559035162bc0600cc /tests/ocsptest.bat | |
parent | 0263e69a9346e2a3c3bcbbed8f12a9749da63900 (diff) | |
download | portable-644c1097a8402d170603f5a0ff17efb37360dac7.tar.gz portable-644c1097a8402d170603f5a0ff17efb37360dac7.tar.bz2 portable-644c1097a8402d170603f5a0ff17efb37360dac7.zip |
Fix Windows tests within CMake
Diffstat (limited to 'tests/ocsptest.bat')
-rw-r--r-- | tests/ocsptest.bat | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/ocsptest.bat b/tests/ocsptest.bat index fa0ae42..2b6b66b 100644 --- a/tests/ocsptest.bat +++ b/tests/ocsptest.bat | |||
@@ -1,11 +1,12 @@ | |||
1 | @echo off | 1 | @echo off |
2 | setlocal enabledelayedexpansion | 2 | setlocal enabledelayedexpansion |
3 | REM ocsptest.bat | 3 | REM ocspocsp_test_bin.bat |
4 | 4 | ||
5 | set TEST=Debug\ocsp_test.exe | 5 | set ocsp_test_bin=%1 |
6 | if not exist %TEST% exit /b 1 | 6 | set ocsp_test_bin=%ocsp_test_bin:/=\% |
7 | if not exist %ocsp_test_bin% exit /b 1 | ||
7 | 8 | ||
8 | %TEST% www.amazon.com 443 & if !errorlevel! neq 0 exit /b 1 | 9 | %ocsp_test_bin% www.amazon.com 443 & if !errorlevel! neq 0 exit /b 1 |
9 | %TEST% cloudflare.com 443 & if !errorlevel! neq 0 exit /b 1 | 10 | %ocsp_test_bin% cloudflare.com 443 & if !errorlevel! neq 0 exit /b 1 |
10 | 11 | ||
11 | endlocal | 12 | endlocal |