diff options
author | Puck Meerburg <puck@puck.moe> | 2020-12-14 12:37:30 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-12-14 07:39:21 -0600 |
commit | 640b1bea8b2ffafab024b5966f618a9de56a44f2 (patch) | |
tree | 49642dba53881473cd80ba88b799c3911074e288 /tests | |
parent | 74461ba2eeb0d77205c732419ab5ce5832b1caca (diff) | |
download | toybox-640b1bea8b2ffafab024b5966f618a9de56a44f2.tar.gz |
Add test for FEXTRA flag on gunzip
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gunzip.test | 7 |
1 files changed, 7 insertions, 0 deletions
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 |