From 3d8415151b67ac1df1ecb370ad0ab9c808d004f0 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 28 Jun 2019 11:32:50 +0200 Subject: Add test case for tar large file size support Signed-off-by: David Oberhollenzer --- tests/tar/CREDITS | 3 +++ tests/tar/file-size/12-digit.tar | Bin 0 -> 2048 bytes tests/tar/file-size/12-digit.tar.gz.gz | Bin 99861 -> 0 bytes tests/tar/file-size/ZIPBOMB-WARNING | 6 ------ tests/tar/file-size/gnu.tar | Bin 0 -> 2048 bytes tests/tar/file-size/gnu.tar.gz.gz | Bin 99827 -> 0 bytes tests/tar/file-size/pax.tar | Bin 0 -> 2048 bytes tests/tar/file-size/pax.tar.gz.gz | Bin 100215 -> 0 bytes 8 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 tests/tar/file-size/12-digit.tar delete mode 100644 tests/tar/file-size/12-digit.tar.gz.gz delete mode 100644 tests/tar/file-size/ZIPBOMB-WARNING create mode 100644 tests/tar/file-size/gnu.tar delete mode 100644 tests/tar/file-size/gnu.tar.gz.gz create mode 100644 tests/tar/file-size/pax.tar delete mode 100644 tests/tar/file-size/pax.tar.gz.gz (limited to 'tests/tar') diff --git a/tests/tar/CREDITS b/tests/tar/CREDITS index 32014fc..e4b19b4 100644 --- a/tests/tar/CREDITS +++ b/tests/tar/CREDITS @@ -20,3 +20,6 @@ for those features: - longe user + group names - sun tar samples - star samples + +In addition to that, the files in "file-size" are truncated, since we are only +interested in parsing the header. diff --git a/tests/tar/file-size/12-digit.tar b/tests/tar/file-size/12-digit.tar new file mode 100644 index 0000000..a6b3553 Binary files /dev/null and b/tests/tar/file-size/12-digit.tar differ diff --git a/tests/tar/file-size/12-digit.tar.gz.gz b/tests/tar/file-size/12-digit.tar.gz.gz deleted file mode 100644 index aaa69e3..0000000 Binary files a/tests/tar/file-size/12-digit.tar.gz.gz and /dev/null differ diff --git a/tests/tar/file-size/ZIPBOMB-WARNING b/tests/tar/file-size/ZIPBOMB-WARNING deleted file mode 100644 index e530637..0000000 --- a/tests/tar/file-size/ZIPBOMB-WARNING +++ /dev/null @@ -1,6 +0,0 @@ -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 b/tests/tar/file-size/gnu.tar new file mode 100644 index 0000000..aad726f Binary files /dev/null and b/tests/tar/file-size/gnu.tar differ diff --git a/tests/tar/file-size/gnu.tar.gz.gz b/tests/tar/file-size/gnu.tar.gz.gz deleted file mode 100644 index 6ae4342..0000000 Binary files a/tests/tar/file-size/gnu.tar.gz.gz and /dev/null differ diff --git a/tests/tar/file-size/pax.tar b/tests/tar/file-size/pax.tar new file mode 100644 index 0000000..e391fee Binary files /dev/null and b/tests/tar/file-size/pax.tar differ diff --git a/tests/tar/file-size/pax.tar.gz.gz b/tests/tar/file-size/pax.tar.gz.gz deleted file mode 100644 index 7c887d6..0000000 Binary files a/tests/tar/file-size/pax.tar.gz.gz and /dev/null differ -- cgit v1.2.3