← Commit list

8292820b73

Viktor Szakats
Viktor Szakats
2026-01-02
SUCCESS Duration: 288s

Subject

pytest: replace allowlist with feature check to enable OCSP test 17_08

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/curlinfo.c+12 -0
@@ -39,6 +39,10 @@
#include <stdio.h>
+#if defined(USE_QUICHE) || defined(USE_OPENSSL)
+#include <openssl/opensslconf.h> /* for OPENSSL_NO_OCSP */
+#endif
+
static const char *disabled[] = {
"bindlocal: "
#ifdef CURL_DISABLE_BINDLOCAL
@@ -242,6 +246,14 @@ static const char *disabled[] = {
"ON"
#else
"OFF"
+#endif
+ ,
+ "cert-status: "
+#if defined(USE_GNUTLS) || \
+ ((defined(USE_QUICHE) || defined(USE_OPENSSL)) && !defined(OPENSSL_NO_OCSP))
+ "ON"
+#else
+ "OFF"
#endif
};
tests/http/test_17_ssl_use.py+1 -4
@@ -292,10 +292,7 @@ class TestSSLUse:
@pytest.mark.parametrize("proto", Env.http_protos())
def test_17_08_cert_status(self, env: Env, proto, httpd, nghttpx):
- if not env.curl_uses_lib('openssl') and \
- not env.curl_uses_lib('quictls') and \
- not env.curl_uses_lib('libressl') and \
- not env.curl_uses_lib('gnutls'):
+ if not env.curl_can_cert_status():
pytest.skip("TLS library does not support --cert-status")
curl = CurlClient(env=env)
domain = 'localhost'
tests/http/testenv/env.py+5 -0
@@ -164,6 +164,7 @@ class EnvConfig:
if p.returncode != 0:
raise RuntimeError(f'{self.curlinfo} failed with exit code: {p.returncode}')
self.curl_is_verbose = 'verbose-strings: ON' in p.stdout
+ self.curl_can_cert_status = 'cert-status: ON' in p.stdout
self.ports = {}
@@ -506,6 +507,10 @@ class Env:
def curl_is_verbose() -> bool:
return Env.CONFIG.curl_is_verbose
+ @staticmethod
+ def curl_can_cert_status() -> bool:
+ return Env.CONFIG.curl_can_cert_status
+
@staticmethod
def curl_can_early_data() -> bool:
if Env.curl_uses_lib('gnutls'):