[Xquartz-changes] [539] tinderbox/tinderbox_test.sh

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 27 22:23:07 PDT 2011


Revision: 539
          http://trac.macosforge.org/projects/xquartz/changeset/539
Author:   jeremyhu at freedesktop.org
Date:     2011-04-27 22:23:07 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
Upload clang static analysis

Modified Paths:
--------------
    tinderbox/tinderbox_test.sh

Modified: tinderbox/tinderbox_test.sh
===================================================================
--- tinderbox/tinderbox_test.sh	2011-04-28 05:17:08 UTC (rev 538)
+++ tinderbox/tinderbox_test.sh	2011-04-28 05:23:07 UTC (rev 539)
@@ -70,11 +70,36 @@
 
 [[ -d "${JHBUILDDIR}/build/share/aclocal" ]] || mkdir -p "${JHBUILDDIR}/build/share/aclocal"
 
+upload_analyzer() {
+    ssh jeremyhu at people.freedesktop.org mkdir -p w/${1} &&
+    rsync --archive --force --whole-file --delete --delete-after --verbose --compress ${JHBUILDDIR}/${1}/ jeremyhu at people.freedesktop.org:w/${1}
+}
+
+upload_analyzer_pipe() {
+    if [[ ! -r ${JHBUILDDIR}/fdo.dsa ]] ; then
+        cat
+        return 0
+    fi
+
+    eval $(/usr/bin/ssh-agent -s)
+    /usr/bin/ssh-add "${JHBUILDDIR}/fdo.dsa"
+
+    perl -n -e "if(m/scan-build: Run 'scan-view .*\/(analyzer\/.*)' to examine bug reports\./) { print \$1.\"\n\";}" |
+    while read path ; do
+        upload_analyzer "${path}" < /dev/null
+    done
+
+    # Do one final rsync to sync old log removal
+    upload_analyzer analyzer/yuffie
+
+    kill ${SSH_AGENT_PID}
+}
+
 #$JHBUILD clean
 #$JHBUILD build --autogen --clean
 #$JHBUILD build --autogen --clean --start-at=xserver
 #$JHBUILD autobuild --autogen --verbose --report-url="${URL}"
-$JHBUILD autobuild --autogen --clean --verbose --report-url="${URL}"
+$JHBUILD autobuild --autogen --clean --verbose --report-url="${URL}" | upload_analyzer_pipe
 
 # Delete, so LS doesn't find it accidentally
 if [[ $CONFIG = "yuffie" ]] ; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20110427/2aa49888/attachment.html>


More information about the Xquartz-changes mailing list