X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fpipe.at;h=964c9e98304984c257c25ccec31b934cd47d9431;hb=a09e840507c16357ec11b17a02e103c3a26adebc;hp=be992126288bb6ae8a9f2a8dc67b201719e4e96b;hpb=7b68ef3d918603f3afb03e939ba72f5cad10edf4;p=chaz%2Ftar diff --git a/tests/pipe.at b/tests/pipe.at index be99212..964c9e9 100644 --- a/tests/pipe.at +++ b/tests/pipe.at @@ -1,22 +1,22 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright 2004-2009, 2013 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# This file is part of GNU tar. + +# GNU tar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. -# This program is distributed in the hope that it will be useful, +# GNU tar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # Recognition of compressed formats, introduced with tar 1.15, broke # untarring of archives from standard input. @@ -30,16 +30,15 @@ AT_SETUP([decompressing from stdin]) AT_KEYWORDS([pipe]) -AT_TAR_WITH_HOOK([TAR_IGNREC_HOOK], -[AT_TAR_CHECK([ +AT_TAR_CHECK([ AT_SORT_PREREQ mkdir directory genfile --length 10240 --pattern zeros --file directory/file1 genfile --length 13 --file directory/file2 -tar cf archive directory|sort +tar cf archive directory mv directory orig -cat archive | tar xfv - | sort +cat archive | tar xfv - --warning=no-timestamp | sort echo "separator" cmp orig/file1 directory/file1 echo "separator" @@ -50,7 +49,6 @@ directory/file1 directory/file2 separator separator -], -[stderr])]) +]) AT_CLEANUP