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 2019/06/05 14:37:27 UTC

[tomcat] branch master updated: Add system property to configure the loop count for most HTTP/2 tests

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 4e56690  Add system property to configure the loop count for most HTTP/2 tests
4e56690 is described below

commit 4e566906ee74983be75111e315c6e154ed9ba66f
Author: remm <re...@apache.org>
AuthorDate: Wed Jun 5 16:37:20 2019 +0200

    Add system property to configure the loop count for most HTTP/2 tests
---
 build.xml                                       | 1 +
 test/org/apache/coyote/http2/Http2TestBase.java | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/build.xml b/build.xml
index 6d28b3f..3370fa9 100644
--- a/build.xml
+++ b/build.xml
@@ -1607,6 +1607,7 @@
         <sysproperty key="tomcat.test.openssl.unimplemented" value="${test.openssl.unimplemented}" />
         <sysproperty key="tomcat.test.relaxTiming" value="${test.relaxTiming}" />
         <sysproperty key="tomcat.test.sslImplementation" value="${test.sslImplementation}" />
+        <sysproperty key="tomcat.test.http2.loopCount" value="${test.http2.loopCount}" />
         <!-- File for Cobertura to write coverage results to -->
         <sysproperty key="net.sourceforge.cobertura.datafile" file="${cobertura.datafile}" />
 
diff --git a/test/org/apache/coyote/http2/Http2TestBase.java b/test/org/apache/coyote/http2/Http2TestBase.java
index d618112..33924a6 100644
--- a/test/org/apache/coyote/http2/Http2TestBase.java
+++ b/test/org/apache/coyote/http2/Http2TestBase.java
@@ -57,8 +57,14 @@ import org.apache.tomcat.util.http.MimeHeaders;
  * Tests for compliance with the <a href="https://tools.ietf.org/html/rfc7540">
  * HTTP/2 specification</a>.
  */
+@org.junit.runner.RunWith(org.junit.runners.Parameterized.class)
 public abstract class Http2TestBase extends TomcatBaseTest {
 
+    @org.junit.runners.Parameterized.Parameters
+    public static Object[][] data() {
+        return new Object[Integer.getInteger("tomcat.test.http2.loopCount", 1)][0];
+    }
+
     // Nothing special about this date apart from it being the date I ran the
     // test that demonstrated that most HTTP/2 tests were failing because the
     // response now included a date header


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