[PATCH 2/2] gzip: add test that checks that -9 compresses better than -1

Natanael Copa ncopa at alpinelinux.org
Wed Aug 3 14:21:53 UTC 2016


Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
 testsuite/gzip/gzip-compression-levels | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 testsuite/gzip/gzip-compression-levels

diff --git a/testsuite/gzip/gzip-compression-levels b/testsuite/gzip/gzip-compression-levels
new file mode 100644
index 0000000..36289e6
--- /dev/null
+++ b/testsuite/gzip/gzip-compression-levels
@@ -0,0 +1,3 @@
+level1=$(busybox gzip -c -1 $(which busybox) | wc -c)
+level9=$(busybox gzip -c -9 $(which busybox) | wc -c)
+test $level1 -gt $level9
-- 
2.9.1



More information about the busybox mailing list