[CalendarServer-changes] [7099] CalendarServer/trunk/contrib/performance

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 4 10:25:42 PST 2011


Revision: 7099
          http://trac.macosforge.org/projects/calendarserver/changeset/7099
Author:   exarkun at twistedmatrix.com
Date:     2011-03-04 10:25:40 -0800 (Fri, 04 Mar 2011)
Log Message:
-----------
Some random quoting tweaks (hopefully improvements, but far from complete) and a change to revision handling so that dates can be passed to sample.sh to specify a revision to benchmark.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/nightly.sh
    CalendarServer/trunk/contrib/performance/sample.sh

Modified: CalendarServer/trunk/contrib/performance/nightly.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/nightly.sh	2011-03-04 15:16:55 UTC (rev 7098)
+++ CalendarServer/trunk/contrib/performance/nightly.sh	2011-03-04 18:25:40 UTC (rev 7099)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
 
 ##
 # Copyright (c) 2011 Apple Inc. All rights reserved.
@@ -22,7 +22,7 @@
     exit
 else
     svn up
-    REV="`./contrib/performance/svn-revno .`"
+    REV="$(./contrib/performance/svn-revno .)"
     cd ~codespeed/performance
     ./sample.sh "$REV" ~codespeed/Projects/CalendarServer/trunk "$1"
 fi

Modified: CalendarServer/trunk/contrib/performance/sample.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sample.sh	2011-03-04 15:16:55 UTC (rev 7098)
+++ CalendarServer/trunk/contrib/performance/sample.sh	2011-03-04 18:25:40 UTC (rev 7099)
@@ -20,11 +20,12 @@
 
 sudo -v # Force up to date sudo token before the user walks away
 
-REV=$1
-SOURCE_DIR=$2
-RESULTS=$3
+REV_SPEC="$1"
+SOURCE_DIR="$2"
+RESULTS="$3"
 
-update_and_build $REV
+update_and_build "$REV_SPEC"
+REV="$(./svn-revno "$SOURCE_DIR")"
 
 if [ "$HOSTS_COUNT" != "" ]; then
     CONCURRENT="--hosts-count $HOSTS_COUNT --host-index $HOST_INDEX"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110304/33d6e42c/attachment.html>


More information about the calendarserver-changes mailing list