Home | History | Annotate | only in /src/tests/usr.bin/gzip
History log of /src/tests/usr.bin/gzip
RevisionDateAuthorComments
 1.1 17-Mar-2012  jruoho branches: 1.1.2;
Deprecate tests/util.
 1.1.2.2 17-Apr-2012  yamt sync with head
 1.1.2.1 17-Mar-2012  yamt file Makefile was added on branch yamt-pagecache on 2012-04-17 00:09:19 +0000
 1.5 10-Jan-2026  mrg fix gzip -d on a xz file (worked fine for pipe).

add test cases for testing all the various types of decompression from file.
 1.4 15-Oct-2024  martin branches: 1.4.2;
Drop root requirement and dependency on the games set being installed.
 1.3 15-Oct-2024  martin The lzip test requires root (it tries to archive /usr/games/hide)
and the lzip binary (obviously).
 1.2 14-Oct-2024  christos Add a test for PR/58223
 1.1 17-Mar-2012  jruoho branches: 1.1.2; 1.1.36; 1.1.44; 1.1.46;
Deprecate tests/util.
 1.1.46.1 02-Aug-2025  perseant Sync with HEAD
 1.1.44.2 16-Oct-2024  martin Additionally pull up following revision(s) (requested by rin in ticket #979):

tests/usr.bin/gzip/t_gzip.sh: revision 1.3
tests/usr.bin/gzip/t_gzip.sh: revision 1.4

The lzip test requires root (it tries to archive /usr/games/hide)
and the lzip binary (obviously).

Drop root requirement and dependency on the games set being installed.
 1.1.44.1 14-Oct-2024  martin Pull up following revision(s) (requested by christos in ticket #979):

usr.bin/gzip/unlz.c: revision 1.10
usr.bin/gzip/unlz.c: revision 1.9
usr.bin/gzip/unxz.c: revision 1.9
tests/usr.bin/gzip/t_gzip.sh: revision 1.2

PR/58223: RVP: Don't write to stdout when testing.

PR/58233: RVP: Fix lzip dictionary size calculation

Add a test for PR/58223
 1.1.36.2 16-Oct-2024  martin Additionally pull up following revision(s) (requested by rin in ticket #1913):

tests/usr.bin/gzip/t_gzip.sh: revision 1.3
tests/usr.bin/gzip/t_gzip.sh: revision 1.4

The lzip test requires root (it tries to archive /usr/games/hide)
and the lzip binary (obviously).

Drop root requirement and dependency on the games set being installed.
 1.1.36.1 14-Oct-2024  martin Pull up following revision(s) (requested by christos in ticket #1913):

usr.bin/gzip/unlz.c: revision 1.10
usr.bin/gzip/unlz.c: revision 1.9
usr.bin/gzip/unxz.c: revision 1.9
tests/usr.bin/gzip/t_gzip.sh: revision 1.2

PR/58223: RVP: Don't write to stdout when testing.

PR/58233: RVP: Fix lzip dictionary size calculation

Add a test for PR/58223
 1.1.2.2 17-Apr-2012  yamt sync with head
 1.1.2.1 17-Mar-2012  yamt file t_gzip.sh was added on branch yamt-pagecache on 2012-04-17 00:09:19 +0000
 1.4.2.1 22-Jan-2026  martin Pull up following revision(s) (requested by mrg in ticket #146):

usr.bin/gzip/unpack.c: revision 1.5
usr.bin/gzip/gzip.c: revision 1.128
usr.bin/gzip/unpack.c: revision 1.6
usr.bin/gzip/gzip.c: revision 1.129
usr.bin/gzip/unlz.c: revision 1.11
usr.bin/gzip/gzip.1: revision 1.33
tests/usr.bin/gzip/t_gzip.sh: revision 1.5
usr.bin/gzip/unxz.c: revision 1.10
usr.bin/gzip/unxz.c: revision 1.11

avoid small reads when there's a preferred IO size.

a discussion on port-sparc here:

https://mail-index.netbsd.org/port-sparc/2025/12/29/msg003063.html

showed that the "file type" 4-byte read was failing on tape devices
as they need a specific IO size to work.

since we already pass this 4 bytes to the real decompressor, avoid this
problem by checking if there's a st_blksize value from stat(2) and use
a buffer of that size for the first read.

rename handle_stdin() to handle_fd_decomp() and use the same backend
for stdin as well as readable non-file files (device, fifo, socket).

tested by Nobuyoshi SATO on port-sparc, atf, and a few other manual
things.

gzip: finally support --ascii and --license for GNU compat.

fix problems introduced by larger pre/prelen buffers.
avoid copying more than buffers can take, and restructure some things
to allow consuming the pre buffer later.
should fix problems with anita and automated testing, that i did not
see since i use gzip sets, not xz sets.

the lz decompressor is still broken, and will need a funopen(3) change
similar to how zuncompress version works today.

tested on a bunch of inputs, though i was unable to find old "pack"d
files to properly test, i was able to confirm it acts the same on a
corrupted pack file i have.

make gzip -d on lz files work again, and fix gzip -t on packed files.

fix gzip -d on a xz file (worked fine for pipe).

add test cases for testing all the various types of decompression from file.

RSS XML Feed