| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.124 2020/08/28 15:40:53 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.125 2020/08/29 10:52:47 rillig Exp $ |
2 | # | | 2 | # |
3 | # Unit tests for make(1) | | 3 | # Unit tests for make(1) |
4 | # | | 4 | # |
5 | # The main targets are: | | 5 | # The main targets are: |
6 | # | | 6 | # |
7 | # all: | | 7 | # all: |
8 | # run all the tests | | 8 | # run all the tests |
9 | # test: | | 9 | # test: |
10 | # run 'all', and compare to expected results | | 10 | # run 'all', and compare to expected results |
11 | # accept: | | 11 | # accept: |
12 | # move generated output to expected results | | 12 | # move generated output to expected results |
13 | # | | 13 | # |
14 | # Settable variables | | 14 | # Settable variables |
| @@ -340,27 +340,27 @@ FLAGS.opt-var-expanded= -v VAR -v VALUE | | | @@ -340,27 +340,27 @@ FLAGS.opt-var-expanded= -v VAR -v VALUE |
340 | FLAGS.opt-var-literal= -V VAR -V VALUE | | 340 | FLAGS.opt-var-literal= -V VAR -V VALUE |
341 | FLAGS.opt-warnings-as-errors= -W | | 341 | FLAGS.opt-warnings-as-errors= -W |
342 | FLAGS.order= -j1 | | 342 | FLAGS.order= -j1 |
343 | FLAGS.recursive= -dL | | 343 | FLAGS.recursive= -dL |
344 | FLAGS.sh-leading-plus= -n | | 344 | FLAGS.sh-leading-plus= -n |
345 | FLAGS.vardebug= -k -dv FROM_CMDLINE= | | 345 | FLAGS.vardebug= -k -dv FROM_CMDLINE= |
346 | FLAGS.varmod-match-escape= -dv | | 346 | FLAGS.varmod-match-escape= -dv |
347 | FLAGS.varname-dot-shell= -dpv | | 347 | FLAGS.varname-dot-shell= -dpv |
348 | FLAGS.varname-empty= -dv '$${:U}=cmdline-u' '=cmline-plain' | | 348 | FLAGS.varname-empty= -dv '$${:U}=cmdline-u' '=cmline-plain' |
349 | | | 349 | |
350 | # Some tests need extra post-processing. | | 350 | # Some tests need extra post-processing. |
351 | SED_CMDS.opt-debug-g1= -e 's,${.CURDIR},CURDIR,' | | 351 | SED_CMDS.opt-debug-g1= -e 's,${.CURDIR},CURDIR,' |
352 | SED_CMDS.opt-debug-g1+= -e 's,[/[a-z]*/share/mk,/.../share/mk,' | | 352 | SED_CMDS.opt-debug-g1+= -e 's,[/[a-z]*/share/mk,/.../share/mk,' |
353 | SED_CMDS.opt-debug-g1+= -e '/Global Variables/,/Directory Cache/d' | | 353 | SED_CMDS.opt-debug-g1+= -e '/Global Variables:/,/Suffixes:/d' |
354 | SED_CMDS.sh-dots+= -e 's,^${.SHELL}: ,,' -e '/not found/s,command ,,' | | 354 | SED_CMDS.sh-dots+= -e 's,^${.SHELL}: ,,' -e '/not found/s,command ,,' |
355 | SED_CMDS.varmod-subst-regex+= \ | | 355 | SED_CMDS.varmod-subst-regex+= \ |
356 | -e 's,\(Regex compilation error:\).*,\1 (details omitted),' | | 356 | -e 's,\(Regex compilation error:\).*,\1 (details omitted),' |
357 | SED_CMDS.varmod-edge+= -e 's, line [0-9]*:, line omitted:,' | | 357 | SED_CMDS.varmod-edge+= -e 's, line [0-9]*:, line omitted:,' |
358 | SED_CMDS.varshell+= -e 's,^${.SHELL:T}: ,,' | | 358 | SED_CMDS.varshell+= -e 's,^${.SHELL:T}: ,,' |
359 | SED_CMDS.varshell+= -e '/command/s,No such.*,not found,' | | 359 | SED_CMDS.varshell+= -e '/command/s,No such.*,not found,' |
360 | SED_CMDS.varname-dot-shell= -e 's, = /.*, = (details omitted),' | | 360 | SED_CMDS.varname-dot-shell= -e 's, = /.*, = (details omitted),' |
361 | SED_CMDS.varname-dot-shell+= -e 's,"/[^"]*","(details omitted)",' | | 361 | SED_CMDS.varname-dot-shell+= -e 's,"/[^"]*","(details omitted)",' |
362 | SED_CMDS.varname-dot-shell+= -e 's,\[/[^]]*\],[(details omitted)],' | | 362 | SED_CMDS.varname-dot-shell+= -e 's,\[/[^]]*\],[(details omitted)],' |
363 | | | 363 | |
364 | # Some tests need an additional round of postprocessing. | | 364 | # Some tests need an additional round of postprocessing. |
365 | POSTPROC.counter= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p' | | 365 | POSTPROC.counter= ${TOOL_SED} -n -e '/:RELEVANT = yes/,/:RELEVANT = no/p' |
366 | POSTPROC.deptgt-suffixes= \ | | 366 | POSTPROC.deptgt-suffixes= \ |