History log of /src/usr.bin/make/unit-tests/var-scope-local.mk |
Revision | | Date | Author | Comments |
1.11 |
| 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.10 |
| 01-Mar-2024 |
sjg | make: update var-scope-local test
Show what VAR value is in environment of target script.
|
1.9 |
| 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.8 |
| 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.7 |
| 29-Apr-2023 |
rillig | tests/make: extend test for target-local variables
|
1.6 |
| 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.5 |
| 09-Feb-2022 |
rillig | make: fix mistakes, spelling and typos in comments and manual page
No binary change for -DNDEBUG.
|
1.4 |
| 05-Feb-2022 |
rillig | tests/make: document and try to reproduce the crash in Parse_IsVar
Fixed in parse.c 1.662 from today. To actually crash make, the end of the expanded dependency line must be at the end of a mapped region. There is no guaranteed crash, as this depends on the memory allocator. NetBSD's jemalloc allocates large contiguous regions, making it less likely for an allocation to end up at the end of a mapped region. The memory allocators used by FreeBSD and OpenBSD are better at detecting such bugs.
|
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.
|