The NetBSD Project

CVS log for src/usr.bin/make/unit-tests/directive-for-escape.exp

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / make / unit-tests

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Sun Nov 19 22:06:15 2023 UTC (3 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: triaxx-drm, HEAD
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

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

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 23 06:11:06 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.21: +50 -29 lines
Diff to previous 1.21 (colored)

tests/make: explain and extend tests for expansion in .for loops

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jun 1 20:56:35 2023 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.20: +36 -36 lines
Diff to previous 1.20 (colored)

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 1.20 / (download) - annotate - [select for diffs], Thu Jun 1 09:02:14 2023 UTC (9 months ago) by rillig
Branch: MAIN
Changes since 1.19: +39 -36 lines
Diff to previous 1.19 (colored)

make: add more details to debug logging of .for loops

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 9 19:43:12 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.18: +39 -43 lines
Diff to previous 1.18 (colored)

make: skip syntactically wrong .for loops

When a .for loop cannot be interpreted correctly, for example when there
are no iteration variables or the number of words doesn't match the
iteration variables, skip the body of the .for loop instead of
interpreting it once.

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 8 10:24:07 2023 UTC (9 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.17: +31 -35 lines
Diff to previous 1.17 (colored)

make: disallow characters like '$' in variable names in .for loops

Fixes PR 53146.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 12 16:09:21 2022 UTC (20 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.16: +37 -30 lines
Diff to previous 1.16 (colored)

make: document ExprLen, which is part of a .for loop

No binary change

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jan 27 20:15:14 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.15: +9 -0 lines
Diff to previous 1.15 (colored)

tests/make: add more edge cases for expansion of .for loop body

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 27 11:26:44 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.14: +59 -30 lines
Diff to previous 1.14 (colored)

tests/make: explain escaping in .for loops, add more test cases

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 9 20:53:53 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

tests/make: add placeholders for .PARSEDIR and .INCLUDEDFROMDIR

When run via 'cd usr.bin/make/unit-tests && make test', the tests are in
the current directory.  When run via ATF, the tests are in
/usr/tests/usr.bin/make/unit-tests, while the current directory is a
temporary directory.  Allow both variants, plus others that may occur in
the bmake distribution.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 9 14:06:00 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.12: +16 -0 lines
Diff to previous 1.12 (colored)

make: fix crash for newline in .for value in -dp mode (since yesterday)

Revision 1.12 / (download) - annotate - [select for diffs], Thu Sep 2 07:02:08 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.11: +29 -29 lines
Diff to previous 1.11 (colored)

make: rename for_var_len to ExprLen

The text ${VAR} is not a variable, it's a variable expression.

No functional change.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 25 16:10:07 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.10: +6 -10 lines
Diff to previous 1.10 (colored)

make: prevent newline injection in .for loops

When a value of a .for loop contained a literal newline, such as from
the expression ${.newline}, that newline was passed verbatim to the
"expanded current body" of the .for loop.  There it was interpreted as a
literal newline, which ended the current line and started a new one.
This resulted in several syntax errors.

In cases like these, print a more precise error message.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 25 15:56:02 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.9: +15 -1 lines
Diff to previous 1.9 (colored)

tests/make: demonstrate newline injection in .for loop

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 24 23:22:17 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.8: +7 -0 lines
Diff to previous 1.8 (colored)

tests/make: test .for loop over a variable named '$'

It's an impractical edge case, nevertheless it's accepted by make.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Feb 23 15:56:30 2021 UTC (3 years ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

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.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 15 07:58:19 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.6: +14 -14 lines
Diff to previous 1.6 (colored)

make: improve comments in test for expansions in .for loops

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 25 19:05:39 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

make(1): rename struct For to struct ForLoop

This removes the ambiguity whether For_Free is meant to be a
module-exported function or a local function associate with that struct.
Rename the affected functions as well.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 24 19:48:11 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.4: +20 -16 lines
Diff to previous 1.4 (colored)

make(1): describe expansion of nested variables in .for values

These edge cases are not documented anywhere, and their behavior is
non-intuitive.  For now, just describe them, don't try to fix them.
There may be people out there relying on exactly this behavior.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 24 19:30:18 2021 UTC (3 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.3: +1 -4 lines
Diff to previous 1.3 (colored)

make(1): let the test directive-for-escape exit successfully

There is no reason for a non-zero exit status here.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 31 14:26:37 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.2: +22 -0 lines
Diff to previous 1.2 (colored)

make(1): add test for common and edge cases in .for loop expansion

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 31 13:23:43 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.1: +8 -0 lines
Diff to previous 1.1 (colored)

make(1): add tests for extreme edge cases of .for loop expansion

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 31 03:05:12 2020 UTC (3 years, 2 months ago) by rillig
Branch: MAIN

make(1): add test for error handling and expansion in .for loops

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>