From c576ac13546720469c0e2fa2b545f58131f932bc Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 2 May 2006 19:16:12 +0000 Subject: [PATCH] Always use genfile --file, this enables extra error checking. --- tests/comprec.at | 6 +++--- tests/delete01.at | 6 +++--- tests/delete02.at | 4 ++-- tests/delete04.at | 22 +++++++++++----------- tests/delete05.at | 6 +++--- tests/extrac05.at | 10 +++++----- tests/listed01.at | 6 +++--- tests/multiv01.at | 4 ++-- tests/multiv02.at | 10 +++++----- tests/pipe.at | 6 +++--- tests/same-order01.at | 6 +++--- tests/same-order02.at | 6 +++--- tests/sparse01.at | 4 ++-- tests/sparse03.at | 4 ++-- 14 files changed, 50 insertions(+), 50 deletions(-) diff --git a/tests/comprec.at b/tests/comprec.at index 2de46c8..197e9b8 100644 --- a/tests/comprec.at +++ b/tests/comprec.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -24,7 +24,7 @@ AT_KEYWORDS([comprec]) AT_TAR_CHECK([ AT_GZIP_PREREQ -genfile --length 10240 > file1 +genfile --length 10240 --file file1 echo "separator" tar cfz archive file1 echo "separator" @@ -38,4 +38,4 @@ separator file1 ]) -AT_CLEANUP \ No newline at end of file +AT_CLEANUP diff --git a/tests/delete01.at b/tests/delete01.at index efbd085..a401c94 100644 --- a/tests/delete01.at +++ b/tests/delete01.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -24,8 +24,8 @@ AT_SETUP([deleting a member after a big one]) AT_KEYWORDS([delete delete01]) AT_TAR_CHECK([ -genfile -l 50000 > file1 -genfile -l 1024 > file2 +genfile -l 50000 --file file1 +genfile -l 1024 --file file2 tar cf archive file1 file2 tar f archive --delete file2 tar tf archive], diff --git a/tests/delete02.at b/tests/delete02.at index dce3955..4e45b4f 100644 --- a/tests/delete02.at +++ b/tests/delete02.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005 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 @@ -24,7 +24,7 @@ AT_SETUP([deleting a member from stdin archive]) AT_KEYWORDS([delete delete02]) AT_TAR_CHECK([ -genfile -l 3073 -p zeros > 1 +genfile -l 3073 -p zeros --file 1 cp 1 2 cp 2 3 tar cf archive 1 2 3 diff --git a/tests/delete04.at b/tests/delete04.at index 638b35f..9f4f2a4 100644 --- a/tests/delete04.at +++ b/tests/delete04.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -24,16 +24,16 @@ AT_SETUP([deleting a large last member]) AT_KEYWORDS([delete delete04]) AT_TAR_CHECK([ -genfile -l 3 >file1 -genfile -l 5 >file2 -genfile -l 3 >file3 -genfile -l 6 >file4 -genfile -l 24 >file5 -genfile -l 13 >file6 -genfile -l 1385 >file7 -genfile -l 30 >file8 -genfile -l 10 >file9 -genfile -l 256000 >file10 +genfile -l 3 -f file1 +genfile -l 5 -f file2 +genfile -l 3 -f file3 +genfile -l 6 -f file4 +genfile -l 24 -f file5 +genfile -l 13 -f file6 +genfile -l 1385 -f file7 +genfile -l 30 -f file8 +genfile -l 10 -f file9 +genfile -l 256000 -f file10 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10 tar f archive --delete file10 tar tf archive diff --git a/tests/delete05.at b/tests/delete05.at index 84748f2..3faaa20 100644 --- a/tests/delete05.at +++ b/tests/delete05.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -28,8 +28,8 @@ AT_SETUP([deleting non-existing member]) AT_KEYWORDS([delete delete05]) AT_TAR_CHECK([ -genfile -l 1024 > en -genfile -l 1024 > to +genfile -l 1024 -f en +genfile -l 1024 -f to tar cf archive en to # Make sure we don't use bogus blocking factor. diff --git a/tests/extrac05.at b/tests/extrac05.at index fcdd534..f20830b 100644 --- a/tests/extrac05.at +++ b/tests/extrac05.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -36,11 +36,11 @@ cztery ]) AT_TAR_CHECK([ -genfile --length 118 > jeden -genfile --length 223 > dwa -genfile --length 517 > trzy +genfile --length 118 --file jeden +genfile --length 223 --file dwa +genfile --length 517 --file trzy genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL -genfile --length 110 > cztery +genfile --length 110 --file cztery tar cf archive jeden dwa trzy cztery || exit 1 diff --git a/tests/listed01.at b/tests/listed01.at index 57cba41..e8eb480 100644 --- a/tests/listed01.at +++ b/tests/listed01.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2006 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 @@ -28,7 +28,7 @@ AT_KEYWORDS([listed incremental listed01]) AT_TAR_CHECK([ mkdir directory -genfile --length 10240 --pattern zeros > directory/file1 +genfile --length 10240 --pattern zeros --file directory/file1 # Let the things settle sleep 1 @@ -41,7 +41,7 @@ tar tf archive.1 || exit 1 sleep 1 -genfile --length 10240 --pattern zeros > directory/file2 +genfile --length 10240 --pattern zeros --file directory/file2 echo "separator" diff --git a/tests/multiv01.at b/tests/multiv01.at index 0c90a59..4247156 100644 --- a/tests/multiv01.at +++ b/tests/multiv01.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -29,7 +29,7 @@ AT_KEYWORDS([multivolume multiv multiv01]) AT_TAR_CHECK([ exec <&- -genfile --length 7168 > file1 +genfile --length 7168 --file file1 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \ " 9" "10" "11" "12" "13" "14" "15" "16" ; do \ diff --git a/tests/multiv02.at b/tests/multiv02.at index 313b3ad..84184ea 100644 --- a/tests/multiv02.at +++ b/tests/multiv02.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -29,10 +29,10 @@ AT_SETUP([skipping a straddling member]) AT_KEYWORDS([multivolume multiv multiv02]) AT_TAR_CHECK([ -genfile --length 10240 > en -genfile --length 20000 > to -genfile --length 20000 > tre -genfile --length 10240 > fire +genfile --length 10240 --file en +genfile --length 20000 --file to +genfile --length 20000 --file tre +genfile --length 10240 --file fire exec <&- diff --git a/tests/pipe.at b/tests/pipe.at index dd919d6..07e4d8d 100644 --- a/tests/pipe.at +++ b/tests/pipe.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2006 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 @@ -32,8 +32,8 @@ AT_KEYWORDS([pipe]) AT_TAR_CHECK([ mkdir directory -genfile --length 10240 --pattern zeros > directory/file1 -genfile --length 13 > directory/file2 +genfile --length 10240 --pattern zeros --file directory/file1 +genfile --length 13 --file directory/file2 tar cf archive directory|sort 2>/dev/null mv directory orig cat archive | tar xfv - | sort 2>/dev/null diff --git a/tests/same-order01.at b/tests/same-order01.at index 8e37350..e065953 100644 --- a/tests/same-order01.at +++ b/tests/same-order01.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -27,8 +27,8 @@ AT_SETUP([same-order01]) AT_KEYWORDS([same-order same-order01]) AT_TAR_CHECK([ -genfile -l 1024 > file1 -genfile -l 1024 > file2 +genfile -l 1024 -f file1 +genfile -l 1024 -f file2 tar cf archive file1 file2 mkdir directory diff --git a/tests/same-order02.at b/tests/same-order02.at index 702e780..63d24c3 100644 --- a/tests/same-order02.at +++ b/tests/same-order02.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright (C) 2004, 2006 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 @@ -26,8 +26,8 @@ AT_SETUP([same-order02]) AT_KEYWORDS([same-order same-order02]) AT_TAR_CHECK([ -genfile -l 1024 > file1 -genfile -l 1024 > file2 +genfile -l 1024 -f file1 +genfile -l 1024 -f file2 tar cf archive file1 file2 mkdir en diff --git a/tests/sparse01.at b/tests/sparse01.at index 9d120d3..651660d 100644 --- a/tests/sparse01.at +++ b/tests/sparse01.at @@ -22,8 +22,8 @@ AT_SETUP([sparse files]) AT_KEYWORDS([sparse sparse01]) AT_TAR_CHECK([ -genfile --length 1000 > begin -genfile --length 1000 > end +genfile --length 1000 -f begin +genfile --length 1000 -f end genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || AT_SKIP_TEST tar -c -f archive --sparse begin sparsefile end || exit 1 echo separator diff --git a/tests/sparse03.at b/tests/sparse03.at index 142201d..1ebac2e 100644 --- a/tests/sparse03.at +++ b/tests/sparse03.at @@ -27,8 +27,8 @@ AT_KEYWORDS([sparse sparse03]) # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html AT_TAR_CHECK([ -genfile --length 1000 > begin -genfile --length 1000 > end +genfile --length 1000 --file begin +genfile --length 1000 --file end genfile --sparse --file sparsefile --block-size 512 8G A || AT_SKIP_TEST tar -c -f archive --sparse begin sparsefile end || exit 1 echo separator -- 2.45.2