aboutsummaryrefslogtreecommitdiff
path: root/tests/libtar/data
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-05 15:53:21 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 22:08:36 +0100
commitb950412ca3a91aa37349cf51ebe98cc84767d448 (patch)
treee3bb062114d019984321a5a21b29818c88c36795 /tests/libtar/data
parent3fc6bf24b5cc071fc323f08ece541e37578f6369 (diff)
Cleanup: add some structure to the test directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libtar/data')
-rw-r--r--tests/libtar/data/CREDITS35
-rw-r--r--tests/libtar/data/file-size/12-digit.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/file-size/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/file-size/pax.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/format-acceptance/gnu-g.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/format-acceptance/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/format-acceptance/link_filled.tarbin0 -> 10240 bytes
-rw-r--r--tests/libtar/data/format-acceptance/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/format-acceptance/ustar-pre-posix.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/format-acceptance/ustar.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/format-acceptance/v7.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/large-mtime/12-digit.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/large-mtime/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/large-mtime/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/long-paths/gnu.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/long-paths/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/long-paths/ustar.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/negative-mtime/gnu.tarbin0 -> 10240 bytes
-rw-r--r--tests/libtar/data/negative-mtime/pax.tarbin0 -> 10240 bytes
-rw-r--r--tests/libtar/data/sparse-files/gnu-small.tarbin0 -> 9728 bytes
-rw-r--r--tests/libtar/data/sparse-files/gnu.tarbin0 -> 34816 bytes
-rw-r--r--tests/libtar/data/sparse-files/pax-gnu0-0.tarbin0 -> 35840 bytes
-rw-r--r--tests/libtar/data/sparse-files/pax-gnu0-1.tarbin0 -> 35328 bytes
-rw-r--r--tests/libtar/data/sparse-files/pax-gnu1-0.tarbin0 -> 35840 bytes
-rw-r--r--tests/libtar/data/sqfs.sha51228
-rw-r--r--tests/libtar/data/user-group-largenum/8-digit.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/user-group-largenum/gnu.tarbin0 -> 2048 bytes
-rw-r--r--tests/libtar/data/user-group-largenum/pax.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/xattr/acl.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/xattr/xattr-libarchive.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/xattr/xattr-schily-binary.tarbin0 -> 3072 bytes
-rw-r--r--tests/libtar/data/xattr/xattr-schily.tarbin0 -> 3072 bytes
32 files changed, 63 insertions, 0 deletions
diff --git a/tests/libtar/data/CREDITS b/tests/libtar/data/CREDITS
new file mode 100644
index 0000000..7a2738f
--- /dev/null
+++ b/tests/libtar/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/tests/libtar/data/file-size/12-digit.tar b/tests/libtar/data/file-size/12-digit.tar
new file mode 100644
index 0000000..a6b3553
--- /dev/null
+++ b/tests/libtar/data/file-size/12-digit.tar
Binary files differ
diff --git a/tests/libtar/data/file-size/gnu.tar b/tests/libtar/data/file-size/gnu.tar
new file mode 100644
index 0000000..aad726f
--- /dev/null
+++ b/tests/libtar/data/file-size/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/file-size/pax.tar b/tests/libtar/data/file-size/pax.tar
new file mode 100644
index 0000000..e391fee
--- /dev/null
+++ b/tests/libtar/data/file-size/pax.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/gnu-g.tar b/tests/libtar/data/format-acceptance/gnu-g.tar
new file mode 100644
index 0000000..a72f60d
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/gnu-g.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/gnu.tar b/tests/libtar/data/format-acceptance/gnu.tar
new file mode 100644
index 0000000..98e8157
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/link_filled.tar b/tests/libtar/data/format-acceptance/link_filled.tar
new file mode 100644
index 0000000..9b80f89
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/link_filled.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/pax.tar b/tests/libtar/data/format-acceptance/pax.tar
new file mode 100644
index 0000000..69a029f
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/pax.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/ustar-pre-posix.tar b/tests/libtar/data/format-acceptance/ustar-pre-posix.tar
new file mode 100644
index 0000000..4230f5f
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/ustar-pre-posix.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/ustar.tar b/tests/libtar/data/format-acceptance/ustar.tar
new file mode 100644
index 0000000..9a6d9b3
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/ustar.tar
Binary files differ
diff --git a/tests/libtar/data/format-acceptance/v7.tar b/tests/libtar/data/format-acceptance/v7.tar
new file mode 100644
index 0000000..5483b4b
--- /dev/null
+++ b/tests/libtar/data/format-acceptance/v7.tar
Binary files differ
diff --git a/tests/libtar/data/large-mtime/12-digit.tar b/tests/libtar/data/large-mtime/12-digit.tar
new file mode 100644
index 0000000..8202b28
--- /dev/null
+++ b/tests/libtar/data/large-mtime/12-digit.tar
Binary files differ
diff --git a/tests/libtar/data/large-mtime/gnu.tar b/tests/libtar/data/large-mtime/gnu.tar
new file mode 100644
index 0000000..4e3dda2
--- /dev/null
+++ b/tests/libtar/data/large-mtime/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/large-mtime/pax.tar b/tests/libtar/data/large-mtime/pax.tar
new file mode 100644
index 0000000..8d32530
--- /dev/null
+++ b/tests/libtar/data/large-mtime/pax.tar
Binary files differ
diff --git a/tests/libtar/data/long-paths/gnu.tar b/tests/libtar/data/long-paths/gnu.tar
new file mode 100644
index 0000000..4eee731
--- /dev/null
+++ b/tests/libtar/data/long-paths/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/long-paths/pax.tar b/tests/libtar/data/long-paths/pax.tar
new file mode 100644
index 0000000..1e63e9c
--- /dev/null
+++ b/tests/libtar/data/long-paths/pax.tar
Binary files differ
diff --git a/tests/libtar/data/long-paths/ustar.tar b/tests/libtar/data/long-paths/ustar.tar
new file mode 100644
index 0000000..812255c
--- /dev/null
+++ b/tests/libtar/data/long-paths/ustar.tar
Binary files differ
diff --git a/tests/libtar/data/negative-mtime/gnu.tar b/tests/libtar/data/negative-mtime/gnu.tar
new file mode 100644
index 0000000..a9b1272
--- /dev/null
+++ b/tests/libtar/data/negative-mtime/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/negative-mtime/pax.tar b/tests/libtar/data/negative-mtime/pax.tar
new file mode 100644
index 0000000..d0b3e6c
--- /dev/null
+++ b/tests/libtar/data/negative-mtime/pax.tar
Binary files differ
diff --git a/tests/libtar/data/sparse-files/gnu-small.tar b/tests/libtar/data/sparse-files/gnu-small.tar
new file mode 100644
index 0000000..7a1b222
--- /dev/null
+++ b/tests/libtar/data/sparse-files/gnu-small.tar
Binary files differ
diff --git a/tests/libtar/data/sparse-files/gnu.tar b/tests/libtar/data/sparse-files/gnu.tar
new file mode 100644
index 0000000..3d641a2
--- /dev/null
+++ b/tests/libtar/data/sparse-files/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/sparse-files/pax-gnu0-0.tar b/tests/libtar/data/sparse-files/pax-gnu0-0.tar
new file mode 100644
index 0000000..628f09e
--- /dev/null
+++ b/tests/libtar/data/sparse-files/pax-gnu0-0.tar
Binary files differ
diff --git a/tests/libtar/data/sparse-files/pax-gnu0-1.tar b/tests/libtar/data/sparse-files/pax-gnu0-1.tar
new file mode 100644
index 0000000..87e362e
--- /dev/null
+++ b/tests/libtar/data/sparse-files/pax-gnu0-1.tar
Binary files differ
diff --git a/tests/libtar/data/sparse-files/pax-gnu1-0.tar b/tests/libtar/data/sparse-files/pax-gnu1-0.tar
new file mode 100644
index 0000000..edb0ccf
--- /dev/null
+++ b/tests/libtar/data/sparse-files/pax-gnu1-0.tar
Binary files differ
diff --git a/tests/libtar/data/sqfs.sha512 b/tests/libtar/data/sqfs.sha512
new file mode 100644
index 0000000..10df2f4
--- /dev/null
+++ b/tests/libtar/data/sqfs.sha512
@@ -0,0 +1,28 @@
+8fcf00ec57c764bd26e2d2c9db7a95acadd96f106ba37395216f0b331a664e8f5f29c70fcab82dc27f61f89237f23f29637930cd4843bfd7a9632d36088034b4 tests/libtar/data/long-paths/gnu.sqfs
+8fcf00ec57c764bd26e2d2c9db7a95acadd96f106ba37395216f0b331a664e8f5f29c70fcab82dc27f61f89237f23f29637930cd4843bfd7a9632d36088034b4 tests/libtar/data/long-paths/pax.sqfs
+8fcf00ec57c764bd26e2d2c9db7a95acadd96f106ba37395216f0b331a664e8f5f29c70fcab82dc27f61f89237f23f29637930cd4843bfd7a9632d36088034b4 tests/libtar/data/long-paths/ustar.sqfs
+9e2241cf26c1457824f3e3c7a0bd2fc1be1e748ec5725afa33acdb63156b948a9db5f7182d00551587d1892565e05742775243be6e7377174f3d21911fdb7d15 tests/libtar/data/sparse-files/gnu-small.sqfs
+5b032c35f80b73f21aef8e9f558c16605676e3e621e927177c4ab0a60ba7441a7501dd21a1c37d43d8432bfa694b6afcbe834a277e2fd8f23315e16bc3cdd86a tests/libtar/data/sparse-files/gnu.sqfs
+5b032c35f80b73f21aef8e9f558c16605676e3e621e927177c4ab0a60ba7441a7501dd21a1c37d43d8432bfa694b6afcbe834a277e2fd8f23315e16bc3cdd86a tests/libtar/data/sparse-files/pax-gnu0-1.sqfs
+5b032c35f80b73f21aef8e9f558c16605676e3e621e927177c4ab0a60ba7441a7501dd21a1c37d43d8432bfa694b6afcbe834a277e2fd8f23315e16bc3cdd86a tests/libtar/data/sparse-files/pax-gnu0-0.sqfs
+5b032c35f80b73f21aef8e9f558c16605676e3e621e927177c4ab0a60ba7441a7501dd21a1c37d43d8432bfa694b6afcbe834a277e2fd8f23315e16bc3cdd86a tests/libtar/data/sparse-files/pax-gnu1-0.sqfs
+1b9525453fb10f266cd7f52300fa2ff586a9b5a1c141da46f72c6370485d4dc7e306f2e778108644cdea6f06ee95a2972325f950ef5fce98bf439db1869c692a tests/libtar/data/large-mtime/12-digit.sqfs
+1b9525453fb10f266cd7f52300fa2ff586a9b5a1c141da46f72c6370485d4dc7e306f2e778108644cdea6f06ee95a2972325f950ef5fce98bf439db1869c692a tests/libtar/data/large-mtime/gnu.sqfs
+1b9525453fb10f266cd7f52300fa2ff586a9b5a1c141da46f72c6370485d4dc7e306f2e778108644cdea6f06ee95a2972325f950ef5fce98bf439db1869c692a tests/libtar/data/large-mtime/pax.sqfs
+b43a83dcd5c9ccef1272caa1c9828e7401d3c19579def2caf9f51e814190662d19fbd0ee0c5c20d02e2d404533c593e5d8a549ac18509ce5e829c33cf6c272b0 tests/libtar/data/negative-mtime/gnu.sqfs
+b43a83dcd5c9ccef1272caa1c9828e7401d3c19579def2caf9f51e814190662d19fbd0ee0c5c20d02e2d404533c593e5d8a549ac18509ce5e829c33cf6c272b0 tests/libtar/data/negative-mtime/pax.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/gnu-g.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/gnu.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/ustar-pre-posix.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/v7.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/pax.sqfs
+d7fd043c8c4614b6b8b430ef8c56fcf35417d6886a3679762b83afcbfa231c9169b514d1da8880e54303df749e0267a606dd3631b4e91bb7cf91d8e71f329687 tests/libtar/data/format-acceptance/ustar.sqfs
+2f41b640b8aeec7f5e489fbbeef22bac118c8b1cb068b795433bb6e2f8e9a1ff4f11654e9617b9547ff34b4da7b8e660afcbe69cf630bc112c63693fc56d4e3e tests/libtar/data/format-acceptance/link_filled.sqfs
+f97561018def03e8af41c3b479925052469d4a15645886c500a60a5caa835a1ad152b4e72912df52bde29e3645d6bda46002dd91982c3bc91ff844b5724d0917 tests/libtar/data/user-group-largenum/gnu.sqfs
+b34d720e04bb7c1fb93c9c3520aa1c653992f9b80339de2416097d95603ab7bbc02ea46300823ec3808c0cfe37ed7477f110ac2eb0fd791832a93f3e5c8a1500 tests/libtar/data/user-group-largenum/8-digit.sqfs
+f97561018def03e8af41c3b479925052469d4a15645886c500a60a5caa835a1ad152b4e72912df52bde29e3645d6bda46002dd91982c3bc91ff844b5724d0917 tests/libtar/data/user-group-largenum/pax.sqfs
+2dcfaace3235719558d93ed5a0f3e59fc10ab91f070add8ac8f7c4e6bcf5356942ff9db0fea5d8223280863c6e7b216b218b15dc8a2f61d2d42b62ea605cd0d5 tests/libtar/data/xattr/xattr-schily-binary.sqfs
+273eb1af519f01f116fd0017f6016d50474fe94e596bda8f3e2467e7dd5741fb45fb7df8830d9e62112a24ce8f8a40f8afa6783459ec04f4c0004ca40a050c49 tests/libtar/data/xattr/xattr-schily.sqfs
+273eb1af519f01f116fd0017f6016d50474fe94e596bda8f3e2467e7dd5741fb45fb7df8830d9e62112a24ce8f8a40f8afa6783459ec04f4c0004ca40a050c49 tests/libtar/data/xattr/xattr-libarchive.sqfs
+dabba481b7e0d6888c1cb429eca304aac3c39146910ab0160179947de5ee3b68b5dcca2be3aff4536343357c6c48733f22b26cee1c2d4ff000c2edc276f2c235 tests/libtar/data/xattr/acl.sqfs
+a050ee2a296900bcb06d9616d06b1d947d9f26f0b57d6aff318c3dc656810c919f63a24144f890a4fae60268fda19becf9021182f1c0afd8acc0874e720f720e tests/tar2sqfs/root-becomes.sqfs
diff --git a/tests/libtar/data/user-group-largenum/8-digit.tar b/tests/libtar/data/user-group-largenum/8-digit.tar
new file mode 100644
index 0000000..a48ea5d
--- /dev/null
+++ b/tests/libtar/data/user-group-largenum/8-digit.tar
Binary files differ
diff --git a/tests/libtar/data/user-group-largenum/gnu.tar b/tests/libtar/data/user-group-largenum/gnu.tar
new file mode 100644
index 0000000..4c30f57
--- /dev/null
+++ b/tests/libtar/data/user-group-largenum/gnu.tar
Binary files differ
diff --git a/tests/libtar/data/user-group-largenum/pax.tar b/tests/libtar/data/user-group-largenum/pax.tar
new file mode 100644
index 0000000..a9fe54c
--- /dev/null
+++ b/tests/libtar/data/user-group-largenum/pax.tar
Binary files differ
diff --git a/tests/libtar/data/xattr/acl.tar b/tests/libtar/data/xattr/acl.tar
new file mode 100644
index 0000000..a65c0af
--- /dev/null
+++ b/tests/libtar/data/xattr/acl.tar
Binary files differ
diff --git a/tests/libtar/data/xattr/xattr-libarchive.tar b/tests/libtar/data/xattr/xattr-libarchive.tar
new file mode 100644
index 0000000..3bd6125
--- /dev/null
+++ b/tests/libtar/data/xattr/xattr-libarchive.tar
Binary files differ
diff --git a/tests/libtar/data/xattr/xattr-schily-binary.tar b/tests/libtar/data/xattr/xattr-schily-binary.tar
new file mode 100644
index 0000000..0312807
--- /dev/null
+++ b/tests/libtar/data/xattr/xattr-schily-binary.tar
Binary files differ
diff --git a/tests/libtar/data/xattr/xattr-schily.tar b/tests/libtar/data/xattr/xattr-schily.tar
new file mode 100644
index 0000000..1cf525c
--- /dev/null
+++ b/tests/libtar/data/xattr/xattr-schily.tar
Binary files differ