X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fsparsemv.at;h=654908319b3f873a79b4984d4a9e214134ae4fda;hb=502abd93bd8bfba15677aceb221c4530d257bbab;hp=a17350a60a1504007b5a39624ccd6a47a4a5fbae;hpb=c81a5e8bf5f028859e24b2231c9751bbd6b6fdc4;p=chaz%2Ftar diff --git a/tests/sparsemv.at b/tests/sparsemv.at index a17350a..6549083 100644 --- a/tests/sparsemv.at +++ b/tests/sparsemv.at @@ -1,11 +1,11 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2005 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006, 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 -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. -AT_SETUP([Sparse files in MV archives]) +AT_SETUP([sparse files in MV archives]) AT_KEYWORDS([sparse multiv sparsemv]) # Check if sparse files are correctly split between GNU multi-volume @@ -30,23 +30,23 @@ AT_KEYWORDS([sparse multiv sparsemv]) AT_TAR_CHECK([ exec <&- -genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || AT_SKIP_TEST +genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || AT_SKIP_TEST echo "Pass 1: Split between data blocks" echo "Create archive" tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1 echo "Test archive" -tar -t -M -f arc.1 -f arc.2 +tar --record-size=512 -t -M -f arc.1 -f arc.2 echo "Compare archive" -tar -d -M -f arc.1 -f arc.2 +tar --record-size=512 -d -M -f arc.1 -f arc.2 echo "Pass 2: Split within a data block" -genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGH || AT_SKIP_TEST +genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || AT_SKIP_TEST echo "Create archive" tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1 echo "Test archive" -tar -t -M -f arc.1 -f arc.2 +tar --record-size=512 -t -M -f arc.1 -f arc.2 echo "Compare archive" -tar -d -M -f arc.1 -f arc.2 +tar --record-size=512 -d -M -f arc.1 -f arc.2 ], [0], [Pass 1: Split between data blocks