aboutsummaryrefslogtreecommitdiff
path: root/tests/ocsptest.bat
diff options
context:
space:
mode:
authorDon <don.j.olmstead@gmail.com>2018-03-20 15:55:41 -0700
committerDon <don.j.olmstead@gmail.com>2018-03-20 16:44:41 -0700
commit644c1097a8402d170603f5a0ff17efb37360dac7 (patch)
tree473b3aae687b1aa1a30bd68559035162bc0600cc /tests/ocsptest.bat
parent0263e69a9346e2a3c3bcbbed8f12a9749da63900 (diff)
downloadportable-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.bat11
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
2setlocal enabledelayedexpansion 2setlocal enabledelayedexpansion
3REM ocsptest.bat 3REM ocspocsp_test_bin.bat
4 4
5set TEST=Debug\ocsp_test.exe 5set ocsp_test_bin=%1
6if not exist %TEST% exit /b 1 6set ocsp_test_bin=%ocsp_test_bin:/=\%
7if 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
11endlocal 12endlocal