Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/varmod-subst.mk
RevisionDateAuthorComments
 1.17  29-Mar-2025  rillig make: add ":" to error message about unknown modifier

In the manual page, the modifiers are listed with a preceding ":", so
use the same pattern in the error message. This removes an inconsistency
between the error messages "Unknown modifier" and "Bad modifier".
 1.16  29-Aug-2024  rillig make: reduce line length in error messages

The error messages for deeply nested parse errors were hard to decipher,
due to the large amount of text. Split these messages into individual
lines, just as in the backtrace for .include files and .for loops. This
unified backtrace makes the output more uniform.
 1.15  20-Jul-2024  rillig make: don't run erroneous commands in compat mode

When there is a parse or evaluation error in an expression that becomes
part of the command, don't run that command, as the result of the failed
evaluation typically contains garbage characters. Skip the remaining
commands from that target as well, as they may depend on the erroneous
command.
 1.14  18-Dec-2023  rillig branches: 1.14.2;
tests/make: fix typo in test for ':C' modifier

The expression ${U:...} was always undefined, as there was no variable
named 'U'; the intended form was ${:U:...}. Due to this typo, the
comments in the tests for the ':S' and the ':C' modifier contradicted
each other.
 1.13  17-Dec-2023  rillig tests/make: extend tests for include guards and empty expressions
 1.12  16-Jun-2023  rillig tests/make: clean up tests for the ':M' and ':S' modifiers
 1.11  01-Jun-2023  rillig tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.
 1.10  01-Jun-2023  rillig tests/make: clean up comments, extend a few tests
 1.9  06-Sep-2021  rillig tests/make: test modifier ':S' with replacement '&'

Before 2020-08-30, OpenBSD make incorrectly copied the anchors '^' and
'$' to the replacement string. Just guard against this possible bug.
 1.8  14-May-2021  rillig tests/make: show that in ':S', '.' and '*' are ordinary characters
 1.7  15-Nov-2020  rillig branches: 1.7.2;
make(1): update and add comments in tests

As a result of the new comments, some line numbers have changed in the
output of the tests. No other changes.
 1.6  03-Nov-2020  rillig make(1): in tests, replace "dollar character" with "dollar sign"
 1.5  03-Nov-2020  rillig make(1): add all printable ASCII characters to the varmod-subst test

I must have missed some of them when I originally wrote the test. Not
sure how that happened. While here, use the official Unicode names.
 1.4  24-Oct-2020  rillig make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.
 1.3  19-Aug-2020  rillig make(1): fix a few inconsistencies in the manual page
 1.2  16-Aug-2020  rillig make(1): move tests for :S, :C, :@ from modmisc to their separate tests
 1.1  16-Aug-2020  rillig make(1): add dummies for fine-grained tests, one per single feature

The test names have been derived from the current manual page.

All these tests are dummies right now, and the code from the existing
tests will be moved into the new tests step by step.

This is done to prevent modmisc, escape, varmod-edge and varmisc from
growing without any bounds, and to reduce the side-effects of one test
to the others.
 1.7.2.1  31-May-2021  cjep sync with head
 1.14.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed