[gs-cvs] rev 8792 - trunk/gs/toolbin

giles at ghostscript.com giles at ghostscript.com
Mon Jun 9 16:02:50 PDT 2008


Author: giles
Date: 2008-06-09 16:02:50 -0700 (Mon, 09 Jun 2008)
New Revision: 8792

Added:
   trunk/gs/toolbin/clusterpush.sh
Log:
Add a modified version of the clusterpush script from the ghostpcl tree.


Added: trunk/gs/toolbin/clusterpush.sh
===================================================================
--- trunk/gs/toolbin/clusterpush.sh	2008-06-09 13:46:08 UTC (rev 8791)
+++ trunk/gs/toolbin/clusterpush.sh	2008-06-09 23:02:50 UTC (rev 8792)
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+# helper script to syncronize a working tree with the regression cluster
+
+HOST=atfxsw01 at tticluster.com
+DEST=$USER
+
+# try to use the same directory name on the cluster
+TARGET=`basename $PWD`
+if test -z "$TARGET"; then
+  if test -d gs; then
+    TARGET='ghostpcl'
+  else
+    TARGET='gs'
+  fi
+fi
+
+# try get the current revision
+REV=`svn info | grep Revision | cut -d ' ' -f 2`
+if test -z "$REV"; then
+  REV='unknown'
+fi
+
+echo "Pushing to $DEST/$TARGET on the cluster..."
+rsync -avz \
+  --exclude .svn --exclude .git \
+  --exclude bin --exclude obj --exclude debugobj \
+  --exclude main/obj --exclude main/debugobj \
+  --exclude language_switch/obj --exclude language_switch/obj \
+  --exclude xps/obj --exclude xps/debugobj \
+  --exclude svg/obj --exclude xps/debugobj \
+  --exclude ufst --exclude ufst-obj \
+  ./* $HOST:$DEST/$TARGET
+
+echo -n "Copying regression baseline"
+if test -d src; then
+  LATEST='gs'
+else
+  LATEST=`ssh $HOST ls regression \| \
+   egrep 'ghostpcl-r[0-9]+\+[0-9]+' \| sort -r \| head -1`
+fi
+echo " from $LATEST..."
+ssh $HOST "cp regression/$LATEST/reg_baseline.txt $DEST/$TARGET/"
+
+echo "Queuing regression test..."
+echo "cd $DEST/$TARGET && run_regression" | ssh $HOST
+
+REPORT=`ssh $HOST ls $DEST/$TARGET \| egrep '^regression-[0-9]+.log$' \| sort -r \| head -1`
+echo "Pulling $REPORT..."
+scp -q $HOST:$DEST/$TARGET/$REPORT .
+cat $REPORT


Property changes on: trunk/gs/toolbin/clusterpush.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the gs-cvs mailing list