The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Wed Dec 6 22:28:20 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +16 -2 lines
Diff to previous 1.23 (colored)

tests/make: show how global variables are unaffected by .for loops

Revision 1.23 / (download) - annotate - [select for diffs], Thu Oct 19 18:24:33 2023 UTC (4 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.22: +6 -5 lines
Diff to previous 1.22 (colored)

tests/make: clean up, explain and reorganize several tests

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jun 1 20:56:35 2023 UTC (8 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Thu Jun 1 07:27:30 2023 UTC (8 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

tests/make: clean up comments, extend a few tests

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 10 13:03:06 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.19: +29 -10 lines
Diff to previous 1.19 (colored)

tests/make: clean up tests for .for loops

Most of the tests from forloop.mk were already in directive-for.mk.

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: +57 -34 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, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.17: +6 -6 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], Mon May 8 09:24:42 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.16: +13 -1 lines
Diff to previous 1.16 (colored)

tests/make: add more tests for unusual variable names in .for loops

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 8 09:01:20 2023 UTC (9 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.15: +14 -7 lines
Diff to previous 1.15 (colored)

make: fix parsing of unusual line continuations in .for loops

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 1 09:23:04 2022 UTC (16 months, 4 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.14: +4 -4 lines
Diff to previous 1.14 (colored)

tests/make: make comment in test for .for easier to understand

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 23 16:36:02 2022 UTC (18 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.13: +17 -1 lines
Diff to previous 1.13 (colored)

tests/make: demonstrate that .for variables take precedence

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jan 15 12:35:18 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored)

tests/make: ensure that the 'expect' comments in tests are correct

Based on tests/usr.bin/xlint/check-expect.lua.

For now, this extra check needs to be run manually.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 8 10:22:03 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.11: +17 -1 lines
Diff to previous 1.11 (colored)

tests/make: demonstrate edge case in parsing .for loops

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 2 01:35:31 2022 UTC (2 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.10: +60 -5 lines
Diff to previous 1.10 (colored)

tests/make: test edge cases in .for loops

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 27 09:58:35 2020 UTC (3 years, 2 months 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.9: +8 -1 lines
Diff to previous 1.9 (colored)

make(1): add test for missing error handling in .for loop

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 15 20:20:58 2020 UTC (3 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.8: +10 -2 lines
Diff to previous 1.8 (colored)

make(1): update and add comments in tests

As a result of the new comments, some line numbers have changed in the
output of the tests.  No other changes.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 25 15:49:03 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.7: +9 -1 lines
Diff to previous 1.7 (colored)

make(1): test funny character in .for variable names

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 25 14:55:23 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.6: +8 -1 lines
Diff to previous 1.6 (colored)

make(1): add test for escaping parentheses and braces in .for loops

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 24 08:50:17 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

make(1): use consistent indentation in variable assignments

Initial work by "pkglint -F *.mk", manually adjusted in a few places.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 22 19:08:48 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

make(1): remove obsolete fix for PR bin/29985

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 22 18:54:51 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.3: +25 -1 lines
Diff to previous 1.3 (colored)

make(1): add test for .for loop from PR bin/29985

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 14 18:49:24 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.2: +9 -1 lines
Diff to previous 1.2 (colored)

make(1): add test for nested .for loops with the same variable name

Revision 1.2 / (download) - annotate - [select for diffs], Wed Sep 2 22:58:59 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

make(1): fix wrong comments in test for the .for loop

These comments were my original assumptions, which I wrote before
running the test and before looking at the implementation.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 2 05:33:57 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN

make(1): add test for the .for directive

For a long time, I had assumed that the iteration variables of a .for
loop are just normal global variables.  This assumption was wrong but
didn't have any consequences.

The iteration variables of a .for loop can just be accessed like global
variables, therefore it is not obvious that they are implemented in a
completely different way.

There are some edge cases in conditions used inside .for loops, in which
the iteration variables cannot be used like normal variables.  An
example is brought up in https://gnats.netbsd.org/47888, which observes
that the defined() and empty() functions in conditions only work with
variables but ignore the iteration "variables", simply because these are
not variables but only expressions.

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>