busybox/testsuite/gzip/gzip-compression-levels
Natanael Copa 560cf8c7eb 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>
2016-08-15 01:31:17 +02:00

6 lines
172 B
Plaintext

# 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