[git commit] gzip: add test that checks that -9 compresses better than -1

Denys Vlasenko vda.linux at googlemail.com
Sun Aug 14 23:31:17 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=560cf8c7ebd3feff6244a381a300cb2bac8570ec
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/gzip/gzip-compression-levels | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/gzip/gzip-compression-levels b/testsuite/gzip/gzip-compression-levels
new file mode 100644
index 0000000..6d9a13d
--- /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


More information about the busybox-cvs mailing list