%{!?dotnet_buildtype: %define dotnet_buildtype Release}
%{!?skiptests: %define skiptests 1}
+%{!?skipfxtests: %define skipfxtests 1}
%define dotnet_buildtype_clr %{dotnet_buildtype}
%define dotnet_buildtype_fx %{dotnet_buildtype}
%ifarch %{arm} aarch64 %{ix86} x86_64
%else
%define skiptests 1
+%define skipfxtests 1
%endif
%define pgo_instrument 0
%description -n corefx-managed-ref
The managed part (.dll) of dotnet core foundational class libraries for developer
-%ifarch x86_64
+%if 0%{skipfxtests}
+%else
%package -n corefx-test
Summary: Dotnet Libraries Unit Test
Requires: corefx-native
Requires: corefx-managed
-BuildArch: noarch
AutoReqProv: no
%description -n corefx-test
%ifarch x86_64
-# Even though build architectur is x86_64, it will be running on arm board.
-# So we need to pass the arch argument as arm.
-%define _barch %{?cross:%{cross}}%{!?cross:x64}
+%define _barch x64
%endif
%ifarch aarch64
./build.sh %{_build_args} --subset clr.tools /p:UseSharedCompilation=false
%endif
-%ifarch x86_64
-# Build CoreFX managed tests, which are reused for all arches
+%if 0%{skipfxtests}
+%else
+# Build CoreFX managed tests, which are arch specific
./build.sh %{_build_args} --subset libs.pretest+libs.tests --testscope all /p:DisableImplicitFSharpCoreReference=true /p:UseSharedCompilation=false
%endif
%endif
cp %{_reldir_fx_managed}/*.pdb %{buildroot}%{_datadir}/%{netcoreappdir}
# Copy files for test rpm
-%ifarch x86_64
+%if 0%{skipfxtests}
+%else
mkdir artifacts/corefx_tests
mkdir artifacts/corefx_tests/tests
%{_datadir}/%{netcoreappdir}/*.pdb
%exclude %{_datadir}/%{netcoreappdir}/System.Private.CoreLib.pdb
-%ifarch x86_64
+%if 0%{skipfxtests}
+%else
%files -n corefx-test
%manifest %{name}.manifest
%{fxtestdir}/tests