summaryrefslogtreecommitdiffstats
path: root/tests/zipfiles
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-09-14 14:49:39 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-09-14 14:49:39 (GMT)
commite9833540e420da80ee1f57cbde0020ad7233c0a3 (patch)
treec2db1e864ef9ae7ecf7a6b3ef7211c0b9a601053 /tests/zipfiles
parente28353f4c36473ce17523409cca53c6d3dfc2612 (diff)
downloadtcl-e9833540e420da80ee1f57cbde0020ad7233c0a3.zip
tcl-e9833540e420da80ee1f57cbde0020ad7233c0a3.tar.gz
tcl-e9833540e420da80ee1f57cbde0020ad7233c0a3.tar.bz2
Added test files for zipfs
Diffstat (limited to 'tests/zipfiles')
-rw-r--r--tests/zipfiles/LICENSE-libzip31
-rw-r--r--tests/zipfiles/README7
-rw-r--r--tests/zipfiles/broken.zipbin0 -> 75091 bytes
-rw-r--r--tests/zipfiles/incons-cdoffset.zipbin0 -> 153 bytes
-rw-r--r--tests/zipfiles/incons-central-crc.zipbin0 -> 153 bytes
-rw-r--r--tests/zipfiles/incons-central-magic-bad.zipbin0 -> 153 bytes
-rw-r--r--tests/zipfiles/incons-file-count-high.zipbin0 -> 153 bytes
-rw-r--r--tests/zipfiles/incons-file-count-low.zipbin0 -> 304 bytes
-rw-r--r--tests/zipfiles/incons-local-magic-bad.zipbin0 -> 153 bytes
-rw-r--r--tests/zipfiles/junk-at-end.zipbin0 -> 416 bytes
-rw-r--r--tests/zipfiles/junk-at-start.zipbin0 -> 416 bytes
-rw-r--r--tests/zipfiles/streamed.zipbin0 -> 120 bytes
-rw-r--r--tests/zipfiles/test-overlay.zipbin0 -> 498 bytes
-rw-r--r--tests/zipfiles/test-password.zipbin0 -> 956 bytes
-rw-r--r--tests/zipfiles/test-zip-in-zip.zipbin0 -> 665 bytes
-rw-r--r--tests/zipfiles/test.zipbin0 -> 412 bytes
-rw-r--r--tests/zipfiles/testbzip2.zipbin0 -> 175 bytes
-rw-r--r--tests/zipfiles/testdeflated2.zipbin0 -> 270 bytes
-rw-r--r--tests/zipfiles/testfile-UTF8.zipbin0 -> 126 bytes
-rw-r--r--tests/zipfiles/testfile-cp437.zipbin0 -> 130 bytes
-rw-r--r--tests/zipfiles/testfile-lzma.zipbin0 -> 161 bytes
-rw-r--r--tests/zipfiles/testfile-nocompression.zipbin0 -> 122 bytes
-rw-r--r--tests/zipfiles/testfile-xz.zipbin0 -> 200 bytes
-rw-r--r--tests/zipfiles/testfile-zstd.zipbin0 -> 160 bytes
-rw-r--r--tests/zipfiles/teststored.zipbin0 -> 188 bytes
-rw-r--r--tests/zipfiles/zip64.zipbin0 -> 198 bytes
26 files changed, 38 insertions, 0 deletions
diff --git a/tests/zipfiles/LICENSE-libzip b/tests/zipfiles/LICENSE-libzip
new file mode 100644
index 0000000..fa70609
--- /dev/null
+++ b/tests/zipfiles/LICENSE-libzip
@@ -0,0 +1,31 @@
+Copyright (C) 1999-2020 Dieter Baron and Thomas Klausner
+
+The authors can be contacted at <info@libzip.org>
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+3. The names of the authors may not be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tests/zipfiles/README b/tests/zipfiles/README
new file mode 100644
index 0000000..e6c366e
--- /dev/null
+++ b/tests/zipfiles/README
@@ -0,0 +1,7 @@
+The files in this directory are used for testing zipfs file systems.
+They fall under the following licenses:
+
+test-overlay.zip, test-zip-in-zip.zip - Tcl's license
+
+All other files - test files from libzip (https://libzip.org) and are covered by
+the license in LICENSE-libzip. \ No newline at end of file
diff --git a/tests/zipfiles/broken.zip b/tests/zipfiles/broken.zip
new file mode 100644
index 0000000..2008c32
--- /dev/null
+++ b/tests/zipfiles/broken.zip
Binary files differ
diff --git a/tests/zipfiles/incons-cdoffset.zip b/tests/zipfiles/incons-cdoffset.zip
new file mode 100644
index 0000000..153e7a8
--- /dev/null
+++ b/tests/zipfiles/incons-cdoffset.zip
Binary files differ
diff --git a/tests/zipfiles/incons-central-crc.zip b/tests/zipfiles/incons-central-crc.zip
new file mode 100644
index 0000000..1f882ac
--- /dev/null
+++ b/tests/zipfiles/incons-central-crc.zip
Binary files differ
diff --git a/tests/zipfiles/incons-central-magic-bad.zip b/tests/zipfiles/incons-central-magic-bad.zip
new file mode 100644
index 0000000..954563b
--- /dev/null
+++ b/tests/zipfiles/incons-central-magic-bad.zip
Binary files differ
diff --git a/tests/zipfiles/incons-file-count-high.zip b/tests/zipfiles/incons-file-count-high.zip
new file mode 100644
index 0000000..876a886
--- /dev/null
+++ b/tests/zipfiles/incons-file-count-high.zip
Binary files differ
diff --git a/tests/zipfiles/incons-file-count-low.zip b/tests/zipfiles/incons-file-count-low.zip
new file mode 100644
index 0000000..4af9038
--- /dev/null
+++ b/tests/zipfiles/incons-file-count-low.zip
Binary files differ
diff --git a/tests/zipfiles/incons-local-magic-bad.zip b/tests/zipfiles/incons-local-magic-bad.zip
new file mode 100644
index 0000000..9a6a061
--- /dev/null
+++ b/tests/zipfiles/incons-local-magic-bad.zip
Binary files differ
diff --git a/tests/zipfiles/junk-at-end.zip b/tests/zipfiles/junk-at-end.zip
new file mode 100644
index 0000000..30387b3
--- /dev/null
+++ b/tests/zipfiles/junk-at-end.zip
Binary files differ
diff --git a/tests/zipfiles/junk-at-start.zip b/tests/zipfiles/junk-at-start.zip
new file mode 100644
index 0000000..8c98325
--- /dev/null
+++ b/tests/zipfiles/junk-at-start.zip
Binary files differ
diff --git a/tests/zipfiles/streamed.zip b/tests/zipfiles/streamed.zip
new file mode 100644
index 0000000..737d56f
--- /dev/null
+++ b/tests/zipfiles/streamed.zip
Binary files differ
diff --git a/tests/zipfiles/test-overlay.zip b/tests/zipfiles/test-overlay.zip
new file mode 100644
index 0000000..9dc2c52
--- /dev/null
+++ b/tests/zipfiles/test-overlay.zip
Binary files differ
diff --git a/tests/zipfiles/test-password.zip b/tests/zipfiles/test-password.zip
new file mode 100644
index 0000000..bb9780a
--- /dev/null
+++ b/tests/zipfiles/test-password.zip
Binary files differ
diff --git a/tests/zipfiles/test-zip-in-zip.zip b/tests/zipfiles/test-zip-in-zip.zip
new file mode 100644
index 0000000..8797c32
--- /dev/null
+++ b/tests/zipfiles/test-zip-in-zip.zip
Binary files differ
diff --git a/tests/zipfiles/test.zip b/tests/zipfiles/test.zip
new file mode 100644
index 0000000..e4efd71
--- /dev/null
+++ b/tests/zipfiles/test.zip
Binary files differ
diff --git a/tests/zipfiles/testbzip2.zip b/tests/zipfiles/testbzip2.zip
new file mode 100644
index 0000000..7c9a9e7
--- /dev/null
+++ b/tests/zipfiles/testbzip2.zip
Binary files differ
diff --git a/tests/zipfiles/testdeflated2.zip b/tests/zipfiles/testdeflated2.zip
new file mode 100644
index 0000000..b5ded7d
--- /dev/null
+++ b/tests/zipfiles/testdeflated2.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-UTF8.zip b/tests/zipfiles/testfile-UTF8.zip
new file mode 100644
index 0000000..7279615
--- /dev/null
+++ b/tests/zipfiles/testfile-UTF8.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-cp437.zip b/tests/zipfiles/testfile-cp437.zip
new file mode 100644
index 0000000..169a903
--- /dev/null
+++ b/tests/zipfiles/testfile-cp437.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-lzma.zip b/tests/zipfiles/testfile-lzma.zip
new file mode 100644
index 0000000..f855b2a
--- /dev/null
+++ b/tests/zipfiles/testfile-lzma.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-nocompression.zip b/tests/zipfiles/testfile-nocompression.zip
new file mode 100644
index 0000000..2fa5ba0
--- /dev/null
+++ b/tests/zipfiles/testfile-nocompression.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-xz.zip b/tests/zipfiles/testfile-xz.zip
new file mode 100644
index 0000000..6be8f9c
--- /dev/null
+++ b/tests/zipfiles/testfile-xz.zip
Binary files differ
diff --git a/tests/zipfiles/testfile-zstd.zip b/tests/zipfiles/testfile-zstd.zip
new file mode 100644
index 0000000..bf42d3e
--- /dev/null
+++ b/tests/zipfiles/testfile-zstd.zip
Binary files differ
diff --git a/tests/zipfiles/teststored.zip b/tests/zipfiles/teststored.zip
new file mode 100644
index 0000000..138c6ad
--- /dev/null
+++ b/tests/zipfiles/teststored.zip
Binary files differ
diff --git a/tests/zipfiles/zip64.zip b/tests/zipfiles/zip64.zip
new file mode 100644
index 0000000..c1ba76b
--- /dev/null
+++ b/tests/zipfiles/zip64.zip
Binary files differ