1 <Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
3 <OutputType>exe</OutputType>
4 <CLRTestKind>BuildAndRun</CLRTestKind>
5 <CLRTestPriority>0</CLRTestPriority>
6 <CLRTestTargetUnsupported Condition="'$(RuntimeFlavor)' != 'coreclr'">true</CLRTestTargetUnsupported>
7 <!-- Running Crossgen2 under GCStress takes too long -->
8 <GCStressIncompatible>true</GCStressIncompatible>
9 <!-- This is an explicit crossgen test -->
10 <CrossGenTest>false</CrossGenTest>
11 <OldToolsVersion>2.0</OldToolsVersion>
14 <Compile Include="Program.cs" />
17 <CLRTestBatchPreCommands><![CDATA[
18 $(CLRTestBatchPreCommands)
19 set CoreRT_DeterminismSeed=1
20 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll --map -r:%Core_Root%\*.dll -r:..\..\crossgen2\crossgen2smoke\helperdll.dll -r:..\..\crossgen2\crossgen2smoke\helperildll.dll -o:crossgen2smoke1.ildll ..\..\crossgen2\crossgen2smoke\crossgen2smoke.dll
21 set CoreRT_DeterminismSeed=2
22 %Core_Root%\CoreRun.exe %Core_Root%\crossgen2\crossgen2.dll --map -r:%Core_Root%\*.dll -r:..\..\crossgen2\crossgen2smoke\helperdll.dll -r:..\..\crossgen2\crossgen2smoke\helperildll.dll -o:crossgen2smoke2.ildll ..\..\crossgen2\crossgen2smoke\crossgen2smoke.dll
23 ]]></CLRTestBatchPreCommands>
24 <BashCLRTestPreCommands><![CDATA[
25 $(BashCLRTestPreCommands)
26 export CoreRT_DeterminismSeed=1
27 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options --map -r:$CORE_ROOT/*.dll -r:../../crossgen2/crossgen2smoke/helperdll.dll -r:../../crossgen2/crossgen2smoke/helperildll.dll -o:crossgen2smoke1.ildll ../../crossgen2/crossgen2smoke/crossgen2smoke.dll
28 export CoreRT_DeterminismSeed=2
29 $CORE_ROOT/corerun $CORE_ROOT/crossgen2/crossgen2.dll $CrossGen2Options --map -r:$CORE_ROOT/*.dll -r:../../crossgen2/crossgen2smoke/helperdll.dll -r:../../crossgen2/crossgen2smoke/helperildll.dll -o:crossgen2smoke2.ildll ../../crossgen2/crossgen2smoke/crossgen2smoke.dll
30 ]]></BashCLRTestPreCommands>