History log of /freebsd/usr.bin/uniq/tests/uniq_test.sh (Results 1 – 5 of 5)
Revision Date Author Comments
# d9220f64 14-Jun-2024 Mark Johnston <markj@FreeBSD.org>

uniq tests: Make uniq_test:stdout more reliable

When running regression tests in paralle, this one occasionally fails
because uniq exits with status 0. I believe this is because the test is
a bit r

uniq tests: Make uniq_test:stdout more reliable

When running regression tests in paralle, this one occasionally fails
because uniq exits with status 0. I believe this is because the test is
a bit racy: it assumes that true(1) will exit before uniq writes to
standard out.

Just sleep for a bit to give the other end of the pipe to exit.

Reviewed by: des
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45534

show more ...


# 899837e8 12-Jan-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

uniq: Error out if writing to the output failed.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D43407


# e2ec8ee0 12-Jan-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

uniq: Clean up and test obsolete options.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D43402


# 11715600 12-Jan-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

uniq: Fix interactive use.

Output a line as soon as it is possible to determine that it will have
to be output. For the basic case, this means output each line as it is
read unless it is identical

uniq: Fix interactive use.

Output a line as soon as it is possible to determine that it will have
to be output. For the basic case, this means output each line as it is
read unless it is identical to the previous one. For the -d case, it
means output the first instance as soon as the second is read, unless
the -c option was also given. The -D and -u cases were already fine.

Add test cases for interactive use with no options and with -d.

Explicitly ignore -d when -D is also specified.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: rew, kevans
Differential Revision: https://reviews.freebsd.org/D43382

show more ...


# e762fd81 12-Jan-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

uniq: Replace NetBSD's unit tests with our own.

These new tests cover more functionality and are easier to extend.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: emaste
Differential Revis

uniq: Replace NetBSD's unit tests with our own.

These new tests cover more functionality and are easier to extend.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D43381

show more ...