[CalendarServer-changes] [10711] CalendarServer/branches/users/gaya/sharedgroups/testserver

source_changes at macosforge.org source_changes at macosforge.org
Tue Feb 12 19:12:40 PST 2013


Revision: 10711
          http://trac.calendarserver.org//changeset/10711
Author:   gaya at apple.com
Date:     2013-02-12 19:12:40 -0800 (Tue, 12 Feb 2013)
Log Message:
-----------
add -r option to print request and response

Modified Paths:
--------------
    CalendarServer/branches/users/gaya/sharedgroups/testserver

Modified: CalendarServer/branches/users/gaya/sharedgroups/testserver
===================================================================
--- CalendarServer/branches/users/gaya/sharedgroups/testserver	2013-02-13 03:10:20 UTC (rev 10710)
+++ CalendarServer/branches/users/gaya/sharedgroups/testserver	2013-02-13 03:12:40 UTC (rev 10711)
@@ -25,6 +25,7 @@
 
 verbose="";
 serverinfo="${cdt}/scripts/server/serverinfo.xml";
+printres="";
 
 usage ()
 {
@@ -34,19 +35,21 @@
   echo "        -h  Print this help and exit";
   echo "        -d  Set the CalDAVTester directory";
   echo "        -s  Set the serverinfo.xml";
+  echo "        -r  Print request and response";
   echo "        -v  Verbose.";
 
   if [ "${1-}" == "-" ]; then return 0; fi;
   exit 64;
 }
 
-while getopts 'hvd:s:' option; do
+while getopts 'hvpd:s:' option; do
   case "$option" in 
     '?') usage; ;;
     'h') usage -; exit 0; ;;
-    'd')   cdt="${OPTARG}"; ;;
+    'd')   cdt="${OPTARG}"; serverinfo="${OPTARG}/scripts/server/serverinfo.xml"; ;;
     's')   serverinfo="${OPTARG}"; ;;
-    'v')      verbose="v"; ;;
+    'p')   printres="--always-print-request --always-print-response"; ;;
+    'v')   verbose="v"; ;;
   esac;
 done;
 
@@ -62,5 +65,5 @@
 
 source "${wd}/support/shell.sh";
 
-cd "${cdt}" && "${python}" testcaldav.py --print-details-onfail -s "${serverinfo}" "$@";
+cd "${cdt}" && "${python}" testcaldav.py --print-details-onfail ${printres} -s "${serverinfo}" "$@";
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130212/abbbe035/attachment.html>


More information about the calendarserver-changes mailing list