You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2021/11/25 14:41:17 UTC

[tomcat] branch main updated: Document how to run the testsuite

This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new aabe992  Document how to run the testsuite
aabe992 is described below

commit aabe992723ec0c8f718e86e2a942ac4e3f75d216
Author: remm <re...@apache.org>
AuthorDate: Thu Nov 25 15:41:03 2021 +0100

    Document how to run the testsuite
---
 modules/openssl-java17/README.md | 46 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 45 insertions(+), 1 deletion(-)

diff --git a/modules/openssl-java17/README.md b/modules/openssl-java17/README.md
index 01be3fc..babc338 100644
--- a/modules/openssl-java17/README.md
+++ b/modules/openssl-java17/README.md
@@ -6,7 +6,9 @@ It uses an incubating Java API, and is not supported at this time.
 
 ## Building
 
-The module can be built using Java 17, and requires Java 17 at runtime.
+The module can be built using Java 17, this will be the only Java version that
+is supported as the foreign API is incbating and will continue to evolve.
+It then requires OpenSSL 1.1 or newer at runtime.
 ```
 mvn package
 ```
@@ -38,6 +40,48 @@ Run Tomcat using:
 export JAVA_OPTS="--enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign"
 ```
 
+## Running the testsuite
+
+Use the following patch for `build.xml` before running the testuite:
+```
+diff --git a/build.xml b/build.xml
+index dc1260b..dd9fba9 100644
+--- a/build.xml
++++ b/build.xml
+@@ -213,6 +213,8 @@
+   <defaultexcludes remove="**/.gitignore" />
+   <!--<defaultexcludes echo="true" />-->
+
+   <!-- Classpaths -->
+   <path id="compile.classpath">
+     <pathelement location="${bnd.jar}"/>
+@@ -240,6 +242,7 @@
+     <pathelement location="${derby.jar}"/>
+     <pathelement location="${derby-shared.jar}"/>
+     <pathelement location="${derby-tools.jar}"/>
++    <pathelement location="output/build/lib/tomcat-openssl-0.1.jar"/>
+     <path refid="compile.classpath" />
+     <path refid="tomcat.classpath" />
+   </path>
+@@ -1944,7 +1947,6 @@
+
+           <jvmarg value="${test.jvmarg.egd}"/>
+           <jvmarg value="-Dfile.encoding=UTF-8"/>
+-          <jvmarg value="-Djava.library.path=${test.apr.loc}"/>
+           <jvmarg value="${test.formatter}"/>
+           <jvmarg value="-Djava.net.preferIPv4Stack=${java.net.preferIPv4Stack}"/>
+           <jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED"/>
+@@ -1952,6 +1954,9 @@
+           <jvmarg value="--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"/>
+           <jvmarg value="--add-opens=java.base/java.util=ALL-UNNAMED"/>
+           <jvmarg value="--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"/>
++          <jvmarg value="--enable-native-access=ALL-UNNAMED"/>
++          <jvmarg value="--add-modules"/>
++          <jvmarg value="jdk.incubator.foreign"/>
+
+           <classpath refid="tomcat.test.classpath" />
+```
+
 ## Generating OpenSSL API code using jextract (optional)
 
 This step is only useful to be able to use additional native APIs from OpenSSL

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org