if [ ! -d IL-CG2 ]%3B then
mkdir IL-CG2
if [ ! -z ${CompositeBuildMode+x} ]%3B then
- cp $(MSBuildProjectName).dll IL-CG2/
+ cp $(AssemblyName).dll IL-CG2/
cp $CORE_ROOT/lib*.so $CORE_ROOT/lib*.dylib $(scriptPath)
else
cp *.dll IL-CG2/
fi
export COMPlus_ZapRequire=$(ZapRequire)
- export COMPlus_ZapRequireList=$(MSBuildProjectName)
+ export COMPlus_ZapRequireList=$(AssemblyName)
fi
]]>
</CrossgenBashScript>
)
set COMPlus_ZapRequire=$(ZapRequire)
- set COMPlus_ZapRequireList=$(MSBuildProjectName)
+ set COMPlus_ZapRequireList=$(AssemblyName)
)
]]>
</CrossgenBatchScript>
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!-- This is here because of this bug: https://docs.microsoft.com/en-us/archive/blogs/msbuild/well-known-limitation-dynamic-items-and-properties-not-emitted-until-target-execution-completes -->
- <Target Name="FetchExternalPropertiesForXplat">
- <!--Call GetExecuteShFullPath to get ToRunProject cmd file Path -->
- <MSBuild Projects="$(CLRTestProjectToRun)"
- Targets="GetExecuteShFullPath"
- Properties="GenerateRunScript=True"
- Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'">
- <Output TaskParameter="TargetOutputs" PropertyName="_CLRTestToRunFileFullPath"/>
- </MSBuild>
- </Target>
-
<!--
Target: GetExecuteShFullPath
Return Executed Sh Relative Full Path
Name="GetExecuteShFullPath"
Returns="$(ExecuteShFullPath)">
<PropertyGroup Condition="$(GenerateRunScript)">
- <ExecuteShFullPath>$(OutputPath)$(MSBuildProjectName).sh</ExecuteShFullPath>
+ <ExecuteShFullPath>$(OutputPath)$(AssemblyName).sh</ExecuteShFullPath>
</PropertyGroup>
<!-- In order to avoid the overhead of calling MSBuild (as it may result in chains of MSBuild calls) I am assuming the extension in this circumstance. -->
<PropertyGroup Condition="$(CLRTestProjectToRun) != '' AND $(GenerateRunScript)">
<ExecuteShFullPath>$(OutputPath)$([System.IO.Path]::GetFilenameWithoutExtension("$(CLRTestProjectToRun)")).dll</ExecuteShFullPath>
</PropertyGroup>
<PropertyGroup Condition="!$(GenerateRunScript)">
- <ExecuteShFullPath>$(OutputPath)$(MSBuildProjectName).$(OutputType.ToLower())</ExecuteShFullPath>
+ <ExecuteShFullPath>$(OutputPath)$(AssemblyName).$(OutputType.ToLower())</ExecuteShFullPath>
</PropertyGroup>
</Target>
-->
<Target Name="GenerateBashExecutionScript"
Inputs="$(MSBuildProjectFullPath)"
- Outputs="$(OutputPath)\$(MSBuildProjectName).sh"
- DependsOnTargets="FetchExternalPropertiesForXplat;$(BashScriptSnippetGen);GetIlasmRoundTripBashScript">
+ Outputs="$(OutputPath)\$(AssemblyName).sh"
+ DependsOnTargets="$(BashScriptSnippetGen);GetIlasmRoundTripBashScript">
<Message Text="Project depends on $(_CLRTestToRunFileFullPath)." Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'" />
</PropertyGroup>
<ItemGroup Condition="$(_CLRTestNeedsToRun)">
- <Clean Include="$(OutputPath)\$(MSBuildProjectName).sh"/>
+ <Clean Include="$(OutputPath)\$(AssemblyName).sh"/>
<BashCLRTestExecutionScriptArgument Include="debug">
<HasParam>true</HasParam>
</ItemGroup>
<PropertyGroup>
- <ReflectionRootsXml>$(MSBuildProjectName).reflect.xml</ReflectionRootsXml>
+ <ReflectionRootsXml>$(AssemblyName).reflect.xml</ReflectionRootsXml>
<BashLinkerTestLaunchCmds>
<![CDATA[
# Linker commands
</PropertyGroup>
<PropertyGroup>
- <ExecutionBashScriptPath>$(OutputPath)/$(MSBuildProjectName).sh</ExecutionBashScriptPath>
+ <ExecutionBashScriptPath>$(OutputPath)/$(AssemblyName).sh</ExecutionBashScriptPath>
</PropertyGroup>
<!-- Write the file.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!-- This is here because of this bug: https://docs.microsoft.com/en-us/archive/blogs/msbuild/well-known-limitation-dynamic-items-and-properties-not-emitted-until-target-execution-completes -->
- <Target Name="FetchExternalProperties">
- <!--Call GetExecuteCmdFullPath to get ToRunProject cmd file Path -->
- <MSBuild Projects="$(CLRTestProjectToRun)"
- Targets="GetExecuteCmdFullPath"
- Properties="GenerateRunScript=True"
- Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'">
- <Output TaskParameter="TargetOutputs" PropertyName="_CLRTestToRunFileFullPath"/>
- </MSBuild>
- </Target>
-
<!--
Target: GetExecuteCmdFullPath
Return Executed Cmd Relative Full Path
Name="GetExecuteCmdFullPath"
Returns="$(ExecuteCmdFullPath)">
<PropertyGroup Condition="$(GenerateRunScript)">
- <ExecuteCmdFullPath>$(OutputPath)$(MSBuildProjectName).cmd</ExecuteCmdFullPath>
+ <ExecuteCmdFullPath>$(OutputPath)$(AssemblyName).cmd</ExecuteCmdFullPath>
</PropertyGroup>
<!-- In order to avoid the overhead of calling MSBuild (as it may result in chains of MSBuild calls) I am assuming the extension in this circumstance. -->
<PropertyGroup Condition="$(CLRTestProjectToRun) != '' AND $(GenerateRunScript)">
<ExecuteCmdFullPath>$(OutputPath)$([System.IO.Path]::GetFilenameWithoutExtension("$(CLRTestProjectToRun)")).dll</ExecuteCmdFullPath>
</PropertyGroup>
<PropertyGroup Condition="!$(GenerateRunScript)">
- <ExecuteCmdFullPath>$(OutputPath)$(MSBuildProjectName).$(OutputType.ToLower())</ExecuteCmdFullPath>
+ <ExecuteCmdFullPath>$(OutputPath)$(AssemblyName).$(OutputType.ToLower())</ExecuteCmdFullPath>
</PropertyGroup>
</Target>
-->
<Target Name="GenerateBatchExecutionScript"
Inputs="$(MSBuildProjectFullPath)"
- Outputs="$(OutputPath)\$(MSBuildProjectName).cmd"
- DependsOnTargets="FetchExternalProperties;$(BatchScriptSnippetGen);GetIlasmRoundTripBatchScript">
+ Outputs="$(OutputPath)\$(AssemblyName).cmd"
+ DependsOnTargets="$(BatchScriptSnippetGen);GetIlasmRoundTripBatchScript">
<Message Text="Project depends on $(_CLRTestToRunFileFullPath)." Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'" />
</PropertyGroup>
<ItemGroup Condition="$(_CLRTestNeedsToRun)">
- <Clean Include="$(OutputPath)\$(MSBuildProjectName).cmd"/>
+ <Clean Include="$(OutputPath)\$(AssemblyName).cmd"/>
<BatchCLRTestExecutionScriptArgument Include="debug">
<HasParam>true</HasParam>
</ItemGroup>
<PropertyGroup>
- <ReflectionRootsXml>$(MSBuildProjectName).reflect.xml</ReflectionRootsXml>
+ <ReflectionRootsXml>$(AssemblyName).reflect.xml</ReflectionRootsXml>
<BatchLinkerTestLaunchCmds><![CDATA[
REM Linker commands
</PropertyGroup>
<!-- Write the file -->
<WriteLinesToFile
- File="$(OutputPath)\$(MSBuildProjectName).cmd"
+ File="$(OutputPath)\$(AssemblyName).cmd"
Lines="$(_CLRTestExecutionScriptText)"
Overwrite="true" />
</Target>
<PropertyGroup>
<BashScriptSnippetGen></BashScriptSnippetGen>
<BatchScriptSnippetGen></BatchScriptSnippetGen>
+ <GetExecuteScriptTarget>GetExecuteShFullPath</GetExecuteScriptTarget>
+ <GetExecuteScriptTarget Condition="'$(TestWrapperTargetsWindows)' == 'true'">GetExecuteCmdFullPath</GetExecuteScriptTarget>
</PropertyGroup>
<Import Project="CLRTest.Jit.targets" />
<Import Project="CLRTest.Execute.*.targets" />
<Import Project="CLRTest.MockHosting.targets" Condition="'$(RequiresMockHostPolicy)' == 'true'" />
+ <Target Name="FetchExternalProperties">
+ <!--Call GetExecuteShFullPath to get ToRunProject cmd file Path -->
+ <MSBuild Projects="$(CLRTestProjectToRun)"
+ Targets="$(GetExecuteScriptTarget)"
+ Properties="GenerateRunScript=True"
+ Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'">
+ <Output TaskParameter="TargetOutputs" PropertyName="_CLRTestToRunFileFullPath"/>
+ </MSBuild>
+
+ <PropertyGroup>
+ <InputAssemblyName Condition="'$(CLRTestKind)' == 'RunOnly'">$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)))</InputAssemblyName>
+ <InputAssemblyName Condition="'$(CLRTestKind)' == 'BuildAndRun'">$(AssemblyName).dll</InputAssemblyName>
+ </PropertyGroup>
+ </Target>
+
<Target Name="GenerateExecutionScriptsInternal"
Condition="$(_CLRTestNeedsToRun) or $(_CLRTestBuildsExecutable)"
- DependsOnTargets="Generate@(ExecutionScriptKind, 'ExecutionScript;Generate')ExecutionScript;" />
+ DependsOnTargets="FetchExternalProperties;Generate@(ExecutionScriptKind, 'ExecutionScript;Generate')ExecutionScript;" />
</Project>
<Target Name="GetIlasmRoundTripBashScript"
Returns="$(IlasmRoundTripBashScript);$(BashIlrtTestLaunchCmds)">
<PropertyGroup>
- <InputAssemblyName Condition="'$(CLRTestKind)' == 'RunOnly'">$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)).Replace("\","/"))</InputAssemblyName>
- <InputAssemblyName Condition="'$(CLRTestKind)' == 'BuildAndRun'">$(MSBuildProjectName).dll</InputAssemblyName>
- <DisassemblyName>$(MSBuildProjectName).dasm.il</DisassemblyName>
- <TargetAssemblyName>$(MSBuildProjectName).asm.dll</TargetAssemblyName>
+ <DisassemblyName>$(AssemblyName).dasm.il</DisassemblyName>
+ <TargetAssemblyName>$(AssemblyName).asm.dll</TargetAssemblyName>
<IlasmRoundTripBashScript Condition="'$(CLRTestKind)' == 'RunOnly'"><![CDATA[
# IlasmRoundTrip Script
<Target Name="GetIlasmRoundTripBatchScript"
Returns="$(IlasmRoundTripBatchScript);$(BatchIlrtTestLaunchCmds)">
<PropertyGroup>
- <InputAssemblyName Condition="'$(CLRTestKind)' == 'RunOnly'">$([MSBuild]::MakeRelative($(OutputPath), $(_CLRTestToRunFileFullPath)))</InputAssemblyName>
- <InputAssemblyName Condition="'$(CLRTestKind)' == 'BuildAndRun'">$(MSBuildProjectName).dll</InputAssemblyName>
- <DisassemblyName>$(MSBuildProjectName).dasm.il</DisassemblyName>
- <TargetAssemblyName>$(MSBuildProjectName).asm.dll</TargetAssemblyName>
+ <DisassemblyName>$(AssemblyName).dasm.il</DisassemblyName>
+ <TargetAssemblyName>$(AssemblyName).asm.dll</TargetAssemblyName>
<IlasmRoundTripBatchScript Condition="'$(CLRTestKind)' == 'RunOnly'"><![CDATA[
REM IlasmRoundTrip Script