Author: bodewig
Date: Wed Dec  7 12:14:59 2011
New Revision: 1211405

URL: http://svn.apache.org/viewvc?rev=1211405&view=rev
Log:
test that proves PAX archives with big entries are read correctly.  COMPRESS-16

Added:
    commons/proper/compress/trunk/src/test/resources/8.posix.tar.gz   (with 
props)
    commons/proper/compress/trunk/src/test/resources/8.star.tar.gz
      - copied unchanged from r1211389, 
commons/proper/compress/trunk/src/test/resources/8.tar.gz
Removed:
    commons/proper/compress/trunk/src/test/resources/8.tar.gz
Modified:
    commons/proper/compress/trunk/src/changes/changes.xml
    
commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java

Modified: commons/proper/compress/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/changes.xml?rev=1211405&r1=1211404&r2=1211405&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Wed Dec  7 12:14:59 
2011
@@ -57,14 +57,15 @@ The <action> type attribute can be add,u
         GZipCompressorInputStream now optionally supports reading of
         concatenated .gz files.
       </action>
-      <action issue="COMPRESS-16" type="update" date="2011-12-05">
-        The tar package can now read archives that use GNU extensions
-        for files that are longer than 8 GByte.
-      </action>
       <action issue="COMPRESS-164" type="fix" date="2011-12-05">
         ZipFile didn't work properly for archives using unicode extra
         fields rather than UTF-8 filenames and the EFS-Flag.
       </action>
+      <action issue="COMPRESS-16" type="update" date="2011-12-07">
+        The tar package can now read archives that use star/GNU/BSD
+        extensions for files that are longer than 8 GByte as well as
+        archives that use the POSIX/PAX variant.
+      </action>
     </release>
     <release version="1.3" date="2011-11-01"
              description="Release 1.3 - API compatible to 1.2 but requires 
Java5 at runtime">

Modified: 
commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java?rev=1211405&r1=1211404&r2=1211405&view=diff
==============================================================================
--- 
commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
 (original)
+++ 
commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
 Wed Dec  7 12:14:59 2011
@@ -30,13 +30,22 @@ import org.apache.commons.compress.compr
 public class BigFilesIT {
 
     @Test
-    public void readFileBiggerThan8GByte() throws Exception {
+    public void readFileBiggerThan8GByteStar() throws Exception {
+        readFileBiggerThan8GByte("/8.star.tar.gz");
+    }
+
+    @Test
+    public void readFileBiggerThan8GBytePosix() throws Exception {
+        readFileBiggerThan8GByte("/8.posix.tar.gz");
+    }
+
+    private void readFileBiggerThan8GByte(String name) throws Exception {
         GzipCompressorInputStream in = null;
         TarArchiveInputStream tin = null;
         try {
             in =
                 new GzipCompressorInputStream(BigFilesIT.class
-                                              
.getResourceAsStream("/8.tar.gz"));
+                                              .getResourceAsStream(name));
             tin = new TarArchiveInputStream(in);
             TarArchiveEntry e = tin.getNextTarEntry();
             assertNotNull(e);

Added: commons/proper/compress/trunk/src/test/resources/8.posix.tar.gz
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/resources/8.posix.tar.gz?rev=1211405&view=auto
==============================================================================
Binary file - no diff available.

Propchange: commons/proper/compress/trunk/src/test/resources/8.posix.tar.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream


Reply via email to