]> Dogcows Code - chaz/tar/commitdiff
Always use genfile --file, this enables extra error checking.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 2 May 2006 19:16:12 +0000 (19:16 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 2 May 2006 19:16:12 +0000 (19:16 +0000)
14 files changed:
tests/comprec.at
tests/delete01.at
tests/delete02.at
tests/delete04.at
tests/delete05.at
tests/extrac05.at
tests/listed01.at
tests/multiv01.at
tests/multiv02.at
tests/pipe.at
tests/same-order01.at
tests/same-order02.at
tests/sparse01.at
tests/sparse03.at

index 2de46c8d436309f62116911a6762eb82f6e6d52d..197e9b8efabf2bc5aac942cb884fc531268db44f 100644 (file)
@@ -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
index efbd0857a44fe2680e60a85568e8859e2f24a88e..a401c945030ac8cac671ec191a69a9b23d07978c 100644 (file)
@@ -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],
index dce39552118cb0f78621c5f8b3ec1b9b97d2bf17..4e45b4fb9021d7c611448ffd2c46c50f73ee6cd5 100644 (file)
@@ -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
index 638b35f730a0599b3c6c0a2171d60f6d988fa71e..9f4f2a41970c3ebbf0e737e6d8237171cfeecbcc 100644 (file)
@@ -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
index 84748f2f168c89c5720b5106e6143580c0cfb35c..3faaa20e5cf41107bee8684306752ae05f259702 100644 (file)
@@ -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.
index fcdd534e32c8bdc3a3b4a9d36df4bf4759ba8344..f20830b9777e7f841b22bac2c1fba4369ec84415 100644 (file)
@@ -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
 
index 57cba414800b471a6fc445d06cc376972bd8a051..e8eb480538588df29f3f0a087b79168e43522e41 100644 (file)
@@ -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"
 
index 0c90a59209b5c7728cf3d331fade9d0e0d2f8cd3..4247156260b4238d1e4f9c7348734e98e9298e88 100644 (file)
@@ -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 \
index 313b3ad724866a4cad65db3441a427494cfa10df..84184eaab0dff0583a477ab154cdddc2fb5b20e7 100644 (file)
@@ -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 <&-
 
index dd919d6bdb3d5ff0237006235b3fe1fd38ba1fbe..07e4d8d45abfb6a45612e70bb099f92bf7347ba5 100644 (file)
@@ -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
index 8e373501a473dfb743620096a1a75341c83d87e3..e06595347259b786965ac64b881bb3170dadbe61 100644 (file)
@@ -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
index 702e780e470ef02a7d9138e2fda30a6b769258f5..63d24c302d7f18f6f589fe212c463b6e75882516 100644 (file)
@@ -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
index 9d120d335b16ca1d34004a59152c90e4dd1d541b..651660d274dc45e4c509e73f09c32fa752cdcb9d 100644 (file)
@@ -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
index 142201d9f1a3cb68018044ebc4c907aa3dbed8a6..1ebac2e741dec767728f702b3df6138075b25d5b 100644 (file)
@@ -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
This page took 0.032988 seconds and 4 git commands to generate.