disable broken tests on net_4_0
[mcs.git] / class / Managed.Windows.Forms / build-csproj2k5-tests
blobf63d1e59a05e931fd233d8d7755690dea8d40153
1 #!/bin/bash
3 # This script will generate SWF2K5-tests.cs.target from our System.Windows.Forms.dll.sources
7 exec > SWF2k5-tests.csproj
9 Source=System.Windows.Forms_test.dll.sources
10 Resource=System.Windows.Forms.dll.resources
12 SWFhead()
14 cat <<EOF
15 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16 <PropertyGroup>
17 <ProjectType>Local</ProjectType>
18 <ProductVersion>8.0.50727</ProductVersion>
19 <SchemaVersion>2.0</SchemaVersion>
20 <ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
21 <Configuration Condition=" '\$(Configuration)' == '' ">Debug</Configuration>
22 <Platform Condition=" '\$(Platform)' == '' ">AnyCPU</Platform>
23 <ApplicationIcon>
24 </ApplicationIcon>
25 <AssemblyKeyContainerName>
26 </AssemblyKeyContainerName>
27 <AssemblyName>System.Windows.Forms_test</AssemblyName>
28 <AssemblyOriginatorKeyFile>
29 </AssemblyOriginatorKeyFile>
30 <DefaultClientScript>JScript</DefaultClientScript>
31 <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
32 <DefaultTargetSchema>IE50</DefaultTargetSchema>
33 <DelaySign>false</DelaySign>
34 <OutputType>Library</OutputType>
35 <RootNamespace>
36 </RootNamespace>
37 <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
38 <StartupObject>
39 </StartupObject>
40 <FileUpgradeFlags>
41 </FileUpgradeFlags>
42 <UpgradeBackupLocation>
43 </UpgradeBackupLocation>
44 </PropertyGroup>
45 <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug|AnyCPU' ">
46 <OutputPath>bin\Debug\</OutputPath>
47 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
48 <BaseAddress>285212672</BaseAddress>
49 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
50 <ConfigurationOverrideFile>
51 </ConfigurationOverrideFile>
52 <DefineConstants>NET_1_1 ONLY_1_1 __MonoCS__ DEBUG</DefineConstants>
53 <DocumentationFile>
54 </DocumentationFile>
55 <DebugSymbols>true</DebugSymbols>
56 <FileAlignment>4096</FileAlignment>
57 <NoStdLib>false</NoStdLib>
58 <NoWarn>
59 </NoWarn>
60 <Optimize>false</Optimize>
61 <RegisterForComInterop>false</RegisterForComInterop>
62 <RemoveIntegerChecks>false</RemoveIntegerChecks>
63 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
64 <WarningLevel>3</WarningLevel>
65 <DebugType>full</DebugType>
66 <ErrorReport>prompt</ErrorReport>
67 </PropertyGroup>
68 <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug 2.0|AnyCPU' ">
69 <OutputPath>bin\Debug\</OutputPath>
70 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
71 <BaseAddress>285212672</BaseAddress>
72 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
73 <ConfigurationOverrideFile>
74 </ConfigurationOverrideFile>
75 <DefineConstants>NET_2_0 __MonoCS__ DEBUG</DefineConstants>
76 <DocumentationFile>
77 </DocumentationFile>
78 <DebugSymbols>true</DebugSymbols>
79 <FileAlignment>4096</FileAlignment>
80 <NoStdLib>false</NoStdLib>
81 <NoWarn>
82 </NoWarn>
83 <Optimize>false</Optimize>
84 <RegisterForComInterop>false</RegisterForComInterop>
85 <RemoveIntegerChecks>false</RemoveIntegerChecks>
86 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
87 <WarningLevel>3</WarningLevel>
88 <DebugType>full</DebugType>
89 <ErrorReport>prompt</ErrorReport>
90 </PropertyGroup>
91 <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release|AnyCPU' ">
92 <OutputPath>bin\Release\</OutputPath>
93 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
94 <BaseAddress>285212672</BaseAddress>
95 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
96 <ConfigurationOverrideFile>
97 </ConfigurationOverrideFile>
98 <DefineConstants>NET_1_1 ONLY_1_1 __MonoCS__</DefineConstants>
99 <DocumentationFile>
100 </DocumentationFile>
101 <DebugSymbols>false</DebugSymbols>
102 <FileAlignment>4096</FileAlignment>
103 <NoStdLib>false</NoStdLib>
104 <NoWarn>
105 </NoWarn>
106 <Optimize>false</Optimize>
107 <RegisterForComInterop>false</RegisterForComInterop>
108 <RemoveIntegerChecks>false</RemoveIntegerChecks>
109 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
110 <WarningLevel>3</WarningLevel>
111 <DebugType>none</DebugType>
112 <ErrorReport>prompt</ErrorReport>
113 </PropertyGroup>
114 <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release 2.0|AnyCPU' ">
115 <OutputPath>bin\Release\</OutputPath>
116 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
117 <BaseAddress>285212672</BaseAddress>
118 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
119 <ConfigurationOverrideFile>
120 </ConfigurationOverrideFile>
121 <DefineConstants>NET_2_0 __MonoCS__</DefineConstants>
122 <DocumentationFile>
123 </DocumentationFile>
124 <DebugSymbols>false</DebugSymbols>
125 <FileAlignment>4096</FileAlignment>
126 <NoStdLib>false</NoStdLib>
127 <NoWarn>
128 </NoWarn>
129 <Optimize>false</Optimize>
130 <RegisterForComInterop>false</RegisterForComInterop>
131 <RemoveIntegerChecks>false</RemoveIntegerChecks>
132 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
133 <WarningLevel>3</WarningLevel>
134 <DebugType>none</DebugType>
135 <ErrorReport>prompt</ErrorReport>
136 </PropertyGroup>
137 <PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'net_2_0|AnyCPU' ">
138 <OutputPath>.\</OutputPath>
139 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
140 <BaseAddress>285212672</BaseAddress>
141 <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
142 <ConfigurationOverrideFile>
143 </ConfigurationOverrideFile>
144 <DefineConstants>NET_1_1 NET_2_0 __MonoCS__ DEBUG</DefineConstants>
145 <DocumentationFile>
146 </DocumentationFile>
147 <DebugSymbols>true</DebugSymbols>
148 <FileAlignment>4096</FileAlignment>
149 <NoStdLib>false</NoStdLib>
150 <NoWarn>
151 </NoWarn>
152 <Optimize>false</Optimize>
153 <RegisterForComInterop>false</RegisterForComInterop>
154 <RemoveIntegerChecks>false</RemoveIntegerChecks>
155 <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
156 <WarningLevel>3</WarningLevel>
157 <DebugType>full</DebugType>
158 <ErrorReport>prompt</ErrorReport>
159 <AssemblyName>System.Windows.Forms_test_net_2_0</AssemblyName>
160 </PropertyGroup>
161 <ItemGroup>
162 <Reference Include="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
163 <SpecificVersion>False</SpecificVersion>
164 <HintPath>C:\winforms-unittests\nunit.framework.dll</HintPath>
165 </Reference>
166 <Reference Include="Accessibility">
167 <Name>Accessibility</Name>
168 </Reference>
169 <Reference Include="System">
170 <Name>System</Name>
171 </Reference>
172 <Reference Include="System.Data">
173 <Name>System.Data</Name>
174 </Reference>
175 <Reference Include="System.Data">
176 <Name>System.Data</Name>
177 </Reference>
178 <Reference Include="System.Drawing">
179 <Name>System.Drawing</Name>
180 </Reference>
181 <Reference Include="System.Windows.Forms">
182 <Name>System.Windows.Forms</Name>
183 </Reference>
184 <Reference Include="System.Xml">
185 <Name>System.Xml</Name>
186 </Reference>
187 </ItemGroup>
191 SWFtail()
193 cat <<EOF
194 <ItemGroup>
195 <None Include="Test\System.Windows.Forms\ChangeLog" />
196 </ItemGroup>
197 <ItemGroup>
198 <None Include="Test\System.Resources\ChangeLog" />
199 </ItemGroup>
200 <ItemGroup>
201 <None Include="Test\System.Windows.Forms.Layout\ChangeLog" />
202 </ItemGroup>
203 <Import Project="\$(MSBuildBinPath)\Microsoft.CSharp.targets" />
204 <PropertyGroup>
205 <PreBuildEvent>
206 </PreBuildEvent>
207 <PostBuildEvent>
208 </PostBuildEvent>
209 </PropertyGroup>
210 </Project>
214 SWFfilelist()
216 echo " <ItemGroup>"
217 cat $Source | while read SRC; do
218 # Don't do AssemblyInfo, it's got signing requests and such that we don't want
219 if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
220 SRC=`echo Test/$SRC`
221 SRC=`echo $SRC | sed 's/Test\/..\/..\/..\/build\///'`
222 SRC=`echo $SRC | tr '/' '\\\\'`
223 cat <<EOF
224 <Compile Include="$SRC" />
227 done
228 echo " </ItemGroup>"
231 SWFresourcelist()
233 echo " <ItemGroup>"
234 cat $Resource | while read SRC; do
235 CUSTOMTOOLNAMESPACE=""
237 # strip out that -resource:
238 SRC=`echo $SRC | sed 's/-resource://'`
240 CUSTOMTOOLNAMESPACE=`echo $SRC | awk -F, '{print $2}'`
242 INCLUDE=`echo $SRC | awk -F, '{print $1}'`
244 if test -f $INCLUDE.prebuilt; then
245 INCLUDE=$INCLUDE.prebuilt
248 # strip off the path from the name of the resource and the .prebuilt if there is one
249 LOGICALNAME=`echo $INCLUDE | sed 's/resources\///;s/.prebuilt//'`
251 # convert all /'s to \\'s
252 INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`
254 echo " <EmbeddedResource Include=\"$INCLUDE\">"
255 echo " <LogicalName>$LOGICALNAME</LogicalName>"
256 if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
257 echo " <CustomToolNameSpace>$CUSTOMTOOLNAMESPACE</CustomToolNameSpace>"
259 echo " </EmbeddedResource>"
260 done
261 echo " </ItemGroup>"
264 SWFhead
265 SWFfilelist
266 #SWFresourcelist
267 SWFtail