Skip to content

Improve test feedback by logging the availability checks for OpenSSL and Tomcat Native libraries when they're missing#970

Open
csutherl wants to merge 1 commit intoapache:mainfrom
csutherl:add-warnings-for-missing-openssl-tcnative
Open

Improve test feedback by logging the availability checks for OpenSSL and Tomcat Native libraries when they're missing#970
csutherl wants to merge 1 commit intoapache:mainfrom
csutherl:add-warnings-for-missing-openssl-tcnative

Conversation

@csutherl
Copy link
Copy Markdown
Member

When running the tests without OpenSSL or Tomcat Native installed, there are several things happening without a clear explanation (without having to dig into individual test outputs):

  • OpenSSL cipher tests are silently excluded via build configuration
  • Tomcat Native tests are skipped via Assume.assumeTrue() checks
  • Users only see "Skipped: N" in test results, which requires looking into which were skipped
  • There's no proactive feedback about these missing libraries

Adding a warning when the libraries are missing allows you to check the target output to confirm that natives are being included in the tests without prior knowledge of which tests would be skipped when they're missing.

When either are unavailable, the tests are silently skipped or
excluded without a clear explanation to the user. The new warning
makes it obvious that the OpenSSL or Tomcat Native tests will
be skipped without having the look for which tests were skipped.
@dsoumis
Copy link
Copy Markdown
Member

dsoumis commented Mar 27, 2026

If tomcat-native is installed system-wide for example /usr/lib as is currently in Fedora, JVM will load it but the test.apr.loc check will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants