From: Dmitry V. Levin Date: Sun, 27 Feb 2011 10:16:41 +0000 (+0000) Subject: Use "make check" in debian/rules and strace.spec X-Git-Tag: v4.6~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=983e875c1c150ef73c39c27de80c430c7f2a46ea;p=strace Use "make check" in debian/rules and strace.spec * debian/control: Update Build-Depends. * debian/rules: Run "make check". * strace.spec: Update BuildRequires. Run "make check" in %check section. --- diff --git a/debian/control b/debian/control index b22b1a3d..d458b527 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: strace Maintainer: Frederik Schüler Section: utils Priority: optional -Build-Depends: libc6-dev (>= 2.2.2) [!alpha !ia64], libc6.1-dev (>= 2.2.2) [alpha ia64], gcc-multilib [i386 powerpc s390 sparc], debhelper (>= 7.0.0) +Build-Depends: libc6-dev (>= 2.2.2) [!alpha !ia64], libc6.1-dev (>= 2.2.2) [alpha ia64], gcc-multilib [i386 powerpc s390 sparc], debhelper (>= 7.0.0), coreutils (>= 7.0), time Standards-Version: 3.8.4 Homepage: http://sourceforge.net/projects/strace/ diff --git a/debian/rules b/debian/rules index 8e66ae9b..b997182f 100755 --- a/debian/rules +++ b/debian/rules @@ -37,6 +37,9 @@ all build: build-stamp $(extra_build_targets) %-stamp: %/Makefile $(MAKE) -C $* +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + $(MAKE) -C $* check +endif touch $@ build/Makefile: diff --git a/strace.spec b/strace.spec index 9059d974..e046c625 100644 --- a/strace.spec +++ b/strace.spec @@ -8,7 +8,7 @@ URL: http://sourceforge.net/projects/strace/ Source0: http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: libaio-devel, libacl-devel +BuildRequires: libacl-devel, libaio-devel, time %define strace64_arches ppc64 sparc64 @@ -66,6 +66,9 @@ rm -f %{buildroot}%{_bindir}/strace-graph %{copy64} %{buildroot}%{_bindir}/strace %{buildroot}%{_bindir}/strace64 %endif +%check +make check + %clean rm -rf %{buildroot}