1
1
mirror of https://github.com/wader/fq.git synced 2024-10-04 07:27:08 +03:00
fq/format/gzip/testdata/test.fqtest
Mattias Wadman ac276ee119 gzip: Correctly handle multiple members
A gzip file consists of one or more "members" that are concatenated on uncompress.

Introduce a members array with each member and uncompressed is now the concatenation.

Fixes #794
2023-10-24 10:45:32 +02:00

26 lines
2.4 KiB
Plaintext

# echo test | gzip -N > test.gz
$ fq -d gzip dv test.gz
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: test.gz (gzip) 0x0-0x19 (25)
| | | members[0:1]: 0x0-0x19 (25)
| | | [0]{}: member 0x0-0x19 (25)
0x000|1f 8b |.. | identification: raw bits (valid) 0x0-0x2 (2)
0x000| 08 | . | compression_method: "deflate" (8) 0x2-0x3 (1)
| | | flags{}: 0x3-0x4 (1)
0x000| 00 | . | text: false 0x3-0x3.1 (0.1)
0x000| 00 | . | header_crc: false 0x3.1-0x3.2 (0.1)
0x000| 00 | . | extra: false 0x3.2-0x3.3 (0.1)
0x000| 00 | . | name: false 0x3.3-0x3.4 (0.1)
0x000| 00 | . | comment: false 0x3.4-0x3.5 (0.1)
0x000| 00 | . | reserved: 0 0x3.5-0x4 (0.3)
0x000| 41 02 ea 5f | A.._ | mtime: 1609171521 (2020-12-28T16:05:21Z) 0x4-0x8 (4)
0x000| 00 | . | extra_flags: 0 0x8-0x9 (1)
0x000| 03 | . | os: "unix" (3) 0x9-0xa (1)
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|74 65 73 74 0a| |test.| | uncompressed: raw bits 0x0-0x5 (5)
0x000| 2b 49 2d 2e e1 02| +I-...| compressed: raw bits 0xa-0x11 (7)
0x010|00 |. |
0x010| c6 35 b9 3b | .5.; | crc32: 0x3bb935c6 (valid) 0x11-0x15 (4)
0x010| 05 00 00 00| | ....| | isize: 5 0x15-0x19 (4)
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x0|74 65 73 74 0a| |test.| | uncompressed: raw bits 0x0-0x5 (5)