Package: libtar Version: 1.2.20-1 Severity: wishlist Tags: forwarded patch Hi. Here is a patch implementing a simple 'make check' target to make it easier to verify that libtar is working as it should after build.
I found it useful on Hurd trying to clean up the patch in <URL: http://bugs.debian.org/657116 >. CC to upstream, in case their mailing list accept my email. diff --git a/configure.ac b/configure.ac index 4623100..b6eaae1 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,6 @@ fi dnl ### Create output files. ####################################### -AC_CONFIG_FILES([Makefile lib/Makefile libtar/Makefile doc/Makefile]) +AC_CONFIG_FILES([Makefile lib/Makefile libtar/Makefile doc/Makefile testsuite/Makefile]) AC_OUTPUT diff --git a/doc/Makefile.in b/doc/Makefile.in index 0d82a48..2aa01f0 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -151,3 +151,4 @@ install: all echo ".so man3/@LISTHASH_PREFIX@_list_new.3" > ${DESTDIR}${mandir}/man3/$${i}.3; \ done +check: diff --git a/lib/Makefile.in b/lib/Makefile.in index 60acbe6..4cfca02 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -104,3 +104,4 @@ install: ${ALL} ${INSTALL_DATA} ${srcdir}/libtar.h ${DESTDIR}${includedir} ${INSTALL_DATA} ../listhash/libtar_listhash.h ${DESTDIR}${includedir} +check: diff --git a/libtar/Makefile.in b/libtar/Makefile.in index 7c6f1bc..6a29e5f 100644 --- a/libtar/Makefile.in +++ b/libtar/Makefile.in @@ -76,3 +76,4 @@ install: ${ALL} ${MKDIR} ${DESTDIR}${bindir} $(LIBTOOL) --mode=install ${INSTALL_PROGRAM} libtar ${DESTDIR}${bindir} +check: diff --git a/testsuite/Makefile.in b/testsuite/Makefile.in new file mode 100644 index 0000000..146c0e3 --- /dev/null +++ b/testsuite/Makefile.in @@ -0,0 +1,6 @@ +all: + +check: + ../libtar/libtar -c test.tar Makefile.in + ../libtar/libtar -t test.tar + $(RM) test.tar -- Happy hacking Petter Reinholdtsen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

