The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 17 14:07:22 2023 UTC (2 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +15 -1 lines
Diff to previous 1.15 (colored)

tests/make: extend tests for include guards and empty expressions

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 17 09:17:16 2023 UTC (2 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.14: +52 -2 lines
Diff to previous 1.14 (colored)

tests/make: add tests for spacing in multiple-inclusion guards

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 17 08:53:55 2023 UTC (2 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.13: +47 -47 lines
Diff to previous 1.13 (colored)

make: clean up names of local variables

No binary change.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 19 18:24:33 2023 UTC (4 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.12: +27 -7 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 11 04:56:31 2023 UTC (6 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.11: +38 -36 lines
Diff to previous 1.11 (colored)

make: clean up multiple-inclusion guards

No functional change.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 21 21:21:52 2023 UTC (8 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.10: +3 -44 lines
Diff to previous 1.10 (colored)

Cleanup guard tests

The .PARSEFILE:tA tests add no value, the correct form
is ${.PARSEDIR:tA}/${.PARSEFILE} but even there :tA rarely matters.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 21 14:33:36 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.9: +90 -29 lines
Diff to previous 1.9 (colored)

make: skip a file protected by a multiple-inclusion guard more often

In practice, the common situation is that a file is first included,
defines its multiple-inclusion guard and is then skipped instead of
being included again.

The other way round is that the multiple-inclusion guard is defined when
the file is included first.  In that case, the file is now regarded as
guarded as well.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 21 12:16:31 2023 UTC (8 months, 1 week ago) by rillig
Branch: MAIN
Changes since 1.8: +328 -169 lines
Diff to previous 1.8 (colored)

tests/make: clean up and extend tests for multiple-inclusion guards

Multiple-inclusion guards can be defined either as variables or as
targets.  Rename the variable tests so they include the word 'variable'.

Add tests to cover special characters in guard names (both variable and
target), just in case ParseVarnameGuard gets removed someday.

Document the pitfalls associated with choosing a naming scheme for
guards that leads to name clashes, such as with .PARSEFILE without
.PARSEDIR.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 21 04:20:21 2023 UTC (8 months, 1 week ago) by sjg
Branch: MAIN
Changes since 1.7: +34 -3 lines
Diff to previous 1.7 (colored)

Allow guard targets to use variables.

I commonly use __${.PARSEDIR:tA}__ where a unique guard
is needed, __${.PARSEDIR}__ is also useful in many cases.

Combination of patch from rillig and mine

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 20 09:25:34 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.6: +78 -18 lines
Diff to previous 1.6 (colored)

make: allow targets to be used as multiple-inclusion guards

This style is used by FreeBSD, among others.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 19 20:07:35 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.5: +57 -7 lines
Diff to previous 1.5 (colored)

make: add tests for full code coverage of multiple-inclusion guards

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 19 12:53:57 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.4: +30 -32 lines
Diff to previous 1.4 (colored)

make: if a makefile is protected by a guard, only include it once

"looks reasonable" sjg@

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 18 20:43:52 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.3: +36 -2 lines
Diff to previous 1.3 (colored)

tests/make: clean up test for multiple-inclusion guards

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 18 19:30:31 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

tests/make: align variable name in test for multiple-inclusion guards

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 18 19:16:51 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.1: +63 -3 lines
Diff to previous 1.1 (colored)

tests/make: extend test for multiple-inclusion guards

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jun 16 09:25:13 2023 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN

tests/make: add test for multiple-inclusion guards

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>