Author: danielsh
Date: Thu Apr 14 08:17:40 2011
New Revision: 1092047

URL: http://svn.apache.org/viewvc?rev=1092047&view=rev
Log:
Allow running davautocheck with HTTPv2 disabled.

* Makefile.in
  (davautocheck): Document environment parameters.

* subversion/tests/cmdline/davautocheck.sh:
    Accept and use $USE_HTTPV1 environment parameter.

Modified:
    subversion/trunk/Makefile.in
    subversion/trunk/subversion/tests/cmdline/davautocheck.sh

Modified: subversion/trunk/Makefile.in
URL: 
http://svn.apache.org/viewvc/subversion/trunk/Makefile.in?rev=1092047&r1=1092046&r2=1092047&view=diff
==============================================================================
--- subversion/trunk/Makefile.in (original)
+++ subversion/trunk/Makefile.in Thu Apr 14 08:17:40 2011
@@ -493,6 +493,7 @@ davcheck: bin $(TEST_DEPS) @BDB_TEST_DEP
 # Automatically configure and run Apache httpd on a random port, and then
 # run make check.
 davautocheck: bin $(TEST_DEPS) @BDB_TEST_DEPS@ apache-mod
+       @# Takes MODULE_PATH and USE_HTTPV1 in the environment.
        @APXS=$(APXS) bash 
$(top_srcdir)/subversion/tests/cmdline/davautocheck.sh
 
 # First, run:

Modified: subversion/trunk/subversion/tests/cmdline/davautocheck.sh
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/davautocheck.sh?rev=1092047&r1=1092046&r2=1092047&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/davautocheck.sh Thu Apr 14 
08:17:40 2011
@@ -64,6 +64,9 @@
 #
 #   APXS=/opt/svn/1.4.x/bin/apxs MODULE_PATH=/opt/svn/1.4.x/modules \ 
 #     subversion/tests/cmdline/davautocheck.sh
+#
+# To prevent the server from advertising httpv2, pass USE_HTTPV1 in
+# the environment.
 
 SCRIPTDIR=$(dirname $0)
 SCRIPT=$(basename $0)
@@ -148,6 +151,12 @@ unset HTTPS_PROXY
 
 say "Using '$APXS'..."
 
+# Pick up $USE_HTTPV1
+ADVERTISE_V2_PROTOCOL=on
+if [ ${USE_HTTPV1:+set} ]; then
+ ADVERTISE_V2_PROTOCOL=off
+fi
+
 # Find the source and build directories. The build dir can be found if it is
 # the current working dir or the source dir.
 pushd ${SCRIPTDIR}/../../../ > /dev/null
@@ -313,6 +322,7 @@ CustomLog           "$HTTPD_ROOT/ops" "%
   AuthName          "Subversion Repository"
   AuthUserFile      $HTTPD_USERS
   Require           valid-user
+  SVNAdvertiseV2Protocol ${ADVERTISE_V2_PROTOCOL}
 </Location>
 <Location /svn-test-work/local_tmp/repos>
   DAV               svn
@@ -322,6 +332,7 @@ CustomLog           "$HTTPD_ROOT/ops" "%
   AuthName          "Subversion Repository"
   AuthUserFile      $HTTPD_USERS
   Require           valid-user
+  SVNAdvertiseV2Protocol ${ADVERTISE_V2_PROTOCOL}
 </Location>
 RedirectMatch permanent ^/svn-test-work/repositories/REDIRECT-PERM-(.*)\$ 
/svn-test-work/repositories/\$1
 RedirectMatch           ^/svn-test-work/repositories/REDIRECT-TEMP-(.*)\$ 
/svn-test-work/repositories/\$1


Reply via email to