diff options
author | Andrey Drobyshev <a.drobyshev@partner.samsung.com> | 2018-10-01 16:35:47 +0300 |
---|---|---|
committer | Slava Barinov <v.barinov@samsung.com> | 2019-12-16 15:28:16 +0300 |
commit | 396956101b833543113465d58fda4eea4161bf94 (patch) | |
tree | 50d48453093d8787535ad2f74c031f60b8dd2186 | |
parent | 28c2b21546054b7a5f0efedadc88db723fe30d5a (diff) | |
download | binutils-396956101b833543113465d58fda4eea4161bf94.tar.gz binutils-396956101b833543113465d58fda4eea4161bf94.tar.bz2 binutils-396956101b833543113465d58fda4eea4161bf94.zip |
packaging: fix testsuite build.
* Add list of dependent packages needed to build & run tests along with
corresponding macro run_tests;
* Add %check section.
Signed-off-by: Andrey Drobyshev <a.drobyshev@partner.samsung.com>
Change-Id: I2cc277d6855247747025a4d3b744a5c7804f4fca
-rw-r--r-- | packaging/binutils-aarch64.spec | 14 | ||||
-rw-r--r-- | packaging/binutils-armv7hl.spec | 14 | ||||
-rw-r--r-- | packaging/binutils-armv7l.spec | 14 | ||||
-rw-r--r-- | packaging/binutils.spec | 14 |
4 files changed, 56 insertions, 0 deletions
diff --git a/packaging/binutils-aarch64.spec b/packaging/binutils-aarch64.spec index 059ddf404d2..4c3e55f33a4 100644 --- a/packaging/binutils-aarch64.spec +++ b/packaging/binutils-aarch64.spec @@ -26,6 +26,10 @@ %define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi} +%if 0%{?run_tests} +%define binutils_run_tests 1 +%endif + Name: binutils%{?cross:-%{cross}} BuildRequires: makeinfo BuildRequires: bison @@ -33,6 +37,11 @@ BuildRequires: flex BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: gcc-c++ +%if 0%{?binutils_run_tests} +BuildRequires: dejagnu +BuildRequires: gdb +BuildRequires: glibc-devel-static +%endif Version: 2.27 Release: 0 Url: http://www.gnu.org/software/binutils/ @@ -109,6 +118,11 @@ cd build-dir make %{?_smp_mflags} +%check +%{?binutils_run_tests: + make %{?_smp_mflags} -C build-dir check -k +} + %install cd build-dir make DESTDIR=$RPM_BUILD_ROOT install diff --git a/packaging/binutils-armv7hl.spec b/packaging/binutils-armv7hl.spec index 4bbe3aa7fc5..c1b09e30a3a 100644 --- a/packaging/binutils-armv7hl.spec +++ b/packaging/binutils-armv7hl.spec @@ -26,6 +26,10 @@ %define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi} +%if 0%{?run_tests} +%define binutils_run_tests 1 +%endif + Name: binutils%{?cross:-%{cross}} BuildRequires: makeinfo BuildRequires: bison @@ -33,6 +37,11 @@ BuildRequires: flex BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: gcc-c++ +%if 0%{?binutils_run_tests} +BuildRequires: dejagnu +BuildRequires: gdb +BuildRequires: glibc-devel-static +%endif Version: 2.27 Release: 0 Url: http://www.gnu.org/software/binutils/ @@ -109,6 +118,11 @@ cd build-dir make %{?_smp_mflags} +%check +%{?binutils_run_tests: + make %{?_smp_mflags} -C build-dir check -k +} + %install cd build-dir make DESTDIR=$RPM_BUILD_ROOT install diff --git a/packaging/binutils-armv7l.spec b/packaging/binutils-armv7l.spec index f7d99d5e44f..422c4536229 100644 --- a/packaging/binutils-armv7l.spec +++ b/packaging/binutils-armv7l.spec @@ -26,6 +26,10 @@ %define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi} +%if 0%{?run_tests} +%define binutils_run_tests 1 +%endif + Name: binutils%{?cross:-%{cross}} BuildRequires: makeinfo BuildRequires: bison @@ -33,6 +37,11 @@ BuildRequires: flex BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: gcc-c++ +%if 0%{?binutils_run_tests} +BuildRequires: dejagnu +BuildRequires: gdb +BuildRequires: glibc-devel-static +%endif Version: 2.27 Release: 0 Url: http://www.gnu.org/software/binutils/ @@ -109,6 +118,11 @@ cd build-dir make %{?_smp_mflags} +%check +%{?binutils_run_tests: + make %{?_smp_mflags} -C build-dir check -k +} + %install cd build-dir make DESTDIR=$RPM_BUILD_ROOT install diff --git a/packaging/binutils.spec b/packaging/binutils.spec index 96c4d559020..7f2479d63cd 100644 --- a/packaging/binutils.spec +++ b/packaging/binutils.spec @@ -23,6 +23,10 @@ %define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi} +%if 0%{?run_tests} +%define binutils_run_tests 1 +%endif + Name: binutils%{?cross:-%{cross}} BuildRequires: makeinfo BuildRequires: bison @@ -30,6 +34,11 @@ BuildRequires: flex BuildRequires: ncurses-devel BuildRequires: zlib-devel BuildRequires: gcc-c++ +%if 0%{?binutils_run_tests} +BuildRequires: dejagnu +BuildRequires: gdb +BuildRequires: glibc-devel-static +%endif Version: 2.27 Release: 0 Url: http://www.gnu.org/software/binutils/ @@ -106,6 +115,11 @@ cd build-dir make %{?_smp_mflags} +%check +%{?binutils_run_tests: + make %{?_smp_mflags} -C build-dir check -k +} + %install cd build-dir make DESTDIR=$RPM_BUILD_ROOT install |