History log of /src/usr.bin/make/unit-tests/cond-func-exists.mk |
Revision | | Date | Author | Comments |
1.8 |
| 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.7 |
| 19-Nov-2023 |
rillig | branches: 1.7.2; 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.6 |
| 30-Nov-2020 |
rillig | make(1): add test for directory cache and exists()
|
1.5 |
| 24-Oct-2020 |
rillig | make(1): indent directives like .info, .if, .for consistently
Done by "pkglint -F *.mk", no manual corrections.
|
1.4 |
| 28-Aug-2020 |
rillig | make(1): extend test for the exists function in conditions
|
1.3 |
| 23-Aug-2020 |
rillig | make(1): add tests for functions in .if conditions
|
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.7.2.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|