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

« back to all changes in this revision

Viewing changes to subversion/tests/cmdline/svnserveautocheck.sh

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#
22
22
# -*- mode: shell-script; -*-
23
23
 
24
 
# This script simplifies the preparation of the environment for a Subversion client
25
 
# communicating with an svnserve server.
 
24
# This script simplifies the preparation of the environment for a Subversion
 
25
# client communicating with an svnserve server.
26
26
#
27
 
# The script runs svnserve, runs "make check", and kills the svnserve afterwards.
28
 
# It makes sure to kill the svnserve even if the test run dies.
 
27
# The script runs svnserve, runs "make check", and kills the svnserve
 
28
# afterwards.  It makes sure to kill the svnserve even if the test run dies.
29
29
#
30
30
# This script should be run from the top level of the Subversion
31
 
# distribution; it's easiest to just run it as "make
32
 
# svnserveautocheck".  Like "make check", you can specify further options
33
 
# like "make svnserveautocheck FS_TYPE=bdb TESTS=subversion/tests/cmdline/basic.py".
 
31
# distribution; it's easiest to just run it as "make svnserveautocheck".
 
32
# Like "make check", you can specify further options like
 
33
# "make svnserveautocheck FS_TYPE=bdb TESTS=subversion/tests/cmdline/basic.py".
34
34
 
35
35
PYTHON=${PYTHON:-python}
36
36
 
80
80
# for it and "make check-clean".
81
81
SVNSERVE_PID=$ABS_BUILDDIR/subversion/tests/svnserveautocheck.pid
82
82
 
83
 
export LD_LIBRARY_PATH="$ABS_BUILDDIR/subversion/libsvn_ra_neon/.libs:$ABS_BUILDDIR/subversion/libsvn_ra_local/.libs:$ABS_BUILDDIR/subversion/libsvn_ra_svn/.libs:$LD_LIBRARY_PATH"
84
 
 
85
83
SERVER_CMD="$ABS_BUILDDIR/subversion/svnserve/svnserve"
86
84
 
87
85
rm -f $SVNSERVE_PID
94
92
  fi
95
93
}
96
94
 
 
95
if type time > /dev/null; then
 
96
  TIME_CMD=time
 
97
else
 
98
  TIME_CMD=""
 
99
fi
 
100
 
97
101
SVNSERVE_PORT=$(random_port)
98
102
while netstat -an | grep $SVNSERVE_PORT | grep 'LISTEN'; do
99
103
  SVNSERVE_PORT=$(random_port)
103
107
  SVNSERVE_ARGS="-T"
104
108
fi
105
109
 
 
110
if [ ${CACHE_REVPROPS:+set} ]; then
 
111
  SVNSERVE_ARGS="$SVNSERVE_ARGS --cache-revprops on"
 
112
fi
 
113
 
106
114
"$SERVER_CMD" -d -r "$ABS_BUILDDIR/subversion/tests/cmdline" \
107
115
            --listen-host 127.0.0.1 \
108
116
            --listen-port $SVNSERVE_PORT \
111
119
 
112
120
BASE_URL=svn://127.0.0.1:$SVNSERVE_PORT
113
121
if [ $# = 0 ]; then
114
 
  time make check "BASE_URL=$BASE_URL"
 
122
  $TIME_CMD make check "BASE_URL=$BASE_URL"
115
123
  r=$?
116
124
else
117
125
  cd "$ABS_BUILDDIR/subversion/tests/cmdline/"
118
126
  TEST="$1"
119
127
  shift
120
 
  time "./${TEST}_tests.py" "--url=$BASE_URL" $*
 
128
  $TIME_CMD "./${TEST}_tests.py" "--url=$BASE_URL" $*
121
129
  r=$?
122
130
  cd - > /dev/null
123
131
fi