summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/var-scope-local.exp
AgeCommit message (Collapse)Author
2023-04-29tests/make: extend test for target-local variablesrillig
2023-04-28tests/make: add tests for target-local variablesrillig
While here, move a test from var-scope-local.mk to parse.mk since that test is not related to variables.
2022-03-26make: avoid trailing whitespace in debug log for variablesrillig
Since trailing whitespace is invisible, describe the variable value in words to make it visible.
2022-01-29tests/make: extend and isolate tests for target-local variablesrillig
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.
2022-01-27Unit test for local variablessjg
2022-01-23tests/make: rename var-class to var-scoperillig
There is no such concept as a "variable class" in make, these tests focus on the variable scope instead.