From 560cf8c7ebd3feff6244a381a300cb2bac8570ec Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 3 Aug 2016 16:21:53 +0200 Subject: [PATCH] gzip: add test that checks that -9 compresses better than -1 Signed-off-by: Natanael Copa Signed-off-by: Denys Vlasenko --- testsuite/gzip/gzip-compression-levels | 5 +++++ 1 file changed, 5 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 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 -- 2.25.1