The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 9 21:09:24 2022 UTC (11 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

make: fix mistakes, spelling and typos in comments and manual page

No binary change for -DNDEBUG.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 5 10:13:44 2021 UTC (14 months ago) by rillig
Branch: MAIN
Changes since 1.13: +10 -10 lines
Diff to previous 1.13 (colored)

tests/make: make test for '::=' easier to read, fix comments

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 30 20:48:01 2021 UTC (14 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.12: +56 -47 lines
Diff to previous 1.12 (colored)

tests/make: convert tests for modifier '::=' to parse time

This puts the expected result of the expressions closer to the
expressions, making the tests self-contained.

The error messages that used to produce trailing spaces have been fixed
in var.c 1.853 from 2021-02-23. The error message now encloses the
variable name in quotes.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Mar 15 18:56:38 2021 UTC (22 months, 3 weeks 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.11: +4 -7 lines
Diff to previous 1.11 (colored)

make: fix double varname expansion in the variable modifier '::='

This is an edge case that doesn't occur in practice since pretty much
nobody dares to use variable names that contain an actual '$' in their
name.  This is not about the fairly common VAR.${param} (as written in
the makefile), but instead about the variable whose name is literally
'VAR.${param}'.

The test demonstrates that after the fix, the variable name is taken
exactly as-is for the simple assignment modifier '::='.  There are no
such tests for the modifiers '::+=', '::!=' and '::?=', but that's ok.
The code in ApplyModifier_Assign would look assymetrical and suspicious
enough if one of these modifiers would expand its variable name and the
others wouldn't.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 15 18:46:05 2021 UTC (22 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.10: +29 -1 lines
Diff to previous 1.10 (colored)

tests/make: demonstrate that the modifier '::=' expands the varname

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 14 12:14:37 2021 UTC (23 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)

make: add test for ::= modifier enclosed in parentheses

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 22 22:54:53 2021 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

make(1): remove outdated comment from test

It was fixed in var.c 1.472 from 2020-08-25.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 18 21:37:24 2020 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.7: +15 -1 lines
Diff to previous 1.7 (colored)

make(1): add test for the ::+= modifier expanding its right-hand side

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 18 21:36:22 2020 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.6: +18 -6 lines
Diff to previous 1.6 (colored)

make(1): explain existing tests for the ::= assignment modifiers

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 25 21:16:53 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

make(1): fix error message for ::!= modifier with shell error

It's just too easy to confuse st->val and val.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 25 21:07:39 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.4: +11 -1 lines
Diff to previous 1.4 (colored)

make(1): add test for ::!= modifier with shell error

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 25 20:49:40 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.3: +24 -1 lines
Diff to previous 1.3 (colored)

make(1): move test for the ::= modifier to varmod-assign

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 25 18:59:30 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.2: +25 -1 lines
Diff to previous 1.2 (colored)

make(1): explain the varmod-assign test

I have no idea why I added the mod-assign-nested test.  It is completely
boring and doesn't provide any insight.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 16 12:48:55 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.1: +21 -5 lines
Diff to previous 1.1 (colored)

make(1): move tests for the :gmtime and ::= modifiers to separate files

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 16 12:07:51 2020 UTC (2 years, 5 months ago) by rillig
Branch: MAIN

make(1): add dummies for fine-grained tests, one per single feature

The test names have been derived from the current manual page.

All these tests are dummies right now, and the code from the existing
tests will be moved into the new tests step by step.

This is done to prevent modmisc, escape, varmod-edge and varmisc from
growing without any bounds, and to reduce the side-effects of one test
to the others.

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>