Home | History | Annotate | Download | only in unit-tests
History log of /src/usr.bin/make/unit-tests/deptgt.mk
RevisionDateAuthorComments
 1.24  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.23  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.22  10-Jan-2025  rillig tests/make: test expressions based on undefined variables

When an undefined variable is used in a conditional, make complains about
"Malformed conditional", which is wrong since the conditional is
well-formed but errors out during evaluation.

In order to fix this wrong error message and preserve the remaining
behavior, cover the places in which an expression is evaluated with
undefined expressions being an error (VARE_EVAL_DEFINED), but with
neither producing an error message nor handling errors. This combination
results in the same behavior as evaluating the expressions in the mode
that allows undefined variables to be used in expressions.
 1.21  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.20  06-Jul-2024  rillig tests/make: clean up tests

Prefer "expect+X" directives to be above the code generating them,
instead of "expect-X" directives below the code.

In varmod-edge.mk, separate the tests, as the common loop does not pull
its weight.
 1.19  05-Jul-2024  rillig make: in error messages, distinguish parsing from evaluating
 1.18  05-Jul-2024  rillig make: in error messages for anonymous variables, log the value
 1.17  20-Apr-2024  rillig branches: 1.17.2;
make: provide more context information for parse/evaluate errors
 1.16  17-Dec-2023  rillig tests/make: in 'expect' lines, require the complete text of the line
 1.15  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.14  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.13  03-Jan-2023  rillig make: add more details to warning 'Extra targets ignored'

Seen in binutils/zlib/Makefile.in:1283, which defines both '.MAKE' and
'.PHONY' in the same line.
 1.12  13-Dec-2021  rillig tests/make: extend tests for parsing makefiles
 1.11  04-Apr-2021  rillig make: remove filler word 'Do' from function names for parsing

No functional change, except for debug logging.
 1.10  27-Dec-2020  rillig make(1): add test for ParseDependencyTargetWord
 1.9  15-Nov-2020  rillig make(1): add tests for edge cases when parsing directives
 1.8  18-Oct-2020  rillig make(1): rename Lst_Init to Lst_New

For the other types such as HashTable and Buffer, the Init function does
not allocate the memory for the structure itself, it only fills it.
 1.7  25-Sep-2020  rillig make(1): remove redundant variable inLine from parse.c

This variable has served at least 27 years bringing unnecessary
redundancy to the code. It was already redundant at 1993-03-21, when
the code was imported to NetBSD.
 1.6  25-Sep-2020  rillig make(1): rename ParseFinishLine to FinishDependencyGroup

Even after 27 or more years, it's not too late to fix bad function
names. This one for example does not finish a line but a dependency
group.
 1.5  14-Sep-2020  rillig make(1): in the deptgt test, describe what happens to the targets
 1.4  14-Sep-2020  rillig make(1): add test for the global variable 'targets' in parse.c
 1.3  14-Sep-2020  rillig make(1): add test for combining several special targets
 1.2  16-Aug-2020  rillig make(1): describe the purpose of each newly added unit test dummy
 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.17.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed