Commit Graph
12 Commits
Author SHA1 Message Date
Sylvestre Ledru 62b40c901d tests: join: check -o fields after the file operands
* tests/join/join.pl (o-after-files-1, o-after-files-2): New tests,
ensuring a separate -o field is only taken while a file operand
still follows it.

https://github.com/uutils/coreutils/pull/16378

Link: https://github.com/coreutils/coreutils/pull/465
2026-11-15 16:17:39 +00:00
Sylvestre Ledru 1c62004b31 tests: join: ensure -i accepts input ordered by sort -f
Reported at https://github.com/uutils/coreutils/issues/15759

* tests/join/join.pl: Add test cases.

Link: https://github.com/coreutils/coreutils/pull/441
2026-11-07 12:35:10 +00:00
Sylvestre Ledru a1974b5605 tests: join: ensure the last of --check-order and --nocheck-order wins
Reported at https://github.com/uutils/coreutils/issues/16004

* tests/join/join.pl: Add test cases.

Link: https://github.com/coreutils/coreutils/pull/418
2026-11-07 12:35:10 +00:00
Sylvestre Ledru d57d8187ca tests: join: check -i prints each line's own key
* tests/join/join.pl (@tv): Add test cases for -i with keys that
differ only in case, with the default output and with -o 0.
https://github.com/uutils/coreutils/pull/15635

Link: https://github.com/coreutils/coreutils/pull/391
2026-10-24 16:15:03 +01:00
Sylvestre Ledru f1a5961c12 tests: join: cover a repeated -o
* tests/join/join.pl: Test that the field specs of several -o options
accumulate in order, and that 'auto' applies only when every -o
argument is 'auto'.
Identified here: https://github.com/uutils/coreutils/pull/14070

Link: https://github.com/coreutils/coreutils/pull/335
2026-08-26 12:40:26 +01:00
Collin Funk e92232687a tests: join: support old perl versions
The following error was seen on a Debian 6.0 virtual machine using perl
5.10.1:

    Bareword found where operator expected at \
      ./tests/join/join.pl line 327, near "tr/_/-/r"
    syntax error at ./tests/join/join.pl line 327, near "tr/_/-/r"
    Execution of ./tests/join/join.pl aborted due to compilation errors.
    FAIL tests/join/join.pl (exit status: 255)

* tests/join/join.pl: Don't use the /r modifier which was not introduced
until perl 5.13.7.
2026-08-23 22:47:19 -07:00
Collin Funk 114aa7f1b7 tests: join: test the parsing of space separated -o formats
* tests/join/join.pl: Add some test cases.
2026-07-27 21:39:51 -07:00
Collin Funk fe186925c7 tests: join: test the behavior when given multiple -e options
* tests/join/join.pl (@tv): Add two test cases.
2026-07-13 22:38:03 -07:00
Collin Funk ce0f4f68df tests: join: add another -e test case
* tests/join/join.pl (@tv): Add a test case.
2026-06-11 00:14:21 -07:00
Collin Funk 73d3a49f45 maint: run 'make update-copyright' 2026-01-01 10:56:16 -08:00
Pádraig Brady 28b176085f maint: update all copyright year number ranges
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
2025-01-01 09:33:08 +00:00
Pádraig Brady f3bcb59ebd tests: move join tests to their own directory
* tests/misc/join-utf8.sh: Move to tests/join
since there are now multiple join tests.
* tests/misc/join.pl: Likewise.
2024-02-27 14:27:04 +00:00