Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/varmod-match-escape.mk
RevisionDateAuthorComments
 1.20  28-Jun-2025  rillig make: consistently use double quotes in error messages

Previously, some error messages used single quotes, very few used
backticks or parentheses, most already used double quotes.

While here, reword a few error messages to be clearer or more consistent
with related error messages.
 1.19  28-Jun-2025  rillig make: error out on an ":M" modifier whose pattern ends with backslash

This edge case is not expected to occur intentionally in practice.
 1.18  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.17  09-Jul-2024  rillig make: error out on syntax errors in ':M' and ':N' modifiers

More than a year ago, the warning has been added. Now it has been
promoted to an error.
 1.16  05-Jul-2024  rillig make: in error messages for anonymous variables, log the value
 1.15  04-Jul-2024  rillig make: add more context information to error messages

In case of a parse error or evaluation error, print the variable value
in addition to the variable name, to see the effects of previous
expression modifiers.

In nested make calls, print the current directory at the bottom of a
stack trace, as that information is otherwise hard to get in a parallel
build spanning multiple directories.
 1.14  15-Jun-2024  rillig branches: 1.14.2;
make: in warnings, move the word "warning" to the front
 1.13  20-Apr-2024  rillig make: provide more context information for parse/evaluate errors
 1.12  19-Nov-2023  rillig tests/make: replace 'variable expression' with 'expression'

Each expression is based on a variable, there's no need for the
verbosity. The wording in make's diagnostics will be changed in a
follow-up commit.
 1.11  02-Nov-2023  rillig make: sync comments with the extracted ParseModifier_Match

No functional change.
 1.10  23-Jun-2023  rillig make: warn about malformed patterns in ':M', ':N' and '.if make(...)'

These patterns shouldn't occur in practice, as their results are tricky
to predict. Generate a warning for now, and maybe an error later.

Reviewed by sjg@.
 1.9  22-Jun-2023  rillig tests/make: demonstrate inconsistency in pattern matching with ranges
 1.8  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.7  03-Apr-2021  rillig make: use C99 bool type instead of defining its own

No functional change.
 1.6  01-Feb-2021  rillig make: document necessary tests for Str_Match
 1.5  01-Nov-2020  rillig make(1): add more tests for the variable modifier :M

Despite its popularity and usefulness, the variable modifier :M is
implemented so weirdly that it's not surprising people get confused
about make's parsing and escaping rules.
 1.4  01-Nov-2020  rillig make(1): add test for surprising parsing result of the :M modifier
 1.3  01-Nov-2020  rillig make(1): move test flags to test varmod-match-escape.mk
 1.2  24-Oct-2020  rillig make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.
 1.1  16-Aug-2020  rillig make(1): move tests for the :M modifier into separate files

The test for the different escaping has been adjusted to actually show
the different parsing results in the test output. To do this, it had to
get its own file since it needs the -dv debug flag and specialized
post-processing.
 1.14.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed