summaryrefslogtreecommitdiff
path: root/tests/shortrec.at
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-12-29 09:27:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-12-29 09:27:00 +0000
commit7b68ef3d918603f3afb03e939ba72f5cad10edf4 (patch)
tree393f64968b91421f76faca2ca2c4de1f660eedfc /tests/shortrec.at
parent970f999818a52a107a89697666c54397403c09be (diff)
downloadtar-7b68ef3d918603f3afb03e939ba72f5cad10edf4.tar.gz
Fix testsuite and bootstrap. Implement -I.
* bootstrap.conf: Include size_max. * gnulib.modules: Remove memset, rmdir. Replace strdup with strdup-posix. Patch by Eric Blake. * src/tar.c: Implement -I as a shorthand for --use-compress-program. * doc/tar.texi: Document -I. * tests/pipe.at, tests/shortrec.at: Account for eventual 'Record size' output. * tests/testsuite.at (AT_TAR_CHECK_HOOK): New define (AT_TAR_WITH_HOOK, TAR_IGNREC_HOOK): New macros.
Diffstat (limited to 'tests/shortrec.at')
-rw-r--r--tests/shortrec.at17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/shortrec.at b/tests/shortrec.at
index 3e009fd3..179f3656 100644
--- a/tests/shortrec.at
+++ b/tests/shortrec.at
@@ -1,7 +1,7 @@
# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Test suite for GNU tar.
-# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,17 +23,22 @@
# used to create the archive.
AT_SETUP([short records])
-AT_KEYWORDS([shortrec.at])
+AT_KEYWORDS([shortrec])
-AT_TAR_CHECK([
+AT_TAR_WITH_HOOK([TAR_IGNREC_HOOK],
+[AT_TAR_CHECK([
mkdir directory
(cd directory && touch a b c d e f g h i j k l m n o p q r)
-tar -c -b 1 -f - directory | tar -t -f - >/dev/null
+tar -c -b 1 -f - directory | tar -t -f -
tar -c -b 1 -f archive directory
-tar -t -f archive >/dev/null
-tar -t -f - < archive >/dev/null
+tar -t -f archive
+tar -t -f - < archive
rm -r directory
+],
+[0],
+[ignore],
+[stderr])
])
AT_CLEANUP