History log of /netbsd-current/usr.bin/make/unit-tests/varmod-edge.mk
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 20-Apr-2024 rillig

make: provide more context information for parse/evaluate errors


# 1.19 19-Nov-2023 rillig

make: replace 'variable expression' with 'expression' in diagnostics


# 1.18 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.17 01-Jun-2023 rillig

tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.


Revision tags: netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.16 23-Feb-2021 rillig

make: improve error message for unclosed modifier

Replace "variable specification" with the more modern "variable
expression", reduce the number of parentheses, output more than a single
character for modifiers, make it obvious that in expressions such as
${:Serror}, the "" means a variable name.


# 1.15 23-Feb-2021 rillig

make: add quotes around variable name in an error message


# 1.14 22-Feb-2021 rillig

make: add test for confusing double space in error message


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.19 19-Nov-2023 rillig

make: replace 'variable expression' with 'expression' in diagnostics


# 1.18 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.17 01-Jun-2023 rillig

tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.


Revision tags: netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.16 23-Feb-2021 rillig

make: improve error message for unclosed modifier

Replace "variable specification" with the more modern "variable
expression", reduce the number of parentheses, output more than a single
character for modifiers, make it obvious that in expressions such as
${:Serror}, the "" means a variable name.


# 1.15 23-Feb-2021 rillig

make: add quotes around variable name in an error message


# 1.14 22-Feb-2021 rillig

make: add test for confusing double space in error message


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.17 01-Jun-2023 rillig

tests/make: force line-based diagnostics to be listed in the tests

This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.16 23-Feb-2021 rillig

make: improve error message for unclosed modifier

Replace "variable specification" with the more modern "variable
expression", reduce the number of parentheses, output more than a single
character for modifiers, make it obvious that in expressions such as
${:Serror}, the "" means a variable name.


# 1.15 23-Feb-2021 rillig

make: add quotes around variable name in an error message


# 1.14 22-Feb-2021 rillig

make: add test for confusing double space in error message


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.16 23-Feb-2021 rillig

make: improve error message for unclosed modifier

Replace "variable specification" with the more modern "variable
expression", reduce the number of parentheses, output more than a single
character for modifiers, make it obvious that in expressions such as
${:Serror}, the "" means a variable name.


# 1.15 23-Feb-2021 rillig

make: add quotes around variable name in an error message


# 1.14 22-Feb-2021 rillig

make: add test for confusing double space in error message


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.15 23-Feb-2021 rillig

make: add quotes around variable name in an error message


# 1.14 22-Feb-2021 rillig

make: add test for confusing double space in error message


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.13 24-Oct-2020 rillig

make(1): indent directives like .info, .if, .for consistently

Done by "pkglint -F *.mk", no manual corrections.


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.12 08-Aug-2020 rillig

make(1): fixup for "Unfinished modifier"


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.11 01-Aug-2020 rillig

make(1): improve output grouping in varmod-edge test

The generated error messages are now closer to the test cases that
produce them. To keep the expected output stable, the line numbers are
omitted from the .info directives.


# 1.10 01-Aug-2020 rillig

make(1): add test for ${VAR::::}

It's a bit unrealistic, but at least there are good diagnostics.


# 1.9 01-Aug-2020 rillig

make(1): add test for empty modifier list after colon

This is a good candidate for becoming an error in strict mode.
Either write ${VAR} or write ${VAR:modifiers}, but not half-baked.


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.8 19-Jul-2020 rillig

make(1): rename VarGetPattern to ParseModifierPart


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.7 27-Apr-2020 christos

Adjust test for the new behavior: % on hls and no % on the rhs does not
prepend the lhs to the rhs.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
# 1.6 02-Dec-2019 rillig

branches: 1.6.4;
Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.6 02-Dec-2019 rillig

Add more tests for variable modifiers in make.


# 1.5 01-Dec-2019 rillig

Fix out-of-bounds read in Str_Match.


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N


# 1.4 30-Nov-2019 rillig

Demonstrate some more edge cases for the :M modifier


# 1.3 30-Nov-2019 rillig

Fix unit test for edge case in :M modifier


# 1.2 30-Nov-2019 rillig

Add another unit test for the :M modifier


# 1.1 30-Nov-2019 rillig

Add unit tests for variable modifiers like :M and :N