summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/modmisc.mk
AgeCommit message (Collapse)Author
2023-06-16tests/make: clean up tests for the ':M' and ':S' modifiersrillig
2020-12-20make(1): move tests for indirect modifiers aroundrillig
The next commit will error out on unknown modifiers and influence the exit status. The test modmisc.mk contains both parse time tests and run time tests. To prevent the latter from being run, the parse error is moved to varmod-indirect.mk, which only contains parse time tests.
2020-11-15make(1): update and add comments in testsrillig
As a result of the new comments, some line numbers have changed in the output of the tests. No other changes.
2020-11-03make(1): clean up unit testsrillig
2020-10-24make(1): use consistent indentation in variable assignmentsrillig
Initial work by "pkglint -F *.mk", manually adjusted in a few places.
2020-10-24make(1): indent directives like .info, .if, .for consistentlyrillig
Done by "pkglint -F *.mk", no manual corrections.
2020-10-24make(1): use consistent RCS Id in test filesrillig
2020-08-23make(1): move tests for the :tu and :_ modifiers into separate filesrillig
2020-08-23make(1): move tests for :hash :range :localtime into separate filesrillig
2020-08-23make(1): move tests for :H :E :R :T into separate filesrillig
2020-08-16make(1): move tests for the :gmtime and ::= modifiers to separate filesrillig
2020-08-16make(1): move tests for :S, :C, :@ from modmisc to their separate testsrillig
2020-08-09make(1): add more tests for Cmd_Execrillig
2020-08-09make(1): add test for null byte in the output of a commandrillig
2020-08-09make(1): add test that demonstrates possible delimiters for :Srillig
2020-08-09make(1): explain the mod-subst-dollar testrillig
2020-08-09make(1): add another test case for mod-subst-dollarrillig
Having only 8 dollar signs does not prove anything. It might still be the result of 3 substitutions in a row. Having 5 substitutions in a row is less likely though.
2020-08-08make(1): add test for the :gmtime modifier with indirect timerillig
2020-08-08make(1): add test for unknown sub-modifier of the :S modifierrillig
2020-08-07make(1): add tests for creative variable names in the :@ modifierrillig
2020-08-03make(1): in lint mode, disallow dynamic variable names in :@ modifierrillig
This is an extremely obscure feature that hopefully nobody ever considered using.
2020-08-01make(1): add test for empty indirect modifierrillig
2020-08-01make(1): add tests for indirect modifiersrillig
2020-07-31make(1): add test for chaining the :S modifier without colonrillig
2020-07-29make(1): remove unnecessary assignments to st->nextrillig
No change in the size of the resulting binary. Apparently GCC already knew these assignments were redundant.
2020-07-29make(1): add unit tests for parse errors in modifiersrillig
2020-07-27make(1): replace macros with functionsrillig
Having the hidden parameter st->endc in the macro made it unnecessarily difficult to understand the code.
2020-07-26make(1): add basic tests for the :S modifierrillig
2020-07-26make(1): fix bug in :S modifier from 2020-07-19rillig
2020-07-26make(1): demonstrate bug in the :S modifier with the 1 modifierrillig
The bug has been introduced in var.c r1.268 on 2020-07-19.
2020-07-26make(1): use consistent test names in modmisc.mkrillig
2020-07-25make(1): add test for brk_string with more than 50 wordsrillig
2020-07-23make(1): demonstrate wrong error message about missing delimiterrillig
The current practice of setting st->delim at the beginning of each modifier and resetting it again at the end produces too many error messages. In this case, there is no missing delimiter.
2020-07-21make(1): add test for :S,,seprillig
The empty string does not match anywhere. In other implementations of string replacement, an empty string matches at every position of the source string. This only works for the :S modifier. The :C modifier does not allow an empty search pattern.
2020-07-21make(1): add test for :Q and .newlinerillig
2020-07-20make(1): add test for nested assignmentsrillig
This test demonstrates that in ApplyModifier_Assign, the call to ParseModifierPart must get its pflags.
2020-07-20make(1): add test for :tu modifier with spacesrillig
2020-07-19make(1): add tests for the ::= modifiersrillig
2020-07-19make(1): add tests for maximum number of capturing groups in :Crillig
2020-07-19make(1): demonstrate off-by-one bug in :C modifierrillig
2020-07-19make(1): add test for stray dollar signs in :@ modifierrillig
2020-07-04make(1): add tests for dollar characters in modifiersrillig
2020-07-04make(1): expand the test for variable expansion in the :@ modifierrillig
2020-07-04make(1): add debugging output for :@ modifierrillig
The inner working of the :@ modifier is quite tricky. To understand what really happens, it helps to look at each word as it is being modified.
2020-07-04make(1): add test for an obscure edge case of using the :@ modifierrillig
2020-07-04make(1): add tests for the :S and :C modifiersrillig
2020-07-03make(1): clean up documentation, small refactorings for variablesrillig
- document the callback for VarModify - clearly mark the callbacks - shorten the documentation for some callback functions - fix the documentation of VarSYSVMatch - remove unnecessary null check from VarLoopExpand - add test for applying modifiers to empty strings
2020-07-03make(1): fix bug in :E modifier, introduced in r1.239 todayrillig
That case was not covered by the tests before.
2020-07-03make(1): add test for :R modifierrillig
2020-07-03make(1): add more tests for :H, :T and :E modifiersrillig