The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Thu Oct 19 18:24:33 2023 UTC (5 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.32: +4 -22 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Sun Dec 5 10:02:51 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

tests/make: fix documentation of .MAKE.SAVE_DOLLARS

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 30 23:52:19 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored)

tests/make: test and document .MAKE.SAVE_DOLLARS and ':='

Revision 1.30 / (download) - annotate - [select for diffs], Thu Feb 4 21:42:47 2021 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.29: +4 -4 lines
Diff to previous 1.29 (colored)

make: rename context and ctxt to scope

This continues the previous commit, in which VAR_GLOBAL, VAR_INTERNAL
and VAR_CMDLINE were renamed.

Renaming the variable 'ctxt' was trivial since that word is used nowhere
else.  In the comments though, each occurrence of the word 'context' had
to be checked individually since the word 'context' was not only used
for referring to a variable scope.  It is also used to distinguish
different situations where characters are escaped in a certain way
('parsing context') and in a few other expressions.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Nov 28 14:08:37 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.28: +1 -11 lines
Diff to previous 1.28 (colored)

make(1): move test for recursive variable to cond-func-empty

Previously, the documentation of that test was much too short to explain
all the effects that happened in the bug situation from 2020-06-28 until
2020-07-02.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Nov 7 00:07:02 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

make(1): fix references to Var_SetWithFlags in tests

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 6 23:11:11 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

make(1): rename getBoolean and s2Boolean

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

make(1): use consistent indentation in variable assignments

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

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 24 08:46:08 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.24: +8 -8 lines
Diff to previous 1.24 (colored)

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

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

Revision 1.24 / (download) - annotate - [select for diffs], Sat Oct 24 08:34:59 2020 UTC (3 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)

make(1): use consistent RCS Id in test files

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 31 16:20:00 2020 UTC (3 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.22: +15 -1 lines
Diff to previous 1.22 (colored)

Add test case for FLAGS dependent on .TARGET

Revision 1.22 / (download) - annotate - [select for diffs], Sun Aug 23 19:30:13 2020 UTC (3 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.21: +1 -12 lines
Diff to previous 1.21 (colored)

make(1): move test for .undef into separate file

Revision 1.21 / (download) - annotate - [select for diffs], Sat Aug 8 14:59:59 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

make(1): fix typo in test

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 30 13:50:27 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.19: +6 -1 lines
Diff to previous 1.19 (colored)

make(1): add test for indirect unclosed variable

The error message mentions only the original variable name right now.
It's left to the Makefile author to see where the actual unclosed
variable value comes from.  From a usability standpoint that's not
optimal, but everything else would need additional cycles even in the
good cases, or it might have side-effects when evaluating a variable
twice (once to detect the error, and a second time to find out the
details of the error).

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jul 28 19:39:43 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.18: +12 -1 lines
Diff to previous 1.18 (colored)

make(1): add test for missing argument validation in .undef

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 28 17:18:40 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.17: +10 -3 lines
Diff to previous 1.17 (colored)

make(1): issue a parse error on unclosed variables

These errors had not been detected before by make.
In pkgsrc, this task as been done by pkglint since 2019-04-07.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jul 26 21:46:10 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.16: +22 -7 lines
Diff to previous 1.16 (colored)

make(1): add coverage test for dynamic = TRUE in Var_Parse

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 26 21:09:49 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.15: +11 -1 lines
Diff to previous 1.15 (colored)

make(1): add test for unclosed variables

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 26 20:30:42 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.14: +19 -1 lines
Diff to previous 1.14 (colored)

make(1): add test for expanding dynamic variables

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 26 11:10:29 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.13: +18 -1 lines
Diff to previous 1.13 (colored)

make(1): add test for appending and exporting a variable

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 26 10:59:56 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.12: +42 -1 lines
Diff to previous 1.12 (colored)

make(1): add tests for appending to a variable

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 26 10:48:21 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.11: +17 -1 lines
Diff to previous 1.11 (colored)

make(1): add test for .MAKE.SAVE_DOLLARS

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jul 19 20:37:57 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

make(1): fix date in comment in unit test

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 2 09:44:51 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.9: +11 -1 lines
Diff to previous 1.9 (colored)

make(1): document the actual cause for "recursive variable"

That wrong error message had nothing to do with the .for loop, it was
only caused because the .for loop uses the :U modifier internally.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 1 18:02:26 2020 UTC (3 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.8: +14 -2 lines
Diff to previous 1.8 (colored)

Fix parsing of nested variables during .for loop

Recent change to cond.c to avoid eval of unnecessary
terms had side effect on constructs like:

.for s in 1 2
.if defined(MAN$s) && !empty(MAN$s)
MAN+= ${MAN$s}
.endif
.endfor

resulting in MAN being flagged as recursive.

When Var_Parse encounters a variable within a variable name
we want to force it to be expanded.
But given the way get_mpt_arg calls Var_Parse we need to check
whether we actually started parsing a variable yet.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 31 18:56:35 2017 UTC (7 years, 2 months ago) by sjg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp, bouyer-socketcan-base1
Changes since 1.7: +5 -4 lines
Diff to previous 1.7 (colored)

Add check to cmpv test to ensure that target specific vars with
modifiers work as expected.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 30 02:46:20 2017 UTC (7 years, 2 months ago) by sjg
Branch: MAIN
Changes since 1.6: +12 -2 lines
Diff to previous 1.6 (colored)

Add :range and :_

:range	replaces var value with an integer sequence one per word
	in the current var value.

:_	stores the current var value in $_ so that it can be referred to
	later in the modifier series.

Reviewed by: christos

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 14 22:58:04 2017 UTC (7 years, 3 months ago) by sjg
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.5: +11 -2 lines
Diff to previous 1.5 (colored)

Allow providing a utc value to :{gm,local}time

Reviewed by: christos

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 12 17:09:29 2015 UTC (8 years, 6 months ago) by sjg
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.4: +6 -2 lines
Diff to previous 1.4 (colored)

Add unit-test for discarded :?

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 11 06:32:15 2015 UTC (8 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Avoid echo -n in unit-tests

Revision 1.3 / (download) - annotate - [select for diffs], Sun Oct 11 04:51:24 2015 UTC (8 years, 6 months ago) by sjg
Branch: MAIN
Changes since 1.2: +32 -2 lines
Diff to previous 1.2 (colored)

Add Boolean wantit to Var_Parse and Var_Subst

wantit will be FALSE when we are just consuming to discard
in which case we skip "expensive" things like Cmd_Exec.

Reviewed by: christos

Revision 1.2 / (download) - annotate - [select for diffs], Sat Aug 30 22:21:08 2014 UTC (9 years, 7 months ago) by sjg
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Replace use of $() with ${}
$() means something special to the shell, so ${} reduces confusion
and is used almost exclusively in the rest of the makefiles.

Discussed with: christos

Revision 1.1 / (download) - annotate - [select for diffs], Thu Aug 21 15:37:13 2014 UTC (9 years, 7 months ago) by apb
Branch: MAIN

Add varmisc.mk, for miscellaneous variable tests.

For now, the only test is copied from
src/tests/usr.bin/make/d_unmatchedvarparen.mk.  This was
the only test in src/tests/usr.bin/make that was not also in
src/usr.bin/make/unit-tests.

XXX: src/tests/usr.bin/mk should be changed to reach over to
src/usr.bin/make/unit-tests, instead of keeping out of date copies
of the tests.

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>