aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoeky <joeky5888@gmail.com>2020-03-30 08:42:03 +0800
committerRob Landley <rob@landley.net>2020-03-29 20:46:09 -0500
commitc6c7fac0ad99833d56119595d9b3af0191c3407b (patch)
treeb82eed20225d307640695384c07798ba83148eab /tests
parent3db8e5ea3066565bf70d3e1711818e3b3b5de273 (diff)
downloadtoybox-c6c7fac0ad99833d56119595d9b3af0191c3407b.tar.gz
file: add 7z test file
Diffstat (limited to 'tests')
-rwxr-xr-xtests/file.test2
-rw-r--r--tests/files/tar/tar.7zbin0 -> 112 bytes
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/file.test b/tests/file.test
index 66c5b7ed..c5eff3eb 100755
--- a/tests/file.test
+++ b/tests/file.test
@@ -31,6 +31,8 @@ testing "gzip data" "file $FILES/tar/tar.tgz | sed 's|$FILES/||'" \
"tar/tar.tgz: gzip compressed data\n" "" ""
testing "bzip2 data" "file $FILES/tar/tar.tbz2 | sed 's|$FILES/||'" \
"tar/tar.tbz2: bzip2 compressed data, block size = 900k\n" "" ""
+testing "7z file" "file $FILES/tar/tar.7z | sed 's|$FILES/||'" \
+ "tar/tar.7z: 7-zip archive data, version 0.4\n" "" ""
testing "zip file" "file $FILES/zip/example.zip | sed 's|$FILES/||'" \
"zip/example.zip: Zip archive data, requires at least v1.0 to extract\n" "" ""
diff --git a/tests/files/tar/tar.7z b/tests/files/tar/tar.7z
new file mode 100644
index 00000000..f438f515
--- /dev/null
+++ b/tests/files/tar/tar.7z
Binary files differ