~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/tests/cmdline/dav-mirror-autocheck.sh

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# to the slave.  The test should be able to throw all kinds
24
24
# of svn operations at one or the other, and master/slave
25
25
# verified as identical in the end.
26
 
 
26
#
27
27
# Master / slave setup is achieved in a single httpd process
28
28
# using virtual hosts bound to different addresses on the
29
29
# loopback network (127.0.0.1, 127.0.0.2) for slave and
34
34
# http://subversion.tigris.org/issues/show_bug.cgi?id=2939
35
35
# But of course, any svn traffic liable to break over
36
36
# mirroring would be a good addition.
37
 
 
37
#
38
38
# Most of the httpd setup was lifted from davautocheck.sh.
39
39
# The common boilerplate snippets to setup/start/stop httpd
40
40
# between the two could be factored out and shared.
95
95
  return 1
96
96
}
97
97
 
98
 
# splat out httpd config 
 
98
# splat out httpd config
99
99
function setup_config() {
100
100
 
101
101
  say "setting up config: " $1
152
152
  ServerName ${SLAVE_HOST}
153
153
  CustomLog           "${HTTPD_ROOT}/slave_access_log" common
154
154
  ErrorLog            "${HTTPD_ROOT}/slave_error_log"
155
 
# slave 'normal' location  
 
155
# slave 'normal' location
156
156
  <Location "/${SLAVE_LOCATION}">
157
157
    DAV               svn
158
158
    SVNPath           "${SLAVE_REPOS}"
196
196
  echo
197
197
  echo " " '<test-work-directory>' must not exist, \
198
198
    I will not clobber it for you 1>&2
199
 
  exit 1  
 
199
  exit 1
200
200
}
201
201
### Start execution here ###
202
202
 
403
403
#
404
404
# reproducible test case from:
405
405
# http://subversion.tigris.org/issues/show_bug.cgi?id=2939
406
 
 
406
#
407
407
BASE_URL="$SLAVE_URL"
408
408
say running svnmucc test to $BASE_URL
409
409
svnmucc="$SVNMUCC --non-interactive --username jrandom --password rayjandom -mm"
492
492
say "Re-activating the post-commit hook on the master repo: $MASTER_REPOS."
493
493
mv "$MASTER_REPOS/hooks/post-commit_" "$MASTER_REPOS/hooks/post-commit"
494
494
say "Syncing slave with master."
495
 
$SVNSYNC --non-interactive sync "$SYNC_URL" --username=svnsync --password=svnsync 
 
495
$SVNSYNC --non-interactive sync "$SYNC_URL" --username=svnsync --password=svnsync
496
496
# shut it down
497
497
echo -n "${SCRIPT}: stopping httpd: "
498
498
$HTTPD -f $HTTPD_CONFIG -k stop