You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2013/07/29 07:09:54 UTC

svn commit: r1507939 - /subversion/trunk/subversion/tests/cmdline/davautocheck.sh

Author: danielsh
Date: Mon Jul 29 05:09:53 2013
New Revision: 1507939

URL: http://svn.apache.org/r1507939
Log:
* subversion/tests/cmdline/davautocheck.sh
  (--gdb): New cmdline option.

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

Modified: subversion/trunk/subversion/tests/cmdline/davautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/davautocheck.sh?rev=1507939&r1=1507938&r2=1507939&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/davautocheck.sh Mon Jul 29 05:09:53 2013
@@ -79,7 +79,8 @@
 # environment.
 #
 # Passing --no-tests as argv[1] will have the script start a server
-# but not run any tests.
+# but not run any tests.  Passing --gdb will do the same, and in addition
+# spawn gdb in the foreground attached to the running server.
 
 PYTHON=${PYTHON:-python}
 
@@ -506,6 +507,7 @@ if [ -x $STOPSCRIPT ]; then $STOPSCRIPT 
 printf \
 '#!/bin/sh
 if [ -d "%s" ]; then
+  printf "Stopping previous HTTPD instance..."
   %s -k stop || kill -9 `cat %s`
 fi
 ' >$STOPSCRIPT "$HTTPD_ROOT" "$START" "$HTTPD_PID"
@@ -550,6 +552,13 @@ if [ $# -eq 1 ] && [ "x$1" = 'x--no-test
   exit
 fi
 
+if [ $# -eq 1 ] && [ "x$1" = 'x--gdb' ]; then
+  echo "http://localhost:$HTTPD_PORT/svn-test-work/repositories"
+  $STOPSCRIPT && gdb -silent -ex r -args $START -X
+  exit
+fi
+
+
 if type time > /dev/null; then
   TIME_CMD=time
 else