]> git.saurik.com Git - wxWidgets.git/blobdiff - build/buildbot/config/include/defs.xml
No real changes, just rename double variables to "d".
[wxWidgets.git] / build / buildbot / config / include / defs.xml
index 487751772fcd8071fa817d3b4804d704fdb2f6b3..c275cdf033da385f4be04bef115cd3a43dbe2383 100644 (file)
 <xsl:variable name="RELEASE_BRANCH"><RELEASE_BRANCH/></xsl:variable>
 <xsl:template name="SNAPSHOT_URL">http://biolpc22.york.ac.uk/pub</xsl:template>
 
 <xsl:variable name="RELEASE_BRANCH"><RELEASE_BRANCH/></xsl:variable>
 <xsl:template name="SNAPSHOT_URL">http://biolpc22.york.ac.uk/pub</xsl:template>
 
+<!--
+    disable - comment out a section.
+
+    Usage: <disable>
+                e.g. <build> ... etc.
+           </disable>
+
+    XML comments can't contain a double hyphen which tends to be used in
+    configure commands, so <disable> can be used instead. 
+-->
+<xsl:template name="disable"/>
+
 <!--
     checkout - build step for source checkout.
 
 <!--
     checkout - build step for source checkout.
 
@@ -390,10 +402,26 @@ try()
 
 try ./test <xsl:value-of select="normalize-space($options)"/>
 
 
 try ./test <xsl:value-of select="normalize-space($options)"/>
 
-if [ -n "$DISPLAY" -a -x test_gui ]; then
-    try ./test_gui <xsl:value-of select="normalize-space($guioptions)"/>
+test -x test_gui || exit $ERR
+
+if [ -z "$DISPLAY" ]; then
+    echo '$DISPLAY is not set, skipping GUI tests.'
+    exit $ERR
 fi
 
 fi
 
+echo 'Checking window manager:'
+WINDOW_MANAGER=$(xprop -root 32x '\n$0\n' _NET_SUPPORTING_WM_CHECK | grep ^0x)
+
+if [ -z "$WINDOW_MANAGER" ]; then
+    echo 'Window manager not present, skipping GUI tests.'
+    exit $ERR
+fi
+
+xprop -id $WINDOW_MANAGER 8s _NET_WM_NAME
+echo
+
+try ./test_gui <xsl:value-of select="normalize-space($guioptions)"/>
+
 exit $ERR
 </xsl:template>
 
 exit $ERR
 </xsl:template>