History log of /src/usr.bin/make/unit-tests/var-scope-local.exp |
Revision | | Date | Author | Comments |
1.9 |
| 05-Mar-2024 |
rillig | tests/make: clean up test for local scope variables
Use the same style of quotes for both kinds of variables. To make the variable values more easily comparable, write them to a single line. Add the output to the 'expect' lines.
|
1.8 |
| 01-Mar-2024 |
sjg | make: update var-scope-local test
Show what VAR value is in environment of target script.
|
1.7 |
| 20-Dec-2023 |
rillig | make: use consistent debug messages style when ignoring variables
When a variable is not modified or not deleted, clearly say so and state the reason. Use the same style of debug messages everywhere, putting the word 'ignoring' at the front. Previously, that word sticked out to the right, but only in some cases.
|
1.6 |
| 29-Apr-2023 |
rillig | tests/make: extend test for target-local variables
|
1.5 |
| 28-Apr-2023 |
rillig | tests/make: add tests for target-local variables
While here, move a test from var-scope-local.mk to parse.mk since that test is not related to variables.
|
1.4 |
| 26-Mar-2022 |
rillig | make: avoid trailing whitespace in debug log for variables
Since trailing whitespace is invisible, describe the variable value in words to make it visible.
|
1.3 |
| 29-Jan-2022 |
rillig | tests/make: extend and isolate tests for target-local variables
Reusing the target var-scope-local.o for several tests made the test more difficult to understand than necessary. The test names '2' and '3' didn't convey any meaning.
Instead, add more test targets that are named after what they test. Add tests for each of the 5 variable assignment operators, to demonstrate an inconsistency between '+=' and '?='.
Add tests for the built-in target-local variables as well and explain the general concepts, in particular the exact point where target-local expressions are expanded.
The lines in the expected output file are not generated in the same order as they appear in the makefile, so allow the 'expect' lines in non-linear order, in check-expect.lua.
|
1.2 |
| 27-Jan-2022 |
sjg | Unit test for local variables
|
1.1 |
| 23-Jan-2022 |
rillig | tests/make: rename var-class to var-scope
There is no such concept as a "variable class" in make, these tests focus on the variable scope instead.
|