1 <?xml version=
"1.0" encoding=
"utf-8"?>
4 Name: include/testdrive-win.xml
5 Purpose: Declarations for the testdrive Windows build slave
8 Copyright: (c) 2007 Mike Wetherell
9 Licence: wxWidgets licence
12 <bot xmlns:
xi=
"http://www.w3.org/2001/XInclude"
13 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
16 <xi:include href=
"testdrive.xml"/>
19 post-checkout - post checkout <command> run by <checkout>
21 Usage: <post-checkout/>
23 The command is executed inside the shared checkout dir, and normally it
24 is used to make a private copy.
26 <xsl:template name=
"post-checkout">
28 if exist "%BUILDDIR%" (rmdir /s/q "%BUILDDIR%" || exit
1)
29 xcopy /s/q/i . "%BUILDDIR%" || (rmdir /s/q "%BUILDDIR%"
& exit
1)
34 profile - see <steps>.
36 <xsl:template name=
"profile">
38 for %I in ("%USERPROFILE%") do set BUILDDIR=%~sI\build
43 prologue - see <steps>.
45 <xsl:template name=
"prologue">
46 <xsl:param name=
"content"/>
47 <xsl:param name=
"build"/>
48 <xsl:variable name=
"name">
50 <get name=
"name" build=
"{$build}"/>
55 <xsl:when test=
"contains($name, 'vc++') or contains($name, 'msvc')">
58 <xsl:when test=
"contains($name, 'cygwin')">
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
74 <xsl:template name=
"prologue-cygwin">
75 call h:\cygwin\cyg-vars.bat
76 PATH=%PATH%;%BUILDDIR%\lib
81 <xsl:template name=
"prologue-default">
86 epilogue - see <steps>.
88 <xsl:template name=
"epilogue">
90 <xsl:when test=
"position() = last()">
98 if ERRORLEVEL
1 (
<cleanup/>)
105 <xsl:template name=
"cleanup">
106 cd /d "%USERPROFILE%"
& rmdir /s/q "%BUILDDIR%"
& exit %ERRORLEVEL%