diff --git a/build.xml b/build.xml
index b398b6a2c75a..55c14d140c21 100644
--- a/build.xml
+++ b/build.xml
@@ -2109,13 +2109,13 @@
+ depends="-test-name-default,setup-jacoco,test-compile,deploy,test-openssl-exists,test-tcnative-exists" if="${execute.test.nio}">
+ depends="-test-name-default,setup-jacoco,test-openssl-exists,test-tcnative-exists" if="${execute.test.nio}">
@@ -2134,6 +2134,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/org/apache/tomcat/jni/TesterLibraryLoad.java b/test/org/apache/tomcat/jni/TesterLibraryLoad.java
new file mode 100644
index 000000000000..cc1b46dd4300
--- /dev/null
+++ b/test/org/apache/tomcat/jni/TesterLibraryLoad.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.tomcat.jni;
+
+import static org.junit.Assert.fail;
+
+import org.junit.Test;
+
+/**
+ * Simple test to verify tomcat-native library can be loaded.
+ */
+public class TesterLibraryLoad {
+
+ @Test
+ public void testLibraryLoads() throws Exception {
+ try {
+ Library.initialize(null);
+ Library.terminate();
+ } catch (LibraryNotFoundError e) {
+ // Library not available - fail test to set property
+ fail("Library not found");
+ }
+ }
+}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 3241cdcb0f94..df918a9eebb7 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -343,6 +343,13 @@
Update Derby to 10.17.1.0. (markt)
+
+ Add warning when OpenSSL binary is not found. (csutherl)
+
+
+ Add check for Tomcat Native library, and log warning when it's not found
+ to make it easier to see when it's not used by the suite. (csutherl)
+