]> git.saurik.com Git - wxWidgets.git/blame - build/buildbot/config/include/testdrive-win.xml
Added wxDataViewListIndexModel::Reset(), clarified and corrected wxDataViewModel...
[wxWidgets.git] / build / buildbot / config / include / testdrive-win.xml
CommitLineData
801be649
MW
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4 Name: include/testdrive-win.xml
5 Purpose: Declarations for the testdrive Windows build slave
6 Author: Mike Wetherell
7 RCS-ID: $Id$
8 Copyright: (c) 2007 Mike Wetherell
9 Licence: wxWidgets licence
10-->
11
12<bot xmlns:xi="http://www.w3.org/2001/XInclude"
13 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14 xsl:version="1.0">
15
16<xi:include href="testdrive.xml"/>
17
18<!--
19 post-checkout - post checkout <command> run by <checkout>
20
21 Usage: <post-checkout/>
22
23 The command is executed inside the shared checkout dir, and normally it
24 is used to make a private copy.
25-->
26<xsl:template name="post-checkout">
27<command>
28if exist "%BUILDDIR%" (rmdir /s/q "%BUILDDIR%" || exit 1)
29xcopy /s/q/i . "%BUILDDIR%" || (rmdir /s/q "%BUILDDIR%" &amp; exit 1)
30</command>
31</xsl:template>
32
33<!--
34 profile - see <steps>.
35-->
36<xsl:template name="profile">
37<command>
38set BUILDDIR=%USERPROFILE%\build
39</command>
40</xsl:template>
41
42<!--
43 prologue - see <steps>.
44-->
45<xsl:template name="prologue">
46 <xsl:param name="content"/>
47 <xsl:param name="build"/>
48 <xsl:variable name="name">
49 <lower-case>
50 <get name="name" build="{$build}"/>
51 </lower-case>
52 </xsl:variable>
53 <command>
54 <xsl:choose>
55 <xsl:when test="contains($name, 'vc++') or contains($name, 'msvc')">
56 <prologue-msvc/>
57 </xsl:when>
58 <xsl:when test="contains($name, 'cygwin')">
59 <prologue-cygwin/>
60 </xsl:when>
61 <xsl:otherwise>
62 <prologue-default/>
63 </xsl:otherwise>
64 </xsl:choose>
65 </command>
66</xsl:template>
67
68<xsl:template name="prologue-msvc">
69call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /SRV64
70set LINK=bufferoverflowu.lib
71cd /d "%BUILDDIR%"
72</xsl:template>
73
74<xsl:template name="prologue-cygwin">
75call h:\cygwin\cyg-vars.bat
76cd /d "%BUILDDIR%"
77sh -c \
78</xsl:template>
79
80<xsl:template name="prologue-default">
81cd /d "%BUILDDIR%"
82</xsl:template>
83
84<!--
85 epilogue - see <steps>.
86-->
87<xsl:template name="epilogue">
88 <xsl:choose>
89 <xsl:when test="position() = last()">
90 <command>
91 <cleanup/>
92 </command>
93 </xsl:when>
94 <xsl:otherwise>
95 <if-del-on-fail>
96 <command>
97 if ERRORLEVEL 1 (<cleanup/>)
98 </command>
99 </if-del-on-fail>
100 </xsl:otherwise>
101 </xsl:choose>
102</xsl:template>
103
104<xsl:template name="cleanup">
105cd /d "%USERPROFILE%" &amp; rmdir /s/q "%BUILDDIR%" &amp; exit %ERRORLEVEL%
106</xsl:template>
107
108</bot>