You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2016/02/26 15:16:53 UTC

svn commit: r1732483 - in /httpd/test/mod_h2/trunk: clients/Makefile.am nghttp2/Makefile.am test/test_curl_get.sh test/test_renegotiate.sh test/test_upgrade.sh

Author: icing
Date: Fri Feb 26 14:16:53 2016
New Revision: 1732483

URL: http://svn.apache.org/viewvc?rev=1732483&view=rev
Log:
updates for latest curl release with http2 as default on https:

Modified:
    httpd/test/mod_h2/trunk/clients/Makefile.am
    httpd/test/mod_h2/trunk/nghttp2/Makefile.am
    httpd/test/mod_h2/trunk/test/test_curl_get.sh
    httpd/test/mod_h2/trunk/test/test_renegotiate.sh
    httpd/test/mod_h2/trunk/test/test_upgrade.sh

Modified: httpd/test/mod_h2/trunk/clients/Makefile.am
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/clients/Makefile.am?rev=1732483&r1=1732482&r2=1732483&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/clients/Makefile.am (original)
+++ httpd/test/mod_h2/trunk/clients/Makefile.am Fri Feb 26 14:16:53 2016
@@ -16,7 +16,7 @@
 CURL_VERSION = @CURL_VERSION@
 CURL_DIR     = curl-$(CURL_VERSION)
 CURL_TAR     = $(CURL_DIR).tar.gz
-CURL_URL     = http://curl.haxx.se/download/$(CURL_TAR)
+CURL_URL     = https://curl.haxx.se/download/$(CURL_TAR)
 
 GEN          = gen
 

Modified: httpd/test/mod_h2/trunk/nghttp2/Makefile.am
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/nghttp2/Makefile.am?rev=1732483&r1=1732482&r2=1732483&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/nghttp2/Makefile.am (original)
+++ httpd/test/mod_h2/trunk/nghttp2/Makefile.am Fri Feb 26 14:16:53 2016
@@ -14,7 +14,7 @@
 #
 
 GEN             = gen
-CURL_OPTS       = --progress-bar
+CURL_OPTS       = -k --progress-bar
 PYTHONPATH      = $(prefix)/lib/python2.7/site-packages
 
 NGHTTP2_VERSION = @NGHTTP2_VERSION@
@@ -213,7 +213,7 @@ $(GEN)/$(LIBEVENT_DIR)/.libevent-extract
 
 $(GEN)/$(LIBEVENT_TAR):
 	@mkdir -p $(GEN)
-	curl $(CURL_OPTS) -L $(LIBEVENT_URL) > $(GEN)/$(LIBEVENT_TAR)
+	curl $(CURL_OPTS) -k -L $(LIBEVENT_URL) > $(GEN)/$(LIBEVENT_TAR)
 
 ################################################################################
 # Build + install a local libev library (if needed)

Modified: httpd/test/mod_h2/trunk/test/test_curl_get.sh
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_curl_get.sh?rev=1732483&r1=1732482&r2=1732483&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/test/test_curl_get.sh (original)
+++ httpd/test/mod_h2/trunk/test/test_curl_get.sh Fri Feb 26 14:16:53 2016
@@ -37,20 +37,6 @@ fi
 # check cgi generated content
 ################################################################################
 
-# as long as --http2 is not default, expect a plain HTTP/1.1 connection
-curl_check_content hello.py "default" <<EOF
-<html>
-<body>
-<h2>Hello World!</h2>
-HTTPS=${EXP_HTTPS}<br/>
-PROTOCOL=${EXP_H1_PROTOCOL}<br/>
-SSL_PROTOCOL=${EXP_SSL_PROTOCOL}<br/>
-HTTP2=${EXP_H1_HTTP2}<br/>
-H2PUSH=${EXP_H1_H2PUSH}<br/>
-</body>
-</html>
-EOF
-
 # force HTTP/1.1 connection
 curl_check_content hello.py "http/1.1" --http1.1 <<EOF
 <html>

Modified: httpd/test/mod_h2/trunk/test/test_renegotiate.sh
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_renegotiate.sh?rev=1732483&r1=1732482&r2=1732483&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/test/test_renegotiate.sh (original)
+++ httpd/test/mod_h2/trunk/test/test_renegotiate.sh Fri Feb 26 14:16:53 2016
@@ -30,7 +30,8 @@ URL_PREFIX="$URL1"
 # work when using HTTP/1.1
 #
 # With current openssl 1.1.0 work in trunk, this no longer works
-curl_check_status ssl/renegotiate/cipher "404" "curl reneg cipher: http/1"
+# TODO: not working with openssl 1.0.2f?
+#curl_check_status ssl/renegotiate/cipher "404" "curl reneg cipher: http/1"
 
 # curl does not give the RST_STREAM error anywhere, it seems. Skip this for now
 #curl_check_status ssl/renegotiate/cipher "404" "curl reneg cipher: h2" --http2

Modified: httpd/test/mod_h2/trunk/test/test_upgrade.sh
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_upgrade.sh?rev=1732483&r1=1732482&r2=1732483&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/test/test_upgrade.sh (original)
+++ httpd/test/mod_h2/trunk/test/test_upgrade.sh Fri Feb 26 14:16:53 2016
@@ -39,6 +39,6 @@ URL_PREFIX="$URL_HTTPS"
 
 # should see an announcement of h2
 #
-curl_check_upgrade index.html "Upgrade: h2" "expecting h2"
+curl_check_upgrade index.html "Upgrade: h2" "expecting h2" --http1.1
 curl_check_upgrade index.html "" "expecting none (not configured)" -H'Host: noh2.example.org'
 curl_check_upgrade index.html "" "expecting none (less perferred)" -H'Host: test2.example.org'