From: Natanael Copa Date: Wed, 3 Aug 2016 14:21:53 +0000 (+0200) Subject: gzip: add test that checks that -9 compresses better than -1 X-Git-Tag: 1_26_0~302 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=560cf8c7ebd3feff6244a381a300cb2bac8570ec;p=oweals%2Fbusybox.git gzip: add test that checks that -9 compresses better than -1 Signed-off-by: Natanael Copa Signed-off-by: Denys Vlasenko --- diff --git a/testsuite/gzip/gzip-compression-levels b/testsuite/gzip/gzip-compression-levels new file mode 100644 index 000000000..6d9a13d08 --- /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