The NetBSD Project

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

[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:32:44 2023 UTC (4 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

tests/make: replace 'variable expressions' with 'expressions'

Revision 1.22 / (download) - annotate - [select for diffs], Sun Nov 19 21:47:52 2023 UTC (4 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

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.21 / (download) - annotate - [select for diffs], Thu Oct 19 18:24:33 2023 UTC (6 months ago) by rillig
Branch: MAIN
Changes since 1.20: +18 -1 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 4 13:42:36 2023 UTC (13 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.19: +81 -59 lines
Diff to previous 1.19 (colored)

tests/make: use proper variable names in short-circuit test

The previous variable names V42, V66, iV1 and iV2 didn't carry enough
information to be readily readable, making the test hard to understand.

Rename the variables to be more expressive.  While here, properly
explain what happened behind the scenes in 2020 and how the evaluation
of conditions was fixed after discovering the actual cause of the
unexpected error messages.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 27 18:54:19 2021 UTC (2 years, 3 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.18: +7 -5 lines
Diff to previous 1.18 (colored)

make: clean up comments

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 12 09:49:09 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.17: +53 -1 lines
Diff to previous 1.17 (colored)

tests/make: add tests for irrelevant function calls

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 7 20:41:58 2021 UTC (2 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.16: +15 -2 lines
Diff to previous 1.16 (colored)

tests/make: expand on the history of unnecessary evaluation

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 14 11:49:37 2021 UTC (3 years, 1 month 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.15: +6 -8 lines
Diff to previous 1.15 (colored)

tests/make: add test for short-circuit evaluation of modifiers

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 1 19:37:23 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

make(1): document handling of irrelevant conditions before 2020-07-09

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 1 19:33:50 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored)

make(1): adjust condition descriptions in test cond-short

Before, the conditions in the output had been expanded, which made them
illegible.  The expanded conditions were unrealistic as well since the
evaluation flags differ between a condition and normal evaluation
(VARE_WANTRES, VARE_UNDEFERR).

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 30 18:20:20 2020 UTC (3 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.12: +36 -9 lines
Diff to previous 1.12 (colored)

make(1): document how short-circuit evaluation behaved on 2020-07-03

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

make(1): add remarks to the tests about conditions

Revision 1.11 / (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.10: +22 -22 lines
Diff to previous 1.10 (colored)

make(1): use consistent indentation in variable assignments

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

Revision 1.10 / (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.9: +2 -2 lines
Diff to previous 1.9 (colored)

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

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

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 19 22:47:09 2020 UTC (3 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.8: +6 -1 lines
Diff to previous 1.8 (colored)

make(1): add empty lines to separate the test cases in cond-short

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 19 21:03:55 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.7: +14 -1 lines
Diff to previous 1.7 (colored)

make(1): add test for assignment operators in conditions

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 9 22:34:09 2020 UTC (3 years, 9 months ago) by sjg
Branch: MAIN
Changes since 1.6: +53 -1 lines
Diff to previous 1.6 (colored)

compare_expression: return after fetch lhs and rhs if !doEval

Otherwise we end up throwing warings/errors for valid
conditionals due to not expanding variables fully.

Add tests to catch this.

Reviewed by: rillig

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 2 16:37:56 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.5: +19 -1 lines
Diff to previous 1.5 (colored)

make(1): demonstrate some more cases for unintended evaluation

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 2 13:04:09 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

make(1): fix unnecessary evaluation of :M and :N modifiers

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 2 12:37:18 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.3: +7 -3 lines
Diff to previous 1.3 (colored)

make(1): demonstrate another unintended variable evaluation

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 2 10:36:58 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.2: +13 -1 lines
Diff to previous 1.2 (colored)

make(1): demonstrate another unnecessary condition evaluation

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 28 11:06:26 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.1: +33 -12 lines
Diff to previous 1.1 (colored)

make(1): fix evaluation of unreachable conditions

Since 2015-10-11, make had evaluated unreachable conditions even though
the manual page said it didn't.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 28 09:42:40 2020 UTC (3 years, 9 months ago) by rillig
Branch: MAIN

make(1): demonstrate bug when evaluating conditions

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>