From 640b1bea8b2ffafab024b5966f618a9de56a44f2 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Mon, 14 Dec 2020 12:37:30 +0000 Subject: Add test for FEXTRA flag on gunzip --- tests/gunzip.test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/gunzip.test b/tests/gunzip.test index 9f9ef5eb..bf9b9834 100644 --- a/tests/gunzip.test +++ b/tests/gunzip.test @@ -21,6 +21,13 @@ testing "no files (stdin to stdout)" "cat f.gz | gunzip > f && test -f f.gz && cat f" "hello world\n" "" "" rm -f f f.gz +# test FEXTRA support +echo "1f8b08040000000000ff04000000ffff4bcbcfe70200a865327e04000000" | xxd -r -p > f1.gz +testing "FEXTRA flag skipped properly" "gunzip f1.gz && + ! test -f f1.gz && test -f f1 && + cat f1" "foo\n" "" "" +rm -f f1 f1.gz + # -c Output to stdout echo -n "foo " | gzip > f1.gz echo "bar" | gzip > f2.gz -- cgit v1.2.3