]> git.saurik.com Git - wxWidgets.git/commitdiff
define a separate run-tests-with-timing tag
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Jan 2009 00:09:01 +0000 (00:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Jan 2009 00:09:01 +0000 (00:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/buildbot/config/include/defs.xml
build/buildbot/config/ravnsgaard.xml

index 19cf8e491103cb35c9bba1e1aff2936fa42293d8..a3531c51d8fb07640ee81483ff07776c7102d5ed 100644 (file)
     </test>
 </xsl:template>
 
+<!--
+    run-tests-with-timing - build step to run the test suites with extra timing
+    option.
+
+    Usage: as <test>
+
+    Typically just:
+        <run-tests-with-timing/>
+-->
+<xsl:template name="run-tests-with-timing">
+    <xsl:param name="content"/>
+    <xsl:param name="msw"><is-msw/></xsl:param>
+    <test>
+        <defaults content="{$content}">
+            <description>running tests with timing</description>
+            <descriptionDone>run tests with timing</descriptionDone>
+            <warnOnFailure/>
+        </defaults>
+        <copy-with-defaults content="{$content}">
+            <command>
+                <xsl:choose>
+                    <xsl:when test="$msw = 'true'">
+                        <run-tests-with-timing-win/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <run-tests-with-timing-unix/>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </command>
+        </copy-with-defaults>
+    </test>
+</xsl:template>
+
 <!--
     We need to add something to the wxWidgets sources to run the tests with a
     simple command so that these aren't necessary.
@@ -371,7 +404,24 @@ cd tests &amp;&amp;
 <xsl:template name="run-tests-unix">
 <normalize-space>
 cd tests &amp;&amp;
-./test --timing &amp;&amp;
+./test &amp;&amp;
+if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi
+</normalize-space>
+</xsl:template>
+
+<xsl:template name="run-tests-with-timing-win">
+<normalize-space>
+cd tests &amp;&amp;
+(for /d %x in (..\lib\*_dll) do @PATH=%x;%PATH%) &amp;&amp;
+(for /d %x in (*) do @if exist %x\test.exe %x\test -t) &amp;&amp;
+(for /d %x in (*) do @if exist %x\test_gui.exe %x\test_gui -t)
+</normalize-space>
+</xsl:template>
+
+<xsl:template name="run-tests-with-timing-unix">
+<normalize-space>
+cd tests &amp;&amp;
+./test -t &amp;&amp;
 if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui; fi
 </normalize-space>
 </xsl:template>
index 78d7c38db29098f6148ab73c0ece0d0ee62bbba8..ae0aab975d503ebdec0be98bdd9e9e0cf4b7e67e 100644 (file)
@@ -28,7 +28,7 @@
             <checkout/>
             <configure options="--with-gtk --disable-debug --enable-stl --enable-std_iostreams --enable-std_string --disable-compat28"/>
             <compile-all/>
-            <run-tests/>
+            <run-tests-with-timing/>
         </steps>
     </build>