SHA256
1
0
forked from pool/tar
tar/add_readme-tests.patch
Vítězslav Čížek adc784ced5 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
2014-01-09 15:04:50 +00:00

41 lines
1.5 KiB
Diff

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 \