summaryrefslogtreecommitdiff
authorNatanael Copa <ncopa@alpinelinux.org>2016-08-03 14:21:53 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2016-08-14 23:31:17 (GMT)
commit560cf8c7ebd3feff6244a381a300cb2bac8570ec (patch)
treec59e3a17c62ee9f87808783e53c438bd1b8755a3
parent71cfbce655bcfa6d3e0154d441a33d3bfd1dca57 (diff)
downloadbusybox-560cf8c7ebd3feff6244a381a300cb2bac8570ec.zip
busybox-560cf8c7ebd3feff6244a381a300cb2bac8570ec.tar.gz
busybox-560cf8c7ebd3feff6244a381a300cb2bac8570ec.tar.bz2
gzip: add test that checks that -9 compresses better than -1
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--testsuite/gzip/gzip-compression-levels5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/gzip/gzip-compression-levels b/testsuite/gzip/gzip-compression-levels
new file mode 100644
index 0000000..6d9a13d
--- a/dev/null
+++ b/testsuite/gzip/gzip-compression-levels
@@ -0,0 +1,5 @@
+# FEATURE: CONFIG_FEATURE_GZIP_LEVELS
+
+level1=$(busybox gzip -c -1 $(which busybox) | wc -c)
+level9=$(busybox gzip -c -9 $(which busybox) | wc -c)
+test $level1 -gt $level9