Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/varmod-match.exp
RevisionDateAuthorComments
 1.27  29-Jun-2025  rillig tests/make: test backslash at the end of a line and in the :M modifier

As described in PR bin/46139 by David A. Holland.
 1.26  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.25  30-Mar-2025  rillig make: use '"filename" line 123' for locations instead of 'filename:123'

The format 'filename:123' is commonly used for identifying a location in
a file. Text editors recognize it and allow quick navigation through it.
The previous format was specific to make and would have required custom
support in editors.

The new format was already used in stack traces, except for the first
line. Now all lines use the same format.
 1.24  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.23  11-Jan-2025  rillig make: omit redundant follow-up message "Malformed conditional"

If there is a parse error or an evaluation error during the conditional,
the conditional is already mentioned in the "while evaluating condition"
line, so there's no reason to repeat it once again.

Same for the "Bad condition" message from the '?:' modifier.
 1.22  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.21  06-Aug-2024  rillig make: in error message about conditionals, use single quotes

Single quotes are used less often in the conditionals themselves, which
leads to fewer confusions.
 1.20  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.19  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.18  15-Jun-2024  rillig branches: 1.18.2;
make: in warnings, move the word "warning" to the front
 1.17  05-Jun-2024  rillig make: sync comments with reality
 1.16  23-Apr-2024  rillig make: clean up comments, code and tests
 1.15  20-Apr-2024  rillig make: provide more context information for parse/evaluate errors
 1.14  17-Dec-2023  rillig tests/make: test the fast code path for ':M' patterns like '*.c'
 1.13  17-Dec-2023  rillig tests/make: add basic tests for the ':M' modifier
 1.12  16-Dec-2023  rillig tests/make: fix line numbers in expected test output for ':M'
 1.11  16-Dec-2023  rillig tests/make: reorganize tests for the ':M' modifier

Add a table of contents. Group the existing tests into sections. Fix
the pattern of the test for the malformed ':M[\' modifier, now in line
283.

Note that the tests for the pattern characters '*?\' are missing.
 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: fix line numbers in test result, since the previous commit
 1.8  22-Jun-2023  rillig make: clean up comments related to pattern matching
 1.7  11-Jun-2022  rillig tests/make: test edge cases in pattern matching
 1.6  11-Jun-2022  rillig tests/make: demonstrate another pathological pattern match
 1.5  03-Mar-2022  rillig tests/make: add more comprehensive tests for ':M' and ':N'
 1.4  03-Mar-2022  rillig make: make debug logging for comparisons less technical
 1.3  12-Sep-2020  rillig make(1): add test for escaping dollars in the :M variable modifier
 1.2  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.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.18.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed