You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by sv...@apache.org on 2012/05/13 06:03:04 UTC
svn commit: r1337768 - in /subversion/branches/1.7.x: ./ STATUS
subversion/tests/cmdline/davautocheck.sh
Author: svn-role
Date: Sun May 13 04:03:03 2012
New Revision: 1337768
URL: http://svn.apache.org/viewvc?rev=1337768&view=rev
Log:
Merge the r1291594 group from trunk:
* r1291594, r1328267, r1328268
Support httpd-2.4 in davautocheck.
Justification:
Allow testing against current stable httpd.
Notes:
Depends on the r1327979 group.
Votes:
+1: philip, danielsh, gstein
Modified:
subversion/branches/1.7.x/ (props changed)
subversion/branches/1.7.x/STATUS
subversion/branches/1.7.x/subversion/tests/cmdline/davautocheck.sh
Propchange: subversion/branches/1.7.x/
------------------------------------------------------------------------------
Merged /subversion/trunk:r1291594,1328267-1328268
Modified: subversion/branches/1.7.x/STATUS
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x/STATUS?rev=1337768&r1=1337767&r2=1337768&view=diff
==============================================================================
--- subversion/branches/1.7.x/STATUS (original)
+++ subversion/branches/1.7.x/STATUS Sun May 13 04:03:03 2012
@@ -56,12 +56,3 @@ Veto-blocked changes:
Approved changes:
=================
-
- * r1291594, r1328267, r1328268
- Support httpd-2.4 in davautocheck.
- Justification:
- Allow testing against current stable httpd.
- Notes:
- Depends on the r1327979 group.
- Votes:
- +1: philip, danielsh, gstein
Modified: subversion/branches/1.7.x/subversion/tests/cmdline/davautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x/subversion/tests/cmdline/davautocheck.sh?rev=1337768&r1=1337767&r2=1337768&view=diff
==============================================================================
--- subversion/branches/1.7.x/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/branches/1.7.x/subversion/tests/cmdline/davautocheck.sh Sun May 13 04:03:03 2012
@@ -71,6 +71,9 @@
# To use value for "SVNPathAuthz" directive set SVN_PATH_AUTHZ with
# appropriate value in the environment.
#
+# To load an MPM module for Apache 2.4 use APACHE_MPM=event in the
+# environment.
+#
# Passing --no-tests as argv[1] will have the script start a server
# but not run any tests.
@@ -255,6 +258,10 @@ LOAD_MOD_AUTHN_FILE="$(get_loadmodule_co
LOAD_MOD_AUTHZ_USER="$(get_loadmodule_config mod_authz_user)" \
|| fail "Authz_User module not found."
}
+if [ ${APACHE_MPM:+set} ]; then
+ LOAD_MOD_MPM=$(get_loadmodule_config mod_mpm_$APACHE_MPM) \
+ || fail "MPM module not found"
+fi
HTTPD_PORT=$(($RANDOM+1024))
HTTPD_ROOT="$ABS_BUILDDIR/subversion/tests/cmdline/httpd-$(date '+%Y%m%d-%H%M%S')"
@@ -278,6 +285,7 @@ $HTPASSWD -b $HTTPD_USERS jconstant ray
touch $HTTPD_MIME_TYPES
cat > "$HTTPD_CFG" <<__EOF__
+$LOAD_MOD_MPM
$LOAD_MOD_LOG_CONFIG
$LOAD_MOD_MIME
$LOAD_MOD_ALIAS
@@ -292,9 +300,22 @@ $LOAD_MOD_AUTHZ_USER
$LOAD_MOD_AUTHZ_HOST
LoadModule authz_svn_module "$MOD_AUTHZ_SVN"
+__EOF__
+
+if "$HTTPD" -v | grep '/2\.[012]' >/dev/null; then
+ cat >> "$HTTPD_CFG" <<__EOF__
LockFile lock
User $(id -un)
Group $(id -gn)
+__EOF__
+else
+ cat >> "$HTTPD_CFG" <<__EOF__
+# TODO: maybe uncomment this for prefork,worker MPMs only?
+# Mutex file:lock mpm-accept
+__EOF__
+fi
+
+cat >> "$HTTPD_CFG" <<__EOF__
Listen $HTTPD_PORT
ServerName localhost
PidFile "$HTTPD_PID"