From 2a941d1c1efa6f392aafcc2e8b442e39a9cb214c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 24 Jun 2019 10:24:48 +0200 Subject: Import tar reader test cases Signed-off-by: David Oberhollenzer --- tests/tar/CREDITS | 19 +++++++++++++++++++ tests/tar/file-size/12-digit.tar.gz.gz | Bin 0 -> 99861 bytes tests/tar/file-size/ZIPBOMB-WARNING | 6 ++++++ tests/tar/file-size/gnu.tar.gz.gz | Bin 0 -> 99827 bytes tests/tar/file-size/pax.tar.gz.gz | Bin 0 -> 100215 bytes tests/tar/format-acceptance/gnu-g.tar | Bin 0 -> 2048 bytes tests/tar/format-acceptance/gnu.tar | Bin 0 -> 2048 bytes tests/tar/format-acceptance/pax.tar | Bin 0 -> 3072 bytes tests/tar/format-acceptance/star.tar | Bin 0 -> 2048 bytes tests/tar/format-acceptance/suntar.tar | Bin 0 -> 3072 bytes tests/tar/format-acceptance/ustar-pre-posix.tar | Bin 0 -> 2048 bytes tests/tar/format-acceptance/ustar.tar | Bin 0 -> 2048 bytes tests/tar/format-acceptance/v7.tar | Bin 0 -> 2048 bytes tests/tar/large-mtime/12-digit.tar | Bin 0 -> 2048 bytes tests/tar/large-mtime/gnu.tar | Bin 0 -> 2048 bytes tests/tar/large-mtime/pax.tar | Bin 0 -> 3072 bytes tests/tar/long-paths/gnu.tar | Bin 0 -> 3072 bytes tests/tar/long-paths/pax.tar | Bin 0 -> 3072 bytes tests/tar/long-paths/star.tar | Bin 0 -> 2048 bytes tests/tar/long-paths/ustar.tar | Bin 0 -> 2048 bytes tests/tar/negative-mtime/gnu.tar | Bin 0 -> 10240 bytes tests/tar/negative-mtime/pax.tar | Bin 0 -> 10240 bytes tests/tar/sparse-files/gnu-small.tar | Bin 0 -> 9728 bytes tests/tar/sparse-files/gnu.tar | Bin 0 -> 34816 bytes tests/tar/sparse-files/pax-gnu0-0.tar | Bin 0 -> 35840 bytes tests/tar/sparse-files/pax-gnu0-1.tar | Bin 0 -> 35328 bytes tests/tar/sparse-files/pax-gnu1-0.tar | Bin 0 -> 35840 bytes tests/tar/sparse-files/star.tar | Bin 0 -> 40960 bytes tests/tar/sparse-files/xstar.tar | Bin 0 -> 40960 bytes tests/tar/user-group-largenum/8-digit.tar | Bin 0 -> 2048 bytes tests/tar/user-group-largenum/gnu.tar | Bin 0 -> 2048 bytes tests/tar/user-group-largenum/pax.tar | Bin 0 -> 3072 bytes tests/tar/user-group-name/pax.tar | Bin 0 -> 3072 bytes tests/tar/user-group-name/ustar-32chars.tar | Bin 0 -> 2048 bytes tests/tar/xattr/acl.tar | Bin 0 -> 3072 bytes tests/tar/xattr/fflags-libarchive.tar | Bin 0 -> 3072 bytes tests/tar/xattr/fflags-schily.tar | Bin 0 -> 4608 bytes tests/tar/xattr/xattr-libarchive.tar | Bin 0 -> 3072 bytes tests/tar/xattr/xattr-schily.tar | Bin 0 -> 3072 bytes 39 files changed, 25 insertions(+) create mode 100644 tests/tar/CREDITS create mode 100644 tests/tar/file-size/12-digit.tar.gz.gz create mode 100644 tests/tar/file-size/ZIPBOMB-WARNING create mode 100644 tests/tar/file-size/gnu.tar.gz.gz create mode 100644 tests/tar/file-size/pax.tar.gz.gz create mode 100644 tests/tar/format-acceptance/gnu-g.tar create mode 100644 tests/tar/format-acceptance/gnu.tar create mode 100644 tests/tar/format-acceptance/pax.tar create mode 100644 tests/tar/format-acceptance/star.tar create mode 100644 tests/tar/format-acceptance/suntar.tar create mode 100644 tests/tar/format-acceptance/ustar-pre-posix.tar create mode 100644 tests/tar/format-acceptance/ustar.tar create mode 100644 tests/tar/format-acceptance/v7.tar create mode 100644 tests/tar/large-mtime/12-digit.tar create mode 100644 tests/tar/large-mtime/gnu.tar create mode 100644 tests/tar/large-mtime/pax.tar create mode 100644 tests/tar/long-paths/gnu.tar create mode 100644 tests/tar/long-paths/pax.tar create mode 100644 tests/tar/long-paths/star.tar create mode 100644 tests/tar/long-paths/ustar.tar create mode 100644 tests/tar/negative-mtime/gnu.tar create mode 100644 tests/tar/negative-mtime/pax.tar create mode 100644 tests/tar/sparse-files/gnu-small.tar create mode 100644 tests/tar/sparse-files/gnu.tar create mode 100644 tests/tar/sparse-files/pax-gnu0-0.tar create mode 100644 tests/tar/sparse-files/pax-gnu0-1.tar create mode 100644 tests/tar/sparse-files/pax-gnu1-0.tar create mode 100644 tests/tar/sparse-files/star.tar create mode 100644 tests/tar/sparse-files/xstar.tar create mode 100644 tests/tar/user-group-largenum/8-digit.tar create mode 100644 tests/tar/user-group-largenum/gnu.tar create mode 100644 tests/tar/user-group-largenum/pax.tar create mode 100644 tests/tar/user-group-name/pax.tar create mode 100644 tests/tar/user-group-name/ustar-32chars.tar create mode 100644 tests/tar/xattr/acl.tar create mode 100644 tests/tar/xattr/fflags-libarchive.tar create mode 100644 tests/tar/xattr/fflags-schily.tar create mode 100644 tests/tar/xattr/xattr-libarchive.tar create mode 100644 tests/tar/xattr/xattr-schily.tar (limited to 'tests/tar') 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 Binary files /dev/null and b/tests/tar/file-size/12-digit.tar.gz.gz 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 Binary files /dev/null and b/tests/tar/file-size/gnu.tar.gz.gz 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 Binary files /dev/null and b/tests/tar/file-size/pax.tar.gz.gz 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 Binary files /dev/null and b/tests/tar/format-acceptance/gnu-g.tar differ diff --git a/tests/tar/format-acceptance/gnu.tar b/tests/tar/format-acceptance/gnu.tar new file mode 100644 index 0000000..98e8157 Binary files /dev/null and b/tests/tar/format-acceptance/gnu.tar differ diff --git a/tests/tar/format-acceptance/pax.tar b/tests/tar/format-acceptance/pax.tar new file mode 100644 index 0000000..69a029f Binary files /dev/null and b/tests/tar/format-acceptance/pax.tar differ diff --git a/tests/tar/format-acceptance/star.tar b/tests/tar/format-acceptance/star.tar new file mode 100644 index 0000000..0c24ae5 Binary files /dev/null and b/tests/tar/format-acceptance/star.tar differ diff --git a/tests/tar/format-acceptance/suntar.tar b/tests/tar/format-acceptance/suntar.tar new file mode 100644 index 0000000..8b2d73b Binary files /dev/null and b/tests/tar/format-acceptance/suntar.tar 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 Binary files /dev/null and b/tests/tar/format-acceptance/ustar-pre-posix.tar differ diff --git a/tests/tar/format-acceptance/ustar.tar b/tests/tar/format-acceptance/ustar.tar new file mode 100644 index 0000000..9a6d9b3 Binary files /dev/null and b/tests/tar/format-acceptance/ustar.tar differ diff --git a/tests/tar/format-acceptance/v7.tar b/tests/tar/format-acceptance/v7.tar new file mode 100644 index 0000000..5483b4b Binary files /dev/null and b/tests/tar/format-acceptance/v7.tar 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 Binary files /dev/null and b/tests/tar/large-mtime/12-digit.tar differ diff --git a/tests/tar/large-mtime/gnu.tar b/tests/tar/large-mtime/gnu.tar new file mode 100644 index 0000000..4e3dda2 Binary files /dev/null and b/tests/tar/large-mtime/gnu.tar differ diff --git a/tests/tar/large-mtime/pax.tar b/tests/tar/large-mtime/pax.tar new file mode 100644 index 0000000..8d32530 Binary files /dev/null and b/tests/tar/large-mtime/pax.tar differ diff --git a/tests/tar/long-paths/gnu.tar b/tests/tar/long-paths/gnu.tar new file mode 100644 index 0000000..4eee731 Binary files /dev/null and b/tests/tar/long-paths/gnu.tar differ diff --git a/tests/tar/long-paths/pax.tar b/tests/tar/long-paths/pax.tar new file mode 100644 index 0000000..1e63e9c Binary files /dev/null and b/tests/tar/long-paths/pax.tar differ diff --git a/tests/tar/long-paths/star.tar b/tests/tar/long-paths/star.tar new file mode 100644 index 0000000..ed94d48 Binary files /dev/null and b/tests/tar/long-paths/star.tar differ diff --git a/tests/tar/long-paths/ustar.tar b/tests/tar/long-paths/ustar.tar new file mode 100644 index 0000000..812255c Binary files /dev/null and b/tests/tar/long-paths/ustar.tar differ diff --git a/tests/tar/negative-mtime/gnu.tar b/tests/tar/negative-mtime/gnu.tar new file mode 100644 index 0000000..a9b1272 Binary files /dev/null and b/tests/tar/negative-mtime/gnu.tar differ diff --git a/tests/tar/negative-mtime/pax.tar b/tests/tar/negative-mtime/pax.tar new file mode 100644 index 0000000..d0b3e6c Binary files /dev/null and b/tests/tar/negative-mtime/pax.tar 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 Binary files /dev/null and b/tests/tar/sparse-files/gnu-small.tar differ diff --git a/tests/tar/sparse-files/gnu.tar b/tests/tar/sparse-files/gnu.tar new file mode 100644 index 0000000..3d641a2 Binary files /dev/null and b/tests/tar/sparse-files/gnu.tar 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 Binary files /dev/null and b/tests/tar/sparse-files/pax-gnu0-0.tar 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 Binary files /dev/null and b/tests/tar/sparse-files/pax-gnu0-1.tar 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 Binary files /dev/null and b/tests/tar/sparse-files/pax-gnu1-0.tar differ diff --git a/tests/tar/sparse-files/star.tar b/tests/tar/sparse-files/star.tar new file mode 100644 index 0000000..254ad97 Binary files /dev/null and b/tests/tar/sparse-files/star.tar differ diff --git a/tests/tar/sparse-files/xstar.tar b/tests/tar/sparse-files/xstar.tar new file mode 100644 index 0000000..6eacd2b Binary files /dev/null and b/tests/tar/sparse-files/xstar.tar 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 Binary files /dev/null and b/tests/tar/user-group-largenum/8-digit.tar 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 Binary files /dev/null and b/tests/tar/user-group-largenum/gnu.tar 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 Binary files /dev/null and b/tests/tar/user-group-largenum/pax.tar 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 Binary files /dev/null and b/tests/tar/user-group-name/pax.tar 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 Binary files /dev/null and b/tests/tar/user-group-name/ustar-32chars.tar differ diff --git a/tests/tar/xattr/acl.tar b/tests/tar/xattr/acl.tar new file mode 100644 index 0000000..a65c0af Binary files /dev/null and b/tests/tar/xattr/acl.tar differ diff --git a/tests/tar/xattr/fflags-libarchive.tar b/tests/tar/xattr/fflags-libarchive.tar new file mode 100644 index 0000000..9df3f69 Binary files /dev/null and b/tests/tar/xattr/fflags-libarchive.tar differ diff --git a/tests/tar/xattr/fflags-schily.tar b/tests/tar/xattr/fflags-schily.tar new file mode 100644 index 0000000..31a0087 Binary files /dev/null and b/tests/tar/xattr/fflags-schily.tar differ diff --git a/tests/tar/xattr/xattr-libarchive.tar b/tests/tar/xattr/xattr-libarchive.tar new file mode 100644 index 0000000..3bd6125 Binary files /dev/null and b/tests/tar/xattr/xattr-libarchive.tar differ diff --git a/tests/tar/xattr/xattr-schily.tar b/tests/tar/xattr/xattr-schily.tar new file mode 100644 index 0000000..1cf525c Binary files /dev/null and b/tests/tar/xattr/xattr-schily.tar differ -- cgit v1.2.3