Accepting request 213314 from home:llipavsky:branches:Base:System
add tests subpackage. * It is the same testsuite that is run during make check. * It is now possible to run it in real system to verify that nothing is broken by incompatible libraries, etc. This change allows QA to run the testsuite. OBS-URL: https://build.opensuse.org/request/show/213314 OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=50
This commit is contained in:
parent
4dd080afd0
commit
adc784ced5
40
add_readme-tests.patch
Normal file
40
add_readme-tests.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
Index: tar-1.27.1/README-tests
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
|
+++ tar-1.27.1/README-tests
|
||||||
|
@@ -0,0 +1,22 @@
|
||||||
|
+Subpackage tar-tests
|
||||||
|
+====================
|
||||||
|
+
|
||||||
|
+The tar-tests package contains the testsuite which is included in tar sources.
|
||||||
|
+The testsuite is normally run during make phase (make check) and is also
|
||||||
|
+automatically run when the tar rpm is being build (in %check section of spec
|
||||||
|
+file).
|
||||||
|
+
|
||||||
|
+Normally, there is no reason to need the tar-tests package. It can however be
|
||||||
|
+used to verify, that tar functions properly in an installed system (e.g. to
|
||||||
|
+find issues in tar's dependencies, problems with incompatible libraries, etc.).
|
||||||
|
+
|
||||||
|
+Testsuite is installed into /var/lib/tests/tar
|
||||||
|
+
|
||||||
|
+To run the testsuite:
|
||||||
|
+
|
||||||
|
+cd /var/lib/tests/tar
|
||||||
|
+./testsuite --help # show options
|
||||||
|
+
|
||||||
|
+# needed for genfile binary used in tests
|
||||||
|
+./testsuite AUTOTEST_PATH=/var/lib/tests/tar/bin [other options]
|
||||||
|
+
|
||||||
|
Index: tar-1.27.1/Makefile.in
|
||||||
|
===================================================================
|
||||||
|
--- tar-1.27.1.orig/Makefile.in
|
||||||
|
+++ tar-1.27.1/Makefile.in
|
||||||
|
@@ -141,7 +141,7 @@ PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
|
-DIST_COMMON = $(srcdir)/Make.rules INSTALL NEWS README AUTHORS \
|
||||||
|
+DIST_COMMON = $(srcdir)/Make.rules INSTALL NEWS README README-tests AUTHORS \
|
||||||
|
ChangeLog THANKS $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||||
|
$(top_srcdir)/configure $(am__configure_deps) \
|
||||||
|
$(srcdir)/config.h.in ABOUT-NLS README-alpha COPYING TODO \
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 7 11:09:24 CET 2014 - llipavsky@suse.com
|
||||||
|
|
||||||
|
- add tests subpackage.
|
||||||
|
* It is the same testsuite that is run during make check.
|
||||||
|
* It is now possible to run it in real system to verify that
|
||||||
|
nothing is broken by incompatible libraries, etc.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 19 22:16:18 UTC 2013 - andreas.stieger@gmx.de
|
Tue Nov 19 22:16:18 UTC 2013 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
26
tar.spec
26
tar.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package tar
|
# spec file for package tar
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -35,6 +35,7 @@ Patch3: tar-wildcards.patch
|
|||||||
Patch6: tar-backup-spec-fix-paths.patch
|
Patch6: tar-backup-spec-fix-paths.patch
|
||||||
Patch7: tar-1.26-remove_O_NONBLOCK.patch
|
Patch7: tar-1.26-remove_O_NONBLOCK.patch
|
||||||
Patch10: paxutils-rtapelib_mtget.patch
|
Patch10: paxutils-rtapelib_mtget.patch
|
||||||
|
Patch20: add_readme-tests.patch
|
||||||
%if 0%{?suse_version} >= %min_suse_ver
|
%if 0%{?suse_version} >= %min_suse_ver
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
Recommends: tar-lang = %{version}
|
Recommends: tar-lang = %{version}
|
||||||
@ -61,6 +62,14 @@ Requires: %{name} = %{version}
|
|||||||
%description backup-scripts
|
%description backup-scripts
|
||||||
Shell scripts for system backup/restore
|
Shell scripts for system backup/restore
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for the package
|
||||||
|
Group: Development/Tests
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
Upstream testsuite for the package
|
||||||
|
|
||||||
%{?lang_package}
|
%{?lang_package}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -69,6 +78,7 @@ Shell scripts for system backup/restore
|
|||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
|
%patch20 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
||||||
@ -80,6 +90,11 @@ export DEFAULT_ARCHIVE_FORMAT="POSIX"
|
|||||||
--enable-backup-scripts \
|
--enable-backup-scripts \
|
||||||
--disable-silent-rules
|
--disable-silent-rules
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags};
|
||||||
|
cd tests
|
||||||
|
make genfile
|
||||||
|
mkdir bin
|
||||||
|
mv genfile bin
|
||||||
|
cd -
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if !0%{?qemu_user_space_build:1}
|
%if !0%{?qemu_user_space_build:1}
|
||||||
@ -99,6 +114,11 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/backup
|
|||||||
install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
|
install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
|
||||||
rm -rf %{buildroot}%{_libexecdir}/rmt
|
rm -rf %{buildroot}%{_libexecdir}/rmt
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
|
install -d -m 755 %{buildroot}/var/lib/tests
|
||||||
|
cp -r tests %{buildroot}/var/lib/tests/tar
|
||||||
|
rm %{buildroot}/var/lib/tests/tar/*.{c,h,o}
|
||||||
|
rm %{buildroot}/var/lib/tests/tar/package.m4
|
||||||
|
rm %{buildroot}/var/lib/tests/tar/{atconfig,atlocal,Makefile}*
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%files backup-scripts
|
%files backup-scripts
|
||||||
@ -114,6 +134,10 @@ rm -f %{buildroot}%{_infodir}/dir
|
|||||||
|
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%defattr(-,root, root)
|
||||||
|
/var/lib/tests
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%else
|
%else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user