When a relation is moved to another tablespace, we can't assume that we can
[PostgreSQL.git] / src / tools / msvc / ecpg_regression.proj
blob874ea10dfbd07309f4c44503ba001473a9725003
1 <?xml version="1.0"?>
2 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="all">
3 <!--
4 MSBuild project file to build ecpg regression tests
5 -->
7 <PropertyGroup>
8 <TESTDIR>..\..\interfaces\ecpg\test</TESTDIR>
9 <CONFIG>Debug</CONFIG>
10 <OUTDIR>..\..\..\..\..\$(CONFIG)\</OUTDIR>
11 </PropertyGroup>
12 <PropertyGroup Condition="'$(CONFIG)'=='DEBUG'">
13 <!-- set debug runtime library if necessary to be compatible with the LIB files generated -->
14 <DEBUGLIB>d</DEBUGLIB>
15 </PropertyGroup>
17 <ItemGroup>
18 <Pgc Include="$(TESTDIR)\**\*.pgc" Exclude="$(TESTDIR)\performance\perftest.pgc"/>
19 </ItemGroup>
21 <ItemGroup>
22 <OutputToDelete Include="$(TESTDIR)\**\*.exe" />
23 <OutputToDelete Include="$(TESTDIR)\**\*.exe.manifest" />
24 <OutputToDelete Include="$(TESTDIR)\**\*.obj" />
25 <OutputToDelete Include="$(TESTDIR)\**\*.c" Exclude="$(TESTDIR)\pg_regress_ecpg.c;$(TESTDIR)\expected\*.c" />
26 </ItemGroup>
28 <Target Name="all" Inputs="@(Pgc)" Outputs="%(RelativeDir)%(Filename).exe">
29 <!-- Set special parameters for some tests -->
30 <CreateProperty Value="-C INFORMIX" Condition="'%(Pgc.RelativeDir)'=='$(TESTDIR)\compat_informix\'">
31 <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
32 </CreateProperty>
33 <CreateProperty Value="-C INFORMIX -r no_indicator" Condition="'%(Pgc.FileName)'=='rnull'">
34 <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
35 </CreateProperty>
36 <CreateProperty Value="-c" Condition="'%(Pgc.FileName)'=='array_of_struct'">
37 <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
38 </CreateProperty>
39 <CreateProperty Value="-r questionmarks" Condition="'%(Pgc.FileName)'=='oldexec'">
40 <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
41 </CreateProperty>
42 <CreateProperty Value="-r prepare" Condition="'%(Pgc.FileName)'=='autoprep'">
43 <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
44 </CreateProperty>
46 <!-- Run ECPG and the Visual C++ compiler on the files. Don't bother with dependency check between the steps -->
47 <Exec WorkingDirectory="%(Pgc.RelativeDir)" Command="$(OUTDIR)ecpg\ecpg -I ../../include --regression $(ECPGPARAM) -o %(Pgc.Filename).c %(Pgc.Filename).pgc" />
48 <Exec WorkingDirectorY="%(Pgc.RelativeDir)" Command="cl /nologo %(Pgc.FileName).c /TC /MD$(DEBUGLIB) /DENABLE_THREAD_SAFETY /DWIN32 /DWIN32_ONLY_COMPILER /I. /I..\..\include /I..\..\..\libpq /I..\..\..\..\include /link /defaultlib:$(OUTDIR)libecpg\libecpg.lib /defaultlib:$(OUTDIR)libecpg_compat\libecpg_compat.lib /defaultlib:$(OUTDIR)libpgtypes\libpgtypes.lib" />
49 </Target>
51 <!-- Clean up all output files -->
52 <Target Name="clean">
53 <Delete Files="@(OutputToDelete)" />
54 </Target>
55 </Project>