| History log of /src/usr.bin/make/unit-tests/directive-info.mk |
| Revision | | Date | Author | Comments |
| 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 |
| 08-May-2022 |
rillig | tests/make: migrate cond1 test to other, more specific tests
The tests in cond1 were a mixture of "everything related to conditions", and the test cases were heavily dependent on each other, which made them hard to understand. Move each test case to its corresponding special-purpose test.
|
| 1.9 |
| 08-Jan-2022 |
rillig | make: fix reported line numbers of continuation lines (since 2002)
Previously, multi-line directives like '.info' or '.error' reported the line number of their last line instead of their first line, which is more usual. This also affected the debug log from '-dp'.
|
| 1.8 |
| 19-Dec-2020 |
rillig | make(1): fix error message for .info/.warning/.error without argument
Previously, the error message was "Unknown directive", which was obviously wrong. The new error message is "Missing argument".
|
| 1.7 |
| 19-Dec-2020 |
rillig | make(1): add test for backslash continuation lines in .for loops
This ensures that the line numbers for messages are the expected onces in .for loops.
While experimenting with the backslash continuation lines, I noticed that the reported line numbers for these are based on the number of completely parsed physical lines, which nicely cancels out the + 1 that has to be added for producing human-readable 1-based line numbers. It would be more correct to report the parse errors on the first affected line.
|
| 1.6 |
| 13-Dec-2020 |
rillig | make(1): adjust timestamps in unit tests
These could not be known before the previous commit.
|
| 1.5 |
| 13-Dec-2020 |
rillig | make(1): error out on misspelled directives
Before, make accepted misspellings like .warnings, .export-literally and a few others, all of which are unlikely to occur in practice. See the test directive-misspellings.mk for further details.
|
| 1.4 |
| 15-Nov-2020 |
rillig | make(1): add tests for edge cases when parsing directives
|
| 1.3 |
| 03-Nov-2020 |
rillig | make(1): move tests from directives.mk to separate tests
|
| 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.
|