diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-08-12 01:16:19 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-08-12 01:16:19 +0000 |
commit | b8882290a9566f5e9ce5eab0a9a1e2e662246965 (patch) | |
tree | 95054bae16a9b080f91fac0be8ccb2639f8c5cb8 /lib | |
parent | b031fef0fe7eeba046a2b3d41301aceb44002829 (diff) | |
download | FreeBSD-src-b8882290a9566f5e9ce5eab0a9a1e2e662246965.zip FreeBSD-src-b8882290a9566f5e9ce5eab0a9a1e2e662246965.tar.gz |
Update the tests for reading the various GNU tar sparse formats.
In particular:
* Include a second entry in all of the test archives (to catch errors
with intermediate padding)
* Test the GNU tar 1.17 version of "posix sparse format 1.0"
instead of the GNU tar 1.16 version (the latter is no longer
supported by GNU tar).
Right now, libarchive fails this test because I originally
implemented the GNU tar 1.16 version of "posix sparse format 1.0".
I'll fix libarchive shortly.
Approved by: re (blanket, libarchive testing)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/test/test_read_format_gtar_sparse.c | 342 |
1 files changed, 267 insertions, 75 deletions
diff --git a/lib/libarchive/test/test_read_format_gtar_sparse.c b/lib/libarchive/test/test_read_format_gtar_sparse.c index 7847861..1f6be50 100644 --- a/lib/libarchive/test/test_read_format_gtar_sparse.c +++ b/lib/libarchive/test/test_read_format_gtar_sparse.c @@ -26,11 +26,16 @@ __FBSDID("$FreeBSD$"); /* - * Each of the following is an archive of a single sparse file - * named 'sparse' which has: - * * a length of 3M exactly - * * a single 'a' byte at offset 100000 - * * a single 'a' byte at offset 200000 + * Each of the following is an archive containing the following + * entries: + * + * File 1: named "sparse" + * * a length of 3145728 bytes (3MiB) + * * a single 'a' byte at offset 1000000 + * * a single 'a' byte at offset 2000000 + * File 2: named 'non-sparse' + * * length of 1 byte + * * contains a single byte 'a' */ static struct contents { @@ -45,66 +50,87 @@ static struct contents { /* Old GNU tar sparse format. */ static unsigned char archive_old[] = { -31,139,8,0,150,221,'l','F',0,3,'+','.','H',',','*','N','e',160,')','0',0, -2,'3',19,19,16,'m','h','n','j',128,'L',131,128,17,16,'3',24,26,152,25,27, -27,154,154,25,25,26,'2',0,'e',205,141,140,25,20,130,'i',235,',',8,'(','-', -'.','I',',','R','P','`','(',201,204,197,171,142,144,'<',217,0,20,4,198,'f', -'&',134,160,'P',128,134,8,156,13,12,'%','#',',',226,134,'&',16,'>','L',28, -204,198,'g',1,'\\',3,213,'A','"',245,141,28,5,'#',8,140,166,159,'Q','0',10, -'F',193,'(',24,24,0,0,'}','}',226,185,0,10,0,0}; +31,139,8,0,215,'[',190,'F',0,3,237,213,223,10,130,'0',20,199,241,'=',202, +'^',' ',216,'q',211,'=','H','O',224,'E',23,']','d',225,236,253,243,'d','i', +'P','(',132,'C',162,239,7,'d',219,241,'/',7,253,153,'.','u',155,14,'&','+', +215,171,'B',208,'Q','b',233,'^','G','U',244,155,17,'W',149,'1',148,193,'i', +']','b',244,222,216,'}',222,199,26,'\\','S','W',183,214,154,238,'x',154,'=', +'n','i',255,215,180,5,190,10,162,']','x','t','d',156,247,']','*','>',212, +'%',12,235,'g',253,'>',159,187,193,'x',194,234,234,245,'/',137,'?',194,251, +179,173,230,220,236,'R',230,127,192,'B',254,235,'r',202,255,168,249,'/',133, +23,'c','3',196,213,187,205,243,127,'[','|',127,0,0,0,0,0,0,0,0,0,0,0,252, +190,27,'H',10,',',253,0,'(',0,0}; #if ARCHIVE_VERSION_STAMP >= 1009000 /* libarchive < 1.9 doesn't support these. */ -/* GNU tar "0.0" posix format, as written by GNU tar 1.15.1. */ +/* GNU tar "0.0" posix format, as written by GNU tar 1.15. */ static unsigned char archive_0_0[] = { -31,139,8,0,171,221,'l','F',0,3,237,147,193,'N',195,'0',12,134,'s',206,'S', -244,9,186,216,142,147,246,144,'3',156,'&','.','<','@',24,153,'4',193,24,'j', -':','i',227,233,'I',129,'M','E','*','L','h',21,'U',165,'|',23,'K','v','~', -203,145,253,151,139,';',127,184,13,254,'1','4',177,180,'h',140,'^',196,'W', -223,196,' ',198,'C','%',140,214,']',4,203,170,31,'?',208,10,5,'(','C',4,'l', -'4',161,'P','@',218,178,'(',14,'#',206,240,'#',251,216,250,'&',141,'r','m', -159,175,191,156,227,'L','@','[',220,',',239,203,207,157,151,'q',243,22,28, -129,'f',139,149,'D',211,'/',189,236,183,15,207,187,213,'S','t','$',177,234, -'W','v',235,'u',12,173,171,19,'d',228,247,134,157,234,216,134,232,24,'P', -'b','=',' ',131,'$',171,',',254,'Y','w',158,146,7,'u','J',162,'*','|',187, -217,6,7,'P',1,'S',205,'5','v',185,'U','?',167,13,203,169,'7','0','-',163, -155,'}',128,11,254,199,206,'.','\'',255,'#','@',242,'?','X','R',162,248,23, -19,157,252,159,206,226,215,'w',151,234,'3',245,255,181,248,169,7,200,204, -154,'|','?',153,'L','&','3',13,239,',',195,'|','B',0,14,0,0}; +31,139,8,0,155,'X',190,'F',0,3,237,214,209,'N',131,'0',20,6,'`',174,'y',10, +'^','@',214,'s',218,'R',184,224,'Z',175,140,'7','>',0,206,'.','Y','t',155, +'Y','Y','2','}','z','[','u',147,'e','S','4','#','#','l',255,'w',211,164,229, +'4','%','p',224,'O','G','w',213,250,198,'V',143,'v',233,'R',163,'Y',142,220, +'K',181,'t','6',234,144,240,'2',165,194,'H','F',139,230,248,'A',9,142,'H', +'d',218,'(',173,'X',202,'H',144,'T','$',163,'d',221,229,'!','~',178,'r','u', +181,244,'G','9','v',159,175,'{',217,142,3,193,'&',185,190,189,'O','?',31, +'z',234,166,'o',182,148,164,180,225,'<',230,172,185,'4','_',205,30,158,23, +227,'\'','W',202,152,243,230,202,'b','2','q',182,'.',11,'O','f',241,238,134, +161,234,181,182,174,212,196,'1',23,7,202,200,151,229,134,255,']',183,'=', +165,'>','X','\'','b',22,'I','U','O','g',182,'$',202,179,220,20,25,153,'0', +'7','n',206,'i',191,'A',223,'O',160,'_',221,'w',251,190,150,254,231,208,'.', +155,254,23,'a',158,200,'(',17,'%','\'','i',162,'M',255,251,215,226,215,235, +218,214,7,218,255,199,170,250,'>',0,12,26,222,159,'~',165,'{',249,'o',190, +152,'_','u',251,'W','h',203,127,225,155,191,155,255,20,251,'H',136,252,'w', +2,127,'J','I','J',']','x','J',':','_',221,'w',251,190,214,254,23,244,157, +255,'L',200,127,172,'%','!',255,157,2,254,191,0,0,0,0,0,0,0,0,0,0,0,231,231, +29,157,135,'u','Z',0,'(',0,0}; + -/* GNU tar "0.1" posix format, as written by GNU tar 1.15.XXX. */ +/* GNU tar "0.1" posix format, as written by GNU tar 1.15.1 (?) */ static unsigned char archive_0_1[] = { -31,139,8,0,191,221,'l','F',0,3,237,148,193,'N',195,'0',12,134,'s',238,'S', -244,1,170,'4','v','b',167,';',244,202,'v','B','H',136,7,8,'#',135,138,'u', -'L',205,'&','M','<','=','Y',183,161,10,9,'v',216,160,'*',202,'w',177,'e', -'G',137,19,251,143,',',31,220,'~',225,221,139,239,130,180,200,204,'e',216, -184,'.','x','q',';','T',132,141,'9','X',176,164,134,182,7,9,5,'(',214,26, -136,13,145,'P',160,'I','Y',145,239,'o','X',195,183,236,194,214,'u',177,148, -'k',247,'9',221,229,211,'N',4,180,249,252,254,'I',30,'{','.','C',243,238, -'k',13,134,',','V',25,242,'0',181,222,181,207,171,183,229,'k',168,245,215, -140,'k','}','}',244,'3',130,'a',166,'u',155,'z',22,209,'\\',16,'`',1,209, -173,',',246,254,233,144,'B','e',168,'r',183,'m',226,22,0,21,144,158,'1',244, -177,229,'0','f',152,178,177,'_',234,127,'"',203,216,175,199,190,']','w',205, -202,255,202,23,'p','A',255,'x',144,203,'Y',255,8,16,245,'O',192,'$',242,'?', -17,209,'Y',255,'q',220,'~','\\','w',')','?','Q',253,'_',139,27,187,128,196, -164,'I',243,147,'H','$',18,227,240,1,'Q',127,'c',137,0,14,0,0}; +31,139,8,0,6,'Y',190,'F',0,3,237,214,223,'n',130,'0',20,6,'p',174,'y',10, +30,128,'a',207,161,127,240,130,219,'m','W',203,146,'e',15,208,'9','.',140, +138,6,'4','1','{',250,21,212,141,205,'l',',',145,'A','0',223,239,166,'M', +'K',176,210,30,248,162,201,163,221,223,'g',246,'5','+',202,200,'(','N','&', +229,198,22,'e',230,'u','H','8','Z',202,170,'%',163,'D',179,173,177,'b',143, +132,'V','F','*',')',133,246,4,197,146,149,23,236,187,'\\',196,'O','v',229, +214,22,'n',')',151,222,231,248,'_','>',218,145,'`',19,220,'=','<','G',135, +'M',143,202,249,'[',150,198,'$',149,225,196,'g',221,156,202,'w',171,151,229, +'z',182,'(',211,248,251,140,']','e',233,161,239,'+','j',206,172,236,'&',157, +':',177,14,21,'q','H',174,155,24,174,251,199,31,9,133,207,'"',176,219,185, +187,5,'Q',162,19,'3',213,'2',174,198,'f',205,'1','w','.',253,161,159,212, +'u',138,'&','n',191,158,234,237,186,157,'/',179,127,'y',5,180,212,'?','W', +229,'r',170,127,'Q',141,147,'"',18,'^',208,'K',17,157,234,223,29,183,'_', +175,'k',155,31,'i',253,'_',202,14,189,0,24,'5',156,159,'a','E','g',249,'/', +'_',231,'7',221,'~',0,218,242,'_',245,206,255,154,255,'$',19,'!',255,245, +225,'O',233,'K','J',164,175,'+',213,'}',181,159,'k',173,127,'A',159,249,207, +'T',249,143,'U','L',200,127,'}',192,247,23,0,0,0,0,0,0,0,0,0,0,224,250,188, +3,249,9,184,142,0,'(',0,0}; + -/* GNU tar "1.0" posix format, as written by GNU tar 1.16.1. */ +/* GNU tar "1.0" posix format, as written by GNU tar 1.17. */ /* - * Uncompressed, as that exercises some of the code better - * than compressed does. (The uncompression layers try to work with - * large blocks and the parsing code here has sections that have - * to work harder if reads return small pieces of data.) + * Note: This is not the same as the GNU tar "1.0" format + * written by GNU tar 1.16. The two formats are incompatible. + * + * Libarchive follows GNU tar 1.17 here, making it incompatible + * with GNU tar 1.16. + */ + +/* + * This test archive is uncompressed, as that exercises some of the + * code better than compressed does. (The uncompression layers try to + * work with large blocks and the parsing code in libarchive has sections that + * have to work harder if reads return small pieces of data.) */ static unsigned char archive_1_0[] = { -'.','/','P','a','x','H','e','a','d','e','r','s','.','7','2','6','6','8','/', -'s','p','a','r','s','e',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +'.','/','P','a','x','H','e','a','d','e','r','s','.','7','5','4','7','/','s', +'p','a','r','s','e',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7', +0,0,0,0,0,0,0,0,0,0,0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7', '5','0',0,'0','0','0','1','7','5','0',0,'0','0','0','0','0','0','0','0','2', -'1','5',0,'1','0','6','3','3','1','5','6','4','7','2',0,'0','1','3','5','0', -'7',0,' ','x',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +'1','5',0,'1','0','6','5','7','4','5','4','6','1','3',0,'0','1','3','4','2', +'5',0,' ','x',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'u','s', 't','a','r',0,'0','0',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -120,8 +146,8 @@ static unsigned char archive_1_0[] = { '.','s','p','a','r','s','e','.','n','a','m','e','=','s','p','a','r','s','e', 10,'3','1',' ','G','N','U','.','s','p','a','r','s','e','.','r','e','a','l', 's','i','z','e','=','3','1','4','5','7','2','8',10,'2','0',' ','a','t','i', -'m','e','=','1','1','8','1','5','3','9','6','3','4',10,'2','0',' ','c','t', -'i','m','e','=','1','1','8','1','5','3','9','4','6','5',10,0,0,0,0,0,0,0, +'m','e','=','1','1','8','6','8','7','9','7','9','9',10,'2','0',' ','c','t', +'i','m','e','=','1','1','8','6','8','7','9','5','2','8',10,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -132,25 +158,115 @@ static unsigned char archive_1_0[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'.','/','G', -'N','U','S','p','a','r','s','e','F','i','l','e','.','7','2','6','6','8','/', -'s','p','a','r','s','e',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +'N','U','S','p','a','r','s','e','F','i','l','e','.','7','5','4','7','/','s', +'p','a','r','s','e',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7','5','0', +0,'0','0','0','1','7','5','0',0,'0','0','0','0','0','0','0','3','0','0','0', +0,'1','0','6','5','7','4','5','4','0','5','0',0,'0','1','5','1','1','2',0, +' ','0',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'u','s','t','a', +'r',0,'0','0','t','i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,'t','i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,'0','0','0','0','0','0','0',0,'0','0','0','0','0','0','0',0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'3',10,'9','9','9','9','3','6',10,'5','1','2', +10,'1','9','9','9','8','7','2',10,'5','1','2',10,'3','1','4','5','7','2', +'8',10,'0',10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0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,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7','5','0', +0,'0','0','0','1','7','5','0',0,'0','0','0','0','0','0','0','0','0','5','0', +0,'1','0','6','5','7','4','5','4','6','1','3',0,'0','1','4','2','1','2',0, +' ','x',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'u','s','t','a', +'r',0,'0','0',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'0','0', +'0','0','0','0','0',0,'0','0','0','0','0','0','0',0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,'2','0',' ','a','t','i','m','e','=','1','1','8','6','8','7', +'9','7','9','9',10,'2','0',' ','c','t','i','m','e','=','1','1','8','6','8', +'7','9','5','4','4',10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7','5','0',0,'0','0','0', +'1','7','5','0',0,'0','0','0','0','0','0','0','0','0','0','1',0,'1','0','6', +'5','7','4','5','4','0','7','0',0,'0','1','2','5','3','1',0,' ','0',0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'u','s','t','a','r',0,'0','0', +'t','i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'t', +'i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'0','0', +'0','0','0','0','0',0,'0','0','0','0','0','0','0',0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,'0','0','0','0','6','4','4',0,'0','0','0','1','7','5', -'0',0,'0','0','0','1','7','5','0',0,'0','0','0','0','0','0','0','3','0','0', -'0',0,'1','0','6','3','3','1','5','6','2','1','1',0,'0','1','5','1','7','0', -0,' ','0',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'u','s','t', -'a','r',0,'0','0','t','i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,'t','i','m',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,'0','0','0','0','0','0','0',0,'0','0','0','0','0','0','0',0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,'a',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'3',10,'9','9','9','9','3','6',10,'5','1', -'2',10,'1','9','9','9','8','7','2',10,'5','1','2',10,'3','1','4','5','7', -'2','8',10,'0',10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -164,7 +280,6 @@ static unsigned char archive_1_0[] = { 0,0,0,0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,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; #endif #define min(a,b) ((a) < (b) ? (a) : (b)) static void -verify_archive(void *b, size_t l, struct contents *cts) +verify_archive(void *b, size_t l, struct contents *cts, const char *name) { struct archive_entry *ae; struct archive *a; @@ -256,6 +440,7 @@ verify_archive(void *b, size_t l, struct contents *cts) assert(0 == archive_read_support_format_tar(a)); assert(0 == read_open_memory(a, b, l, 3)); assertEqualIntA(a, 0, archive_read_next_header(a, &ae)); + assertEqualString("sparse", archive_entry_pathname(ae)); e = *cts++; while (0 == (err = archive_read_data_block(a, &ad, &as, &ao))) { @@ -294,6 +479,13 @@ verify_archive(void *b, size_t l, struct contents *cts) assertEqualInt(ao, e.o); #endif + err = archive_read_next_header(a, &ae); + failure("Failed to read the file following the sparse file in %s", name); + assertEqualIntA(a, ARCHIVE_OK, err); + if (err == ARCHIVE_OK) { + assertEqualString("non-sparse", archive_entry_pathname(ae)); + } + assert(0 == archive_read_close(a)); #if ARCHIVE_API_VERSION > 1 assert(0 == archive_read_finish(a)); @@ -308,7 +500,7 @@ DEFINE_TEST(test_read_format_gtar_sparse) fwrite(archive_1_0, sizeof(archive_1_0), 1, t); fclose(t); - verify_archive(archive_old, sizeof(archive_old), archive_contents); + verify_archive(archive_old, sizeof(archive_old), archive_contents, "archive_old"); /* * libarchive < 1.9 doesn't support the newer sparse formats @@ -317,17 +509,17 @@ DEFINE_TEST(test_read_format_gtar_sparse) #if ARCHIVE_VERSION_STAMP < 1009000 skipping("read support for GNUtar sparse format 0.0"); #else - verify_archive(archive_0_0, sizeof(archive_0_0), archive_contents); + verify_archive(archive_0_0, sizeof(archive_0_0), archive_contents, "archive_0_0"); #endif #if ARCHIVE_VERSION_STAMP < 1009000 skipping("read support for GNUtar sparse format 0.1"); #else - verify_archive(archive_0_1, sizeof(archive_0_1), archive_contents); + verify_archive(archive_0_1, sizeof(archive_0_1), archive_contents, "archive_0_1"); #endif #if ARCHIVE_VERSION_STAMP < 1009000 skipping("read support for GNUtar sparse format 1.0"); #else - verify_archive(archive_1_0, sizeof(archive_1_0), archive_contents); + verify_archive(archive_1_0, sizeof(archive_1_0), archive_contents, "archive_1_0"); #endif } |