[Tizen] Add support for gbs build for i586, x86_64, armv7l, armv7hl, aarch64 (includi...
[platform/upstream/dotnet/runtime.git] / src / tests / readytorun / tests / mainv1.csproj
1 <Project Sdk="Microsoft.NET.Sdk">
2   <PropertyGroup>
3     <OutputType>exe</OutputType>
4     <CLRTestKind>BuildAndRun</CLRTestKind>
5     <CrossGenTest>false</CrossGenTest>
6   </PropertyGroup>
7   <ItemGroup>
8     <ProjectReference Include="fieldgetter.ilproj" />
9     <ProjectReference Include="testv1\test.csproj">
10       <Project>{F74F55A1-DFCF-4C7C-B462-E96E1D0BB667}</Project>
11     </ProjectReference>
12     <ProjectReference Include="CMakeLists.txt" />
13   </ItemGroup>
14   <ItemGroup>
15     <Compile Include="main.cs" />
16   </ItemGroup>
17   <PropertyGroup>
18     <CLRTestBatchPreCommands><![CDATA[
19 $(CLRTestBatchPreCommands)
20
21 REM Suppress some COMPlus variables for the duration of Crossgen2 execution
22 setlocal
23 set "COMPlus_GCName="
24 set "COMPlus_GCStress="
25 set "COMPlus_HeapVerify="
26 set "COMPlus_ReadyToRun="
27
28 DEL test.dll
29 if exist test.dll (
30     echo FAILED to delete test.dll
31     exit /b 1
32 )
33 COPY /Y ..\testv1\test\test.dll test.dll
34 if not exist test.dll (
35     echo FAILED to copy test.dll
36     exit /b 1
37 )
38
39 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:test.ni.dll test.dll
40
41 set CrossGenStatus=!ERRORLEVEL!
42 IF NOT !CrossGenStatus!==0 (
43     ECHO Crossgen failed with exitcode - !CrossGenStatus!
44     Exit /b 1
45 )
46 if not exist test.ni.dll (
47     echo FAILED to build test.ni.dll
48     exit /b 1
49 )
50
51 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:fieldgetter.ni.dll fieldgetter.dll 
52
53 set CrossGenStatus=!ERRORLEVEL!
54 IF NOT !CrossGenStatus!==0 (
55     ECHO Crossgen failed with exitcode - !CrossGenStatus!
56     Exit /b 1
57 )
58 if not exist fieldgetter.ni.dll (
59     echo FAILED to build fieldgetter.ni.dll
60     exit /b 1
61 )
62
63 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll -r:%Core_Root%\*.dll -r:%25CD% -o:mainv1.ni.dll mainv1.dll
64
65 set CrossGenStatus=!ERRORLEVEL!
66 IF NOT !CrossGenStatus!==0 (
67     ECHO Crossgen failed with exitcode - !CrossGenStatus!
68     Exit /b 1
69 )
70 if not exist mainv1.ni.dll (
71     echo FAILED to build mainv1.ni.dll
72     exit /b 1
73 )
74
75 endlocal
76 ]]></CLRTestBatchPreCommands>
77     <BashCLRTestPreCommands><![CDATA[
78 $(BashCLRTestPreCommands)
79
80 # Suppress some COMPlus variables for the duration of Crossgen2 execution
81 export -n COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
82
83 rm -f test.dll
84 if [ -f test.dll ]
85 then
86   echo Failed to delete test.dll
87   exit 1
88 fi
89 cp ../testv1/test/test.dll test.dll
90 if [ ! -f test.dll ]
91 then
92   echo Failed to copy test.dll
93   exit 1
94 fi
95 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:test.ni.dll test.dll
96
97 __cgExitCode=$?
98 if [ $__cgExitCode -ne 0 ]
99 then
100   echo Crossgen failed with exitcode: $__cgExitCode
101   exit 1
102 fi
103 if [ ! -f test.ni.dll ]
104 then
105   echo Failed to build test.ni.dll
106   exit 1
107 fi
108
109 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:fieldgetter.ni.dll fieldgetter.dll
110
111 __cgExitCode=$?
112 if [ $__cgExitCode -ne 0 ]
113 then
114   echo Crossgen failed with exitcode: $__cgExitCode
115   exit 1
116 fi
117 if [ ! -f fieldgetter.ni.dll ]
118 then
119   echo Failed to build fieldgetter.ni.dll
120   exit 1
121 fi
122
123 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options -r:$CORE_ROOT/*.dll -r:`pwd` -o:mainv1.ni.dll mainv1.dll
124
125 __cgExitCode=$?
126 if [ $__cgExitCode -ne 0 ]
127 then
128   echo Crossgen failed with exitcode: $__cgExitCode
129   exit 1
130 fi
131 if [ ! -f mainv1.ni.dll ]
132 then
133   echo Failed to build mainv1.ni.dll
134   exit 1
135 fi
136
137 export COMPlus_GCName COMPlus_GCStress COMPlus_HeapVerify COMPlus_ReadyToRun
138 ]]></BashCLRTestPreCommands>
139   </PropertyGroup>
140 </Project>