The NetBSD Project

CVS log for src/usr.bin/make/unit-tests/cond-func.mk

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Aug 7 05:48:45 2024 UTC (7 months, 2 weeks ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -3 lines
make: in erroneous conditions, report the non-expanded text

In a condition, when a function call expression is missing its closing
parenthesis, there's no point in having the expanded argument text in
the error message.

When parsing a bare word in a condition, the trailing space was included
in that word, which was inconsistent, as the leading space was not
included either.  Removing the trailing space from the word reduces the
cases where a multiple-inclusion guard steps in, but only in an edge
case that is irrelevant in practice.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Aug 7 05:37:11 2024 UTC (7 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -1 lines
tests/make: demonstrate unintended parsing of words in conditions

A word is not supposed to include its trailing space, as it doesn't
contain its leading space either.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Aug 6 17:46:01 2024 UTC (7 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -5 lines
make: add details to error messages about missing ')'

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jul 6 21:21:10 2024 UTC (8 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -7 lines
make: error out on conditions containing the operators '&' and '|'

These abbreviated variants of the '&&' and '||' operators were never
documented, so error out in non-lint mode as well.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 19 21:47:52 2023 UTC (16 months ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
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.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jun 1 20:56:35 2023 UTC (21 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +10 -2 lines
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.12: download - view: text, markup, annotated - select for diffs
Wed May 10 15:53:32 2023 UTC (22 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
tests/make: clean up comments in tests

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 7 19:30:17 2022 UTC (3 years, 2 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -4 lines
tests/make: fix documentation in cond-func.mk

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 28 22:13:56 2021 UTC (3 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -8 lines
tests/make: test function names without following '('

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Nov 15 14:07:53 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
make(1): clean up some tests

Fix some mistakes in comments.

Improve some comments to be easier understandable.

Inline variables that are irrelevant for the test at hand (RUN,
MAKE_CMD).

Remove references to functions and constants that have since been removed
or renamed.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 10 20:44:18 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -1 lines
make(1): add tests for parsing conditionals, document a parsing bug

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Nov 10 19:36:50 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +39 -1 lines
make(1): add tests for edge cases in parsing conditionals

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Nov 8 21:40:13 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +13 -2 lines
make(1): add test for function argument with unbalanced braces

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Nov 8 21:33:05 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +9 -1 lines
make(1): document what the directive ".if A&B" means

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Oct 24 08:46:08 2020 UTC (4 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +10 -10 lines
make(1): indent directives like .info, .if, .for consistently

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

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 27 21:35:16 2020 UTC (4 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
make(1): normalize whitespace in source code

There is no more space tab.  Either only tabs or only spaces or tabs
followed by spaces, but not spaces followed by tabs.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Sep 23 08:11:28 2020 UTC (4 years, 5 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -1 lines
make(1): add tests for spaces in condition functions

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Aug 20 17:45:47 2020 UTC (4 years, 7 months ago) by rillig
Branches: MAIN
make(1): add test for parsing functions in .if conditions

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>