From 2d7588a88acc8c9447194caa7c315c5b6352f67b Mon Sep 17 00:00:00 2001 From: Gleb Balykov Date: Tue, 3 Mar 2020 22:38:48 +0300 Subject: [PATCH] Build CoreCLR tests as platform independent (AnyCPU) (#32916) * Build platform independent tests dlls * Fix tests exclusion conditions * Fix windows specific dirs --- src/coreclr/tests/dir.common.props | 2 +- src/coreclr/tests/dir.sdkbuild.props | 2 +- src/coreclr/tests/src/Directory.Build.props | 2 +- .../src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj | 2 +- src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj | 2 +- .../tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj | 2 +- .../tests/src/GC/Scenarios/ServerModel/servermodel.csproj | 2 +- .../CopyConstructorMarshaler/CopyConstructorMarshaler.csproj | 2 +- .../FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj | 2 +- .../IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj | 2 +- .../IJW/ManagedCallingNative/ManagedCallingNative.csproj | 2 +- .../IJW/NativeCallingManaged/NativeCallingManaged.csproj | 2 +- .../src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj | 4 ++-- src/coreclr/tests/src/Interop/Interop.settings.targets | 6 +++--- .../Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj | 2 +- .../tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj | 2 +- .../IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj | 4 ++-- .../tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj | 2 +- .../tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj | 2 +- .../tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj | 4 ++-- .../JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj | 10 +++++----- .../Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj | 2 +- .../tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj | 4 ++-- .../tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj | 4 ++-- src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj | 2 +- src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj | 2 +- .../coreroot_determinism/coreroot_determinism.csproj | 2 +- .../tests/src/readytorun/crossgen2/crossgen2smoke.csproj | 2 +- .../src/readytorun/determinism/crossgen2determinism.csproj | 2 +- src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj | 2 +- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/coreclr/tests/dir.common.props b/src/coreclr/tests/dir.common.props index 4382aa1..41c42a2 100644 --- a/src/coreclr/tests/dir.common.props +++ b/src/coreclr/tests/dir.common.props @@ -10,7 +10,7 @@ tests/dir.props directly - these should eventually go away. --> - $(BuildOS).$(Platform).$(Configuration) + $(BuildOS).$(BuildArch).$(Configuration) $(MSBuildThisFileDirectory)src $([MSBuild]::MakeRelative($(TestSrcDir), $(MSBuildProjectDirectory)))\$(MSBuildProjectName)\ diff --git a/src/coreclr/tests/dir.sdkbuild.props b/src/coreclr/tests/dir.sdkbuild.props index 5a6d532..7e0c081 100644 --- a/src/coreclr/tests/dir.sdkbuild.props +++ b/src/coreclr/tests/dir.sdkbuild.props @@ -9,7 +9,7 @@ $(NetCoreAppCurrent) false false - $(BuildArch) + AnyCPU false diff --git a/src/coreclr/tests/src/Directory.Build.props b/src/coreclr/tests/src/Directory.Build.props index 4d63321..00d5ce2 100644 --- a/src/coreclr/tests/src/Directory.Build.props +++ b/src/coreclr/tests/src/Directory.Build.props @@ -30,7 +30,7 @@ $(BaseOutputPathWithConfig) $(RootRepoDir)\artifacts\tests\coreclr\obj\$(OSPlatformConfig)\Managed\ $(__ManagedTestIntermediatesDir)\ - <__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\..\coreclr\obj\$(BuildOS).$(Platform).$(Configuration)\Native\)) + <__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\..\coreclr\obj\$(BuildOS).$(BuildArch).$(Configuration)\Native\)) $(MSBuildProjectName)\ $([System.String]::Copy('$(MSBuildProjectDirectory)').Replace($(TestSourceDir),''))\$(MSBuildProjectName) $(BaseIntermediateOutputPath)$(BuildProjectRelativeDir)\ diff --git a/src/coreclr/tests/src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj b/src/coreclr/tests/src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj index 7464113..e29d631 100644 --- a/src/coreclr/tests/src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj +++ b/src/coreclr/tests/src/GC/API/GC/GetAllocatedBytesForCurrentThread.csproj @@ -1,7 +1,7 @@ Exe - true + true diff --git a/src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj b/src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj index 57df5c4..b56eadc 100644 --- a/src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj +++ b/src/coreclr/tests/src/GC/API/GC/GetTotalAllocatedBytes.csproj @@ -1,7 +1,7 @@ Exe - true + true diff --git a/src/coreclr/tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj b/src/coreclr/tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj index e8f3e88..9230aa5 100644 --- a/src/coreclr/tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj +++ b/src/coreclr/tests/src/GC/Regressions/v2.0-rtm/494226/494226.csproj @@ -2,7 +2,7 @@ Exe true - true + true true diff --git a/src/coreclr/tests/src/GC/Scenarios/ServerModel/servermodel.csproj b/src/coreclr/tests/src/GC/Scenarios/ServerModel/servermodel.csproj index e1bec38..418639a 100644 --- a/src/coreclr/tests/src/GC/Scenarios/ServerModel/servermodel.csproj +++ b/src/coreclr/tests/src/GC/Scenarios/ServerModel/servermodel.csproj @@ -3,7 +3,7 @@ Exe /numrequests:100 true - true + true diff --git a/src/coreclr/tests/src/Interop/IJW/CopyConstructorMarshaler/CopyConstructorMarshaler.csproj b/src/coreclr/tests/src/Interop/IJW/CopyConstructorMarshaler/CopyConstructorMarshaler.csproj index c7a0eca..5a392a9 100644 --- a/src/coreclr/tests/src/Interop/IJW/CopyConstructorMarshaler/CopyConstructorMarshaler.csproj +++ b/src/coreclr/tests/src/Interop/IJW/CopyConstructorMarshaler/CopyConstructorMarshaler.csproj @@ -7,7 +7,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/Interop/IJW/FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj b/src/coreclr/tests/src/Interop/IJW/FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj index 3734d92..84e494d 100644 --- a/src/coreclr/tests/src/Interop/IJW/FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj +++ b/src/coreclr/tests/src/Interop/IJW/FixupCallsHostWhenLoaded/FixupCallsHostWhenLoaded.csproj @@ -7,7 +7,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/Interop/IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj b/src/coreclr/tests/src/Interop/IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj index 071b9ff..c57c638 100644 --- a/src/coreclr/tests/src/Interop/IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj +++ b/src/coreclr/tests/src/Interop/IJW/LoadIjwFromModuleHandle/LoadIjwFromModuleHandle.csproj @@ -9,7 +9,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/Interop/IJW/ManagedCallingNative/ManagedCallingNative.csproj b/src/coreclr/tests/src/Interop/IJW/ManagedCallingNative/ManagedCallingNative.csproj index a0b5921..033a266 100644 --- a/src/coreclr/tests/src/Interop/IJW/ManagedCallingNative/ManagedCallingNative.csproj +++ b/src/coreclr/tests/src/Interop/IJW/ManagedCallingNative/ManagedCallingNative.csproj @@ -7,7 +7,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/Interop/IJW/NativeCallingManaged/NativeCallingManaged.csproj b/src/coreclr/tests/src/Interop/IJW/NativeCallingManaged/NativeCallingManaged.csproj index fb0e9d8..eb21075 100644 --- a/src/coreclr/tests/src/Interop/IJW/NativeCallingManaged/NativeCallingManaged.csproj +++ b/src/coreclr/tests/src/Interop/IJW/NativeCallingManaged/NativeCallingManaged.csproj @@ -7,7 +7,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj b/src/coreclr/tests/src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj index 231e66e..1c0cd49 100644 --- a/src/coreclr/tests/src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj +++ b/src/coreclr/tests/src/Interop/IJW/NativeVarargs/NativeVarargsTest.csproj @@ -7,9 +7,9 @@ true true - true + true - true + true true diff --git a/src/coreclr/tests/src/Interop/Interop.settings.targets b/src/coreclr/tests/src/Interop/Interop.settings.targets index c26170b..a9d550e 100644 --- a/src/coreclr/tests/src/Interop/Interop.settings.targets +++ b/src/coreclr/tests/src/Interop/Interop.settings.targets @@ -22,8 +22,8 @@ - - - + + + diff --git a/src/coreclr/tests/src/Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj b/src/coreclr/tests/src/Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj index d94f3ce..5f17399 100644 --- a/src/coreclr/tests/src/Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj +++ b/src/coreclr/tests/src/Interop/WinRT/NETClients/Bindings/NETClientBindings.csproj @@ -4,7 +4,7 @@ true true - true + true true diff --git a/src/coreclr/tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj b/src/coreclr/tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj index 2f5a590..4ac8db8 100644 --- a/src/coreclr/tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj +++ b/src/coreclr/tests/src/JIT/Directed/VectorABI/VectorMgdMgd_ro.csproj @@ -6,7 +6,7 @@ True True - true + true diff --git a/src/coreclr/tests/src/JIT/IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj b/src/coreclr/tests/src/JIT/IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj index ab3b417..1f52caf 100644 --- a/src/coreclr/tests/src/JIT/IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj +++ b/src/coreclr/tests/src/JIT/IL_Conformance/Old/Conformance_Base/conv_ovf_i8_i.ilproj @@ -1,8 +1,8 @@ Exe - true - true + true + true PdbOnly diff --git a/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj b/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj index 5f87f87..758a3e4 100644 --- a/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj +++ b/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_d.csproj @@ -2,7 +2,7 @@ Exe - true + true true diff --git a/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj b/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj index 4d335ba..becd835 100644 --- a/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj +++ b/src/coreclr/tests/src/JIT/Methodical/fp/exgen/10w5d_cs_r.csproj @@ -2,7 +2,7 @@ Exe - true + true true diff --git a/src/coreclr/tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj b/src/coreclr/tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj index 2fd748f..b214151 100644 --- a/src/coreclr/tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj +++ b/src/coreclr/tests/src/JIT/Methodical/tailcall_v4/hijacking.ilproj @@ -2,8 +2,8 @@ Exe - true - true + true + true PdbOnly diff --git a/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj index c6f2f71..d5df312 100644 --- a/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj +++ b/src/coreclr/tests/src/JIT/Regression/JitBlue/DevDiv_278523/DevDiv_278523.ilproj @@ -8,11 +8,11 @@ True - 64 - 64 - 32 - 32 - 32 + 64 + 64 + 32 + 32 + 32 diff --git a/src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj b/src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj index c1a989f..3716edd 100644 --- a/src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj +++ b/src/coreclr/tests/src/JIT/Regression/VS-ia64-JIT/V2.0-Beta2/b311420/b311420.csproj @@ -2,7 +2,7 @@ Exe - true + true 1 diff --git a/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj b/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj index 7c2ebaf..49c7772 100644 --- a/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj +++ b/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_d.csproj @@ -2,8 +2,8 @@ Exe - true - true + true + true Full diff --git a/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj b/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj index 3ee4e79..2714565 100644 --- a/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj +++ b/src/coreclr/tests/src/JIT/jit64/opt/cg/cgstress/CgStress1_r.csproj @@ -2,8 +2,8 @@ Exe - true - true + true + true None diff --git a/src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj b/src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj index 542bac8..5fa5854 100644 --- a/src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj +++ b/src/coreclr/tests/src/JIT/jit64/opt/cse/hugeexpr1.csproj @@ -9,7 +9,7 @@ True - true + true diff --git a/src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj b/src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj index 4839b99..89af0a2 100644 --- a/src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj +++ b/src/coreclr/tests/src/JIT/superpmi/superpmicollect.csproj @@ -5,7 +5,7 @@ true - true + true Full diff --git a/src/coreclr/tests/src/readytorun/coreroot_determinism/coreroot_determinism.csproj b/src/coreclr/tests/src/readytorun/coreroot_determinism/coreroot_determinism.csproj index 3133e13..df39adf 100644 --- a/src/coreclr/tests/src/readytorun/coreroot_determinism/coreroot_determinism.csproj +++ b/src/coreclr/tests/src/readytorun/coreroot_determinism/coreroot_determinism.csproj @@ -4,7 +4,7 @@ BuildAndRun 0 - true + true true diff --git a/src/coreclr/tests/src/readytorun/crossgen2/crossgen2smoke.csproj b/src/coreclr/tests/src/readytorun/crossgen2/crossgen2smoke.csproj index 962adf7..0116d11 100644 --- a/src/coreclr/tests/src/readytorun/crossgen2/crossgen2smoke.csproj +++ b/src/coreclr/tests/src/readytorun/crossgen2/crossgen2smoke.csproj @@ -6,7 +6,7 @@ 0 - true + true .ildll diff --git a/src/coreclr/tests/src/readytorun/determinism/crossgen2determinism.csproj b/src/coreclr/tests/src/readytorun/determinism/crossgen2determinism.csproj index 5786047..c5c2f35 100644 --- a/src/coreclr/tests/src/readytorun/determinism/crossgen2determinism.csproj +++ b/src/coreclr/tests/src/readytorun/determinism/crossgen2determinism.csproj @@ -4,7 +4,7 @@ BuildAndRun 0 - true + true true diff --git a/src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj b/src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj index 97007a0..ca9f7b2 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj +++ b/src/coreclr/tests/src/readytorun/r2rdump/R2RDumpTest.csproj @@ -12,7 +12,7 @@ true - true + true -- 2.7.4