aboutsummaryrefslogtreecommitdiff
path: root/lib/tar/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tar/test/data')
-rw-r--r--lib/tar/test/data/CREDITS35
-rw-r--r--lib/tar/test/data/file-size/12-digit.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/file-size/gnu.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/file-size/pax.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/gnu-g.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/gnu.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/link_filled.tarbin0 -> 10240 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/pax.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/ustar-pre-posix.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/ustar.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/format-acceptance/v7.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/large-mtime/12-digit.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/large-mtime/gnu.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/large-mtime/pax.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/long-paths/gnu.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/long-paths/pax.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/long-paths/ustar.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/negative-mtime/gnu.tarbin0 -> 10240 bytes
-rw-r--r--lib/tar/test/data/negative-mtime/pax.tarbin0 -> 10240 bytes
-rw-r--r--lib/tar/test/data/sparse-files/gnu-small.tarbin0 -> 9728 bytes
-rw-r--r--lib/tar/test/data/sparse-files/gnu.tarbin0 -> 34816 bytes
-rw-r--r--lib/tar/test/data/sparse-files/pax-gnu0-0.tarbin0 -> 35840 bytes
-rw-r--r--lib/tar/test/data/sparse-files/pax-gnu0-1.tarbin0 -> 35328 bytes
-rw-r--r--lib/tar/test/data/sparse-files/pax-gnu1-0.tarbin0 -> 35840 bytes
-rw-r--r--lib/tar/test/data/user-group-largenum/8-digit.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/user-group-largenum/gnu.tarbin0 -> 2048 bytes
-rw-r--r--lib/tar/test/data/user-group-largenum/pax.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/xattr/acl.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/xattr/xattr-libarchive.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/xattr/xattr-schily-binary.tarbin0 -> 3072 bytes
-rw-r--r--lib/tar/test/data/xattr/xattr-schily.tarbin0 -> 3072 bytes
31 files changed, 35 insertions, 0 deletions
diff --git a/lib/tar/test/data/CREDITS b/lib/tar/test/data/CREDITS
new file mode 100644
index 0000000..7a2738f
--- /dev/null
+++ b/lib/tar/test/data/CREDITS
@@ -0,0 +1,35 @@
+The tar archives in this directory have been obtained from here:
+
+ https://github.com/mgorny/tar-test-inputs
+
+ git commit hash a2110a6
+
+This repository was linked in the following article on interoperability of
+various different tar programs:
+
+ https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html
+
+The original intention of the example archives was to test various tar programs
+for interoperability with each others extensions and format quirks.
+
+The following have been removed since there is no intention in adding support
+for those features:
+
+ - volume-label tests
+ - multi-volume tests
+ - longe user + group names
+ - sun tar samples
+ - star samples
+ - file flags tests
+
+In addition to that, the files in "file-size" are truncated, since we are only
+interested in parsing the header.
+
+The following addtional files have been added:
+ - xattr/xattr-shily-binary.tar
+ Created from xattr/xattr-shily.tar by manually patching in a capability
+ xattr key/value pair.
+ - tar/format-acceptance/link_filled.tar
+ Contributed in GitHub issue #64. A tar ball that contains a hard link
+ where the 100 byte target field is completely filled without containing
+ a null-terminator.
diff --git a/lib/tar/test/data/file-size/12-digit.tar b/lib/tar/test/data/file-size/12-digit.tar
new file mode 100644
index 0000000..a6b3553
--- /dev/null
+++ b/lib/tar/test/data/file-size/12-digit.tar
Binary files differ
diff --git a/lib/tar/test/data/file-size/gnu.tar b/lib/tar/test/data/file-size/gnu.tar
new file mode 100644
index 0000000..aad726f
--- /dev/null
+++ b/lib/tar/test/data/file-size/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/file-size/pax.tar b/lib/tar/test/data/file-size/pax.tar
new file mode 100644
index 0000000..e391fee
--- /dev/null
+++ b/lib/tar/test/data/file-size/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/gnu-g.tar b/lib/tar/test/data/format-acceptance/gnu-g.tar
new file mode 100644
index 0000000..a72f60d
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/gnu-g.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/gnu.tar b/lib/tar/test/data/format-acceptance/gnu.tar
new file mode 100644
index 0000000..98e8157
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/link_filled.tar b/lib/tar/test/data/format-acceptance/link_filled.tar
new file mode 100644
index 0000000..9b80f89
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/link_filled.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/pax.tar b/lib/tar/test/data/format-acceptance/pax.tar
new file mode 100644
index 0000000..69a029f
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/ustar-pre-posix.tar b/lib/tar/test/data/format-acceptance/ustar-pre-posix.tar
new file mode 100644
index 0000000..4230f5f
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/ustar-pre-posix.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/ustar.tar b/lib/tar/test/data/format-acceptance/ustar.tar
new file mode 100644
index 0000000..9a6d9b3
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/ustar.tar
Binary files differ
diff --git a/lib/tar/test/data/format-acceptance/v7.tar b/lib/tar/test/data/format-acceptance/v7.tar
new file mode 100644
index 0000000..5483b4b
--- /dev/null
+++ b/lib/tar/test/data/format-acceptance/v7.tar
Binary files differ
diff --git a/lib/tar/test/data/large-mtime/12-digit.tar b/lib/tar/test/data/large-mtime/12-digit.tar
new file mode 100644
index 0000000..8202b28
--- /dev/null
+++ b/lib/tar/test/data/large-mtime/12-digit.tar
Binary files differ
diff --git a/lib/tar/test/data/large-mtime/gnu.tar b/lib/tar/test/data/large-mtime/gnu.tar
new file mode 100644
index 0000000..4e3dda2
--- /dev/null
+++ b/lib/tar/test/data/large-mtime/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/large-mtime/pax.tar b/lib/tar/test/data/large-mtime/pax.tar
new file mode 100644
index 0000000..8d32530
--- /dev/null
+++ b/lib/tar/test/data/large-mtime/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/long-paths/gnu.tar b/lib/tar/test/data/long-paths/gnu.tar
new file mode 100644
index 0000000..4eee731
--- /dev/null
+++ b/lib/tar/test/data/long-paths/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/long-paths/pax.tar b/lib/tar/test/data/long-paths/pax.tar
new file mode 100644
index 0000000..1e63e9c
--- /dev/null
+++ b/lib/tar/test/data/long-paths/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/long-paths/ustar.tar b/lib/tar/test/data/long-paths/ustar.tar
new file mode 100644
index 0000000..812255c
--- /dev/null
+++ b/lib/tar/test/data/long-paths/ustar.tar
Binary files differ
diff --git a/lib/tar/test/data/negative-mtime/gnu.tar b/lib/tar/test/data/negative-mtime/gnu.tar
new file mode 100644
index 0000000..a9b1272
--- /dev/null
+++ b/lib/tar/test/data/negative-mtime/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/negative-mtime/pax.tar b/lib/tar/test/data/negative-mtime/pax.tar
new file mode 100644
index 0000000..d0b3e6c
--- /dev/null
+++ b/lib/tar/test/data/negative-mtime/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/sparse-files/gnu-small.tar b/lib/tar/test/data/sparse-files/gnu-small.tar
new file mode 100644
index 0000000..7a1b222
--- /dev/null
+++ b/lib/tar/test/data/sparse-files/gnu-small.tar
Binary files differ
diff --git a/lib/tar/test/data/sparse-files/gnu.tar b/lib/tar/test/data/sparse-files/gnu.tar
new file mode 100644
index 0000000..3d641a2
--- /dev/null
+++ b/lib/tar/test/data/sparse-files/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/sparse-files/pax-gnu0-0.tar b/lib/tar/test/data/sparse-files/pax-gnu0-0.tar
new file mode 100644
index 0000000..628f09e
--- /dev/null
+++ b/lib/tar/test/data/sparse-files/pax-gnu0-0.tar
Binary files differ
diff --git a/lib/tar/test/data/sparse-files/pax-gnu0-1.tar b/lib/tar/test/data/sparse-files/pax-gnu0-1.tar
new file mode 100644
index 0000000..87e362e
--- /dev/null
+++ b/lib/tar/test/data/sparse-files/pax-gnu0-1.tar
Binary files differ
diff --git a/lib/tar/test/data/sparse-files/pax-gnu1-0.tar b/lib/tar/test/data/sparse-files/pax-gnu1-0.tar
new file mode 100644
index 0000000..edb0ccf
--- /dev/null
+++ b/lib/tar/test/data/sparse-files/pax-gnu1-0.tar
Binary files differ
diff --git a/lib/tar/test/data/user-group-largenum/8-digit.tar b/lib/tar/test/data/user-group-largenum/8-digit.tar
new file mode 100644
index 0000000..a48ea5d
--- /dev/null
+++ b/lib/tar/test/data/user-group-largenum/8-digit.tar
Binary files differ
diff --git a/lib/tar/test/data/user-group-largenum/gnu.tar b/lib/tar/test/data/user-group-largenum/gnu.tar
new file mode 100644
index 0000000..4c30f57
--- /dev/null
+++ b/lib/tar/test/data/user-group-largenum/gnu.tar
Binary files differ
diff --git a/lib/tar/test/data/user-group-largenum/pax.tar b/lib/tar/test/data/user-group-largenum/pax.tar
new file mode 100644
index 0000000..a9fe54c
--- /dev/null
+++ b/lib/tar/test/data/user-group-largenum/pax.tar
Binary files differ
diff --git a/lib/tar/test/data/xattr/acl.tar b/lib/tar/test/data/xattr/acl.tar
new file mode 100644
index 0000000..a65c0af
--- /dev/null
+++ b/lib/tar/test/data/xattr/acl.tar
Binary files differ
diff --git a/lib/tar/test/data/xattr/xattr-libarchive.tar b/lib/tar/test/data/xattr/xattr-libarchive.tar
new file mode 100644
index 0000000..3bd6125
--- /dev/null
+++ b/lib/tar/test/data/xattr/xattr-libarchive.tar
Binary files differ
diff --git a/lib/tar/test/data/xattr/xattr-schily-binary.tar b/lib/tar/test/data/xattr/xattr-schily-binary.tar
new file mode 100644
index 0000000..0312807
--- /dev/null
+++ b/lib/tar/test/data/xattr/xattr-schily-binary.tar
Binary files differ
diff --git a/lib/tar/test/data/xattr/xattr-schily.tar b/lib/tar/test/data/xattr/xattr-schily.tar
new file mode 100644
index 0000000..1cf525c
--- /dev/null
+++ b/lib/tar/test/data/xattr/xattr-schily.tar
Binary files differ