summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-24 10:24:48 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-24 10:24:48 +0200
commit2a941d1c1efa6f392aafcc2e8b442e39a9cb214c (patch)
treebc2bc315c0721049fce505b2083542bbbc19fbb8
parent0bec3189c22b91c647975cf3ad204b0a361caf95 (diff)
Import tar reader test cases
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/tar/CREDITS19
-rw-r--r--tests/tar/file-size/12-digit.tar.gz.gzbin0 -> 99861 bytes
-rw-r--r--tests/tar/file-size/ZIPBOMB-WARNING6
-rw-r--r--tests/tar/file-size/gnu.tar.gz.gzbin0 -> 99827 bytes
-rw-r--r--tests/tar/file-size/pax.tar.gz.gzbin0 -> 100215 bytes
-rw-r--r--tests/tar/format-acceptance/gnu-g.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/format-acceptance/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/format-acceptance/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/format-acceptance/star.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/format-acceptance/suntar.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/format-acceptance/ustar-pre-posix.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/format-acceptance/ustar.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/format-acceptance/v7.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/large-mtime/12-digit.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/large-mtime/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/large-mtime/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/long-paths/gnu.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/long-paths/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/long-paths/star.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/long-paths/ustar.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/negative-mtime/gnu.tarbin0 -> 10240 bytes
-rw-r--r--tests/tar/negative-mtime/pax.tarbin0 -> 10240 bytes
-rw-r--r--tests/tar/sparse-files/gnu-small.tarbin0 -> 9728 bytes
-rw-r--r--tests/tar/sparse-files/gnu.tarbin0 -> 34816 bytes
-rw-r--r--tests/tar/sparse-files/pax-gnu0-0.tarbin0 -> 35840 bytes
-rw-r--r--tests/tar/sparse-files/pax-gnu0-1.tarbin0 -> 35328 bytes
-rw-r--r--tests/tar/sparse-files/pax-gnu1-0.tarbin0 -> 35840 bytes
-rw-r--r--tests/tar/sparse-files/star.tarbin0 -> 40960 bytes
-rw-r--r--tests/tar/sparse-files/xstar.tarbin0 -> 40960 bytes
-rw-r--r--tests/tar/user-group-largenum/8-digit.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/user-group-largenum/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/user-group-largenum/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/user-group-name/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/user-group-name/ustar-32chars.tarbin0 -> 2048 bytes
-rw-r--r--tests/tar/xattr/acl.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/xattr/fflags-libarchive.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/xattr/fflags-schily.tarbin0 -> 4608 bytes
-rw-r--r--tests/tar/xattr/xattr-libarchive.tarbin0 -> 3072 bytes
-rw-r--r--tests/tar/xattr/xattr-schily.tarbin0 -> 3072 bytes
39 files changed, 25 insertions, 0 deletions
diff --git a/tests/tar/CREDITS b/tests/tar/CREDITS
new file mode 100644
index 0000000..959e558
--- /dev/null
+++ b/tests/tar/CREDITS
@@ -0,0 +1,19 @@
+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
diff --git a/tests/tar/file-size/12-digit.tar.gz.gz b/tests/tar/file-size/12-digit.tar.gz.gz
new file mode 100644
index 0000000..aaa69e3
--- /dev/null
+++ b/tests/tar/file-size/12-digit.tar.gz.gz
Binary files differ
diff --git a/tests/tar/file-size/ZIPBOMB-WARNING b/tests/tar/file-size/ZIPBOMB-WARNING
new file mode 100644
index 0000000..e530637
--- /dev/null
+++ b/tests/tar/file-size/ZIPBOMB-WARNING
@@ -0,0 +1,6 @@
+WARNING!
+
+The inner compressed tarballs in this directory are 8 GiB of size each.
+Be careful not to decompress them accidentally without preparing
+appropriate backing store (or having the decompressor smart about sparse
+files).
diff --git a/tests/tar/file-size/gnu.tar.gz.gz b/tests/tar/file-size/gnu.tar.gz.gz
new file mode 100644
index 0000000..6ae4342
--- /dev/null
+++ b/tests/tar/file-size/gnu.tar.gz.gz
Binary files differ
diff --git a/tests/tar/file-size/pax.tar.gz.gz b/tests/tar/file-size/pax.tar.gz.gz
new file mode 100644
index 0000000..7c887d6
--- /dev/null
+++ b/tests/tar/file-size/pax.tar.gz.gz
Binary files differ
diff --git a/tests/tar/format-acceptance/gnu-g.tar b/tests/tar/format-acceptance/gnu-g.tar
new file mode 100644
index 0000000..a72f60d
--- /dev/null
+++ b/tests/tar/format-acceptance/gnu-g.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/gnu.tar b/tests/tar/format-acceptance/gnu.tar
new file mode 100644
index 0000000..98e8157
--- /dev/null
+++ b/tests/tar/format-acceptance/gnu.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/pax.tar b/tests/tar/format-acceptance/pax.tar
new file mode 100644
index 0000000..69a029f
--- /dev/null
+++ b/tests/tar/format-acceptance/pax.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/star.tar b/tests/tar/format-acceptance/star.tar
new file mode 100644
index 0000000..0c24ae5
--- /dev/null
+++ b/tests/tar/format-acceptance/star.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/suntar.tar b/tests/tar/format-acceptance/suntar.tar
new file mode 100644
index 0000000..8b2d73b
--- /dev/null
+++ b/tests/tar/format-acceptance/suntar.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/ustar-pre-posix.tar b/tests/tar/format-acceptance/ustar-pre-posix.tar
new file mode 100644
index 0000000..4230f5f
--- /dev/null
+++ b/tests/tar/format-acceptance/ustar-pre-posix.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/ustar.tar b/tests/tar/format-acceptance/ustar.tar
new file mode 100644
index 0000000..9a6d9b3
--- /dev/null
+++ b/tests/tar/format-acceptance/ustar.tar
Binary files differ
diff --git a/tests/tar/format-acceptance/v7.tar b/tests/tar/format-acceptance/v7.tar
new file mode 100644
index 0000000..5483b4b
--- /dev/null
+++ b/tests/tar/format-acceptance/v7.tar
Binary files differ
diff --git a/tests/tar/large-mtime/12-digit.tar b/tests/tar/large-mtime/12-digit.tar
new file mode 100644
index 0000000..8202b28
--- /dev/null
+++ b/tests/tar/large-mtime/12-digit.tar
Binary files differ
diff --git a/tests/tar/large-mtime/gnu.tar b/tests/tar/large-mtime/gnu.tar
new file mode 100644
index 0000000..4e3dda2
--- /dev/null
+++ b/tests/tar/large-mtime/gnu.tar
Binary files differ
diff --git a/tests/tar/large-mtime/pax.tar b/tests/tar/large-mtime/pax.tar
new file mode 100644
index 0000000..8d32530
--- /dev/null
+++ b/tests/tar/large-mtime/pax.tar
Binary files differ
diff --git a/tests/tar/long-paths/gnu.tar b/tests/tar/long-paths/gnu.tar
new file mode 100644
index 0000000..4eee731
--- /dev/null
+++ b/tests/tar/long-paths/gnu.tar
Binary files differ
diff --git a/tests/tar/long-paths/pax.tar b/tests/tar/long-paths/pax.tar
new file mode 100644
index 0000000..1e63e9c
--- /dev/null
+++ b/tests/tar/long-paths/pax.tar
Binary files differ
diff --git a/tests/tar/long-paths/star.tar b/tests/tar/long-paths/star.tar
new file mode 100644
index 0000000..ed94d48
--- /dev/null
+++ b/tests/tar/long-paths/star.tar
Binary files differ
diff --git a/tests/tar/long-paths/ustar.tar b/tests/tar/long-paths/ustar.tar
new file mode 100644
index 0000000..812255c
--- /dev/null
+++ b/tests/tar/long-paths/ustar.tar
Binary files differ
diff --git a/tests/tar/negative-mtime/gnu.tar b/tests/tar/negative-mtime/gnu.tar
new file mode 100644
index 0000000..a9b1272
--- /dev/null
+++ b/tests/tar/negative-mtime/gnu.tar
Binary files differ
diff --git a/tests/tar/negative-mtime/pax.tar b/tests/tar/negative-mtime/pax.tar
new file mode 100644
index 0000000..d0b3e6c
--- /dev/null
+++ b/tests/tar/negative-mtime/pax.tar
Binary files differ
diff --git a/tests/tar/sparse-files/gnu-small.tar b/tests/tar/sparse-files/gnu-small.tar
new file mode 100644
index 0000000..7a1b222
--- /dev/null
+++ b/tests/tar/sparse-files/gnu-small.tar
Binary files differ
diff --git a/tests/tar/sparse-files/gnu.tar b/tests/tar/sparse-files/gnu.tar
new file mode 100644
index 0000000..3d641a2
--- /dev/null
+++ b/tests/tar/sparse-files/gnu.tar
Binary files differ
diff --git a/tests/tar/sparse-files/pax-gnu0-0.tar b/tests/tar/sparse-files/pax-gnu0-0.tar
new file mode 100644
index 0000000..628f09e
--- /dev/null
+++ b/tests/tar/sparse-files/pax-gnu0-0.tar
Binary files differ
diff --git a/tests/tar/sparse-files/pax-gnu0-1.tar b/tests/tar/sparse-files/pax-gnu0-1.tar
new file mode 100644
index 0000000..87e362e
--- /dev/null
+++ b/tests/tar/sparse-files/pax-gnu0-1.tar
Binary files differ
diff --git a/tests/tar/sparse-files/pax-gnu1-0.tar b/tests/tar/sparse-files/pax-gnu1-0.tar
new file mode 100644
index 0000000..edb0ccf
--- /dev/null
+++ b/tests/tar/sparse-files/pax-gnu1-0.tar
Binary files differ
diff --git a/tests/tar/sparse-files/star.tar b/tests/tar/sparse-files/star.tar
new file mode 100644
index 0000000..254ad97
--- /dev/null
+++ b/tests/tar/sparse-files/star.tar
Binary files differ
diff --git a/tests/tar/sparse-files/xstar.tar b/tests/tar/sparse-files/xstar.tar
new file mode 100644
index 0000000..6eacd2b
--- /dev/null
+++ b/tests/tar/sparse-files/xstar.tar
Binary files differ
diff --git a/tests/tar/user-group-largenum/8-digit.tar b/tests/tar/user-group-largenum/8-digit.tar
new file mode 100644
index 0000000..a48ea5d
--- /dev/null
+++ b/tests/tar/user-group-largenum/8-digit.tar
Binary files differ
diff --git a/tests/tar/user-group-largenum/gnu.tar b/tests/tar/user-group-largenum/gnu.tar
new file mode 100644
index 0000000..4c30f57
--- /dev/null
+++ b/tests/tar/user-group-largenum/gnu.tar
Binary files differ
diff --git a/tests/tar/user-group-largenum/pax.tar b/tests/tar/user-group-largenum/pax.tar
new file mode 100644
index 0000000..a9fe54c
--- /dev/null
+++ b/tests/tar/user-group-largenum/pax.tar
Binary files differ
diff --git a/tests/tar/user-group-name/pax.tar b/tests/tar/user-group-name/pax.tar
new file mode 100644
index 0000000..d174bc6
--- /dev/null
+++ b/tests/tar/user-group-name/pax.tar
Binary files differ
diff --git a/tests/tar/user-group-name/ustar-32chars.tar b/tests/tar/user-group-name/ustar-32chars.tar
new file mode 100644
index 0000000..3f73778
--- /dev/null
+++ b/tests/tar/user-group-name/ustar-32chars.tar
Binary files differ
diff --git a/tests/tar/xattr/acl.tar b/tests/tar/xattr/acl.tar
new file mode 100644
index 0000000..a65c0af
--- /dev/null
+++ b/tests/tar/xattr/acl.tar
Binary files differ
diff --git a/tests/tar/xattr/fflags-libarchive.tar b/tests/tar/xattr/fflags-libarchive.tar
new file mode 100644
index 0000000..9df3f69
--- /dev/null
+++ b/tests/tar/xattr/fflags-libarchive.tar
Binary files differ
diff --git a/tests/tar/xattr/fflags-schily.tar b/tests/tar/xattr/fflags-schily.tar
new file mode 100644
index 0000000..31a0087
--- /dev/null
+++ b/tests/tar/xattr/fflags-schily.tar
Binary files differ
diff --git a/tests/tar/xattr/xattr-libarchive.tar b/tests/tar/xattr/xattr-libarchive.tar
new file mode 100644
index 0000000..3bd6125
--- /dev/null
+++ b/tests/tar/xattr/xattr-libarchive.tar
Binary files differ
diff --git a/tests/tar/xattr/xattr-schily.tar b/tests/tar/xattr/xattr-schily.tar
new file mode 100644
index 0000000..1cf525c
--- /dev/null
+++ b/tests/tar/xattr/xattr-schily.tar
Binary files differ