]> git.saurik.com Git - wxWidgets.git/blob - build/buildbot/config/include/testdrive-win.xml
remove the badle defined and apparently unnecessary wxSocketImpl::m_detected field
[wxWidgets.git] / build / buildbot / config / include / testdrive-win.xml
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>
28 if exist "%BUILDDIR%" (rmdir /s/q "%BUILDDIR%" || exit 1)
29 xcopy /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>
38 for %I in ("%USERPROFILE%") do set BUILDDIR=%~sI\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">
69 call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /SRV64
70 set LINK=bufferoverflowu.lib
71 cd /d "%BUILDDIR%"
72 </xsl:template>
73
74 <xsl:template name="prologue-cygwin">
75 call h:\cygwin\cyg-vars.bat
76 PATH=%PATH%;%BUILDDIR%\lib
77 cd /d "%BUILDDIR%"
78 sh -c \
79 </xsl:template>
80
81 <xsl:template name="prologue-default">
82 cd /d "%BUILDDIR%"
83 </xsl:template>
84
85 <!--
86 epilogue - see <steps>.
87 -->
88 <xsl:template name="epilogue">
89 <xsl:choose>
90 <xsl:when test="position() = last()">
91 <command>
92 <cleanup/>
93 </command>
94 </xsl:when>
95 <xsl:otherwise>
96 <if-del-on-fail>
97 <command>
98 if ERRORLEVEL 1 (<cleanup/>)
99 </command>
100 </if-del-on-fail>
101 </xsl:otherwise>
102 </xsl:choose>
103 </xsl:template>
104
105 <xsl:template name="cleanup">
106 cd /d "%USERPROFILE%" &amp; rmdir /s/q "%BUILDDIR%" &amp; exit %ERRORLEVEL%
107 </xsl:template>
108
109 </bot>