003 File Manager
Current Path:
/usr/src/contrib/bmake/unit-tests
usr
/
src
/
contrib
/
bmake
/
unit-tests
/
📁
..
📄
Makefile
(19.48 KB)
📄
Makefile.config.in
(102 B)
📄
archive-suffix.exp
(35 B)
📄
archive-suffix.mk
(630 B)
📄
archive.exp
(678 B)
📄
archive.mk
(2.04 KB)
📄
cmd-errors-jobs.exp
(235 B)
📄
cmd-errors-jobs.mk
(858 B)
📄
cmd-errors-lint.exp
(223 B)
📄
cmd-errors-lint.mk
(895 B)
📄
cmd-errors.exp
(235 B)
📄
cmd-errors.mk
(838 B)
📄
cmd-interrupt.exp
(231 B)
📄
cmd-interrupt.mk
(1.77 KB)
📄
cmdline-undefined.exp
(1.01 KB)
📄
cmdline-undefined.mk
(1.23 KB)
📄
cmdline.exp
(165 B)
📄
cmdline.mk
(1.23 KB)
📄
comment.exp
(219 B)
📄
comment.mk
(2.16 KB)
📄
compat-error.exp
(397 B)
📄
compat-error.mk
(1.2 KB)
📄
cond-cmp-numeric-eq.exp
(322 B)
📄
cond-cmp-numeric-eq.mk
(1.64 KB)
📄
cond-cmp-numeric-ge.exp
(14 B)
📄
cond-cmp-numeric-ge.mk
(1.47 KB)
📄
cond-cmp-numeric-gt.exp
(14 B)
📄
cond-cmp-numeric-gt.mk
(1.45 KB)
📄
cond-cmp-numeric-le.exp
(14 B)
📄
cond-cmp-numeric-le.mk
(1.47 KB)
📄
cond-cmp-numeric-lt.exp
(14 B)
📄
cond-cmp-numeric-lt.mk
(1.45 KB)
📄
cond-cmp-numeric-ne.exp
(14 B)
📄
cond-cmp-numeric-ne.mk
(982 B)
📄
cond-cmp-numeric.exp
(787 B)
📄
cond-cmp-numeric.mk
(1.09 KB)
📄
cond-cmp-string.exp
(506 B)
📄
cond-cmp-string.mk
(2.71 KB)
📄
cond-cmp-unary.exp
(104 B)
📄
cond-cmp-unary.mk
(1.37 KB)
📄
cond-eof.exp
(388 B)
📄
cond-eof.mk
(801 B)
📄
cond-func-commands.exp
(14 B)
📄
cond-func-commands.mk
(654 B)
📄
cond-func-defined.exp
(694 B)
📄
cond-func-defined.mk
(1.1 KB)
📄
cond-func-empty.exp
(226 B)
📄
cond-func-empty.mk
(5.75 KB)
📄
cond-func-exists.exp
(14 B)
📄
cond-func-exists.mk
(1.25 KB)
📄
cond-func-make-main.exp
(72 B)
📄
cond-func-make-main.mk
(1.99 KB)
📄
cond-func-make.exp
(48 B)
📄
cond-func-make.mk
(500 B)
📄
cond-func-target.exp
(14 B)
📄
cond-func-target.mk
(644 B)
📄
cond-func.exp
(970 B)
📄
cond-func.mk
(3.48 KB)
📄
cond-late.exp
(79 B)
📄
cond-late.mk
(1.02 KB)
📄
cond-op-and-lint.exp
(149 B)
📄
cond-op-and-lint.mk
(277 B)
📄
cond-op-and.exp
(156 B)
📄
cond-op-and.mk
(641 B)
📄
cond-op-not.exp
(313 B)
📄
cond-op-not.mk
(1.07 KB)
📄
cond-op-or-lint.exp
(148 B)
📄
cond-op-or-lint.mk
(276 B)
📄
cond-op-or.exp
(155 B)
📄
cond-op-or.mk
(651 B)
📄
cond-op-parentheses.exp
(103 B)
📄
cond-op-parentheses.mk
(523 B)
📄
cond-op.exp
(1.02 KB)
📄
cond-op.mk
(3.23 KB)
📄
cond-short.exp
(352 B)
📄
cond-short.mk
(6.74 KB)
📄
cond-token-number.exp
(410 B)
📄
cond-token-number.mk
(1.54 KB)
📄
cond-token-plain.exp
(1.1 KB)
📄
cond-token-plain.mk
(2.81 KB)
📄
cond-token-string.exp
(421 B)
📄
cond-token-string.mk
(895 B)
📄
cond-token-var.exp
(354 B)
📄
cond-token-var.mk
(1.46 KB)
📄
cond-undef-lint.exp
(361 B)
📄
cond-undef-lint.mk
(2.22 KB)
📄
cond1.exp
(456 B)
📄
cond1.mk
(2.11 KB)
📄
counter-append.exp
(36 B)
📄
counter-append.mk
(890 B)
📄
counter.exp
(36 B)
📄
counter.mk
(892 B)
📄
dep-colon-bug-cross-file.exp
(218 B)
📄
dep-colon-bug-cross-file.mk
(1.36 KB)
📄
dep-colon.exp
(70 B)
📄
dep-colon.mk
(761 B)
📄
dep-double-colon-indep.exp
(202 B)
📄
dep-double-colon-indep.mk
(1.23 KB)
📄
dep-double-colon.exp
(58 B)
📄
dep-double-colon.mk
(665 B)
📄
dep-exclam.exp
(14 B)
📄
dep-exclam.mk
(339 B)
📄
dep-none.exp
(68 B)
📄
dep-none.mk
(118 B)
📄
dep-percent.exp
(141 B)
📄
dep-percent.mk
(333 B)
📄
dep-var.exp
(92 B)
📄
dep-var.mk
(3.68 KB)
📄
dep-wildcards.exp
(170 B)
📄
dep-wildcards.mk
(371 B)
📄
dep.exp
(14 B)
📄
dep.mk
(158 B)
📄
depsrc-end.exp
(66 B)
📄
depsrc-end.mk
(363 B)
📄
depsrc-exec.exp
(57 B)
📄
depsrc-exec.mk
(502 B)
📄
depsrc-ignore.exp
(184 B)
📄
depsrc-ignore.mk
(2.27 KB)
📄
depsrc-made.exp
(52 B)
📄
depsrc-made.mk
(423 B)
📄
depsrc-make.exp
(74 B)
📄
depsrc-make.mk
(441 B)
📄
depsrc-meta.exp
(142 B)
📄
depsrc-meta.mk
(613 B)
📄
depsrc-nometa.exp
(14 B)
📄
depsrc-nometa.mk
(171 B)
📄
depsrc-nometa_cmp.exp
(14 B)
📄
depsrc-nometa_cmp.mk
(179 B)
📄
depsrc-nopath.exp
(14 B)
📄
depsrc-nopath.mk
(171 B)
📄
depsrc-notmain.exp
(20 B)
📄
depsrc-notmain.mk
(277 B)
📄
depsrc-optional.exp
(967 B)
📄
depsrc-optional.mk
(550 B)
📄
depsrc-phony.exp
(41 B)
📄
depsrc-phony.mk
(359 B)
📄
depsrc-precious.exp
(14 B)
📄
depsrc-precious.mk
(656 B)
📄
depsrc-recursive.exp
(74 B)
📄
depsrc-recursive.mk
(404 B)
📄
depsrc-silent.exp
(28 B)
📄
depsrc-silent.mk
(358 B)
📄
depsrc-use.exp
(57 B)
📄
depsrc-use.mk
(617 B)
📄
depsrc-usebefore-double-colon.exp
(35 B)
📄
depsrc-usebefore-double-colon.mk
(964 B)
📄
depsrc-usebefore.exp
(57 B)
📄
depsrc-usebefore.mk
(749 B)
📄
depsrc-wait.exp
(93 B)
📄
depsrc-wait.mk
(530 B)
📄
depsrc.exp
(208 B)
📄
depsrc.mk
(857 B)
📄
deptgt-begin-fail-indirect.exp
(85 B)
📄
deptgt-begin-fail-indirect.mk
(466 B)
📄
deptgt-begin-fail.exp
(85 B)
📄
deptgt-begin-fail.mk
(245 B)
📄
deptgt-begin.exp
(255 B)
📄
deptgt-begin.mk
(1.64 KB)
📄
deptgt-default.exp
(14 B)
📄
deptgt-default.mk
(173 B)
📄
deptgt-delete_on_error.exp
(1.6 KB)
📄
deptgt-delete_on_error.mk
(1.27 KB)
📄
deptgt-end-fail-all.exp
(114 B)
📄
deptgt-end-fail-all.mk
(756 B)
📄
deptgt-end-fail-indirect.exp
(91 B)
📄
deptgt-end-fail-indirect.mk
(423 B)
📄
deptgt-end-fail.exp
(3.17 KB)
📄
deptgt-end-fail.mk
(1.74 KB)
📄
deptgt-end-jobs.exp
(185 B)
📄
deptgt-end-jobs.mk
(1.58 KB)
📄
deptgt-end.exp
(243 B)
📄
deptgt-end.mk
(1.39 KB)
📄
deptgt-error.exp
(14 B)
📄
deptgt-error.mk
(235 B)
📄
deptgt-ignore.exp
(14 B)
📄
deptgt-ignore.mk
(253 B)
📄
deptgt-interrupt.exp
(14 B)
📄
deptgt-interrupt.mk
(271 B)
📄
deptgt-main.exp
(14 B)
📄
deptgt-main.mk
(299 B)
📄
deptgt-makeflags.exp
(404 B)
📄
deptgt-makeflags.mk
(2.81 KB)
📄
deptgt-no_parallel.exp
(14 B)
📄
deptgt-no_parallel.mk
(181 B)
📄
deptgt-nopath.exp
(14 B)
📄
deptgt-nopath.mk
(171 B)
📄
deptgt-notparallel.exp
(14 B)
📄
deptgt-notparallel.mk
(181 B)
📄
deptgt-objdir.exp
(14 B)
📄
deptgt-objdir.mk
(171 B)
📄
deptgt-order.exp
(14 B)
📄
deptgt-order.mk
(169 B)
📄
deptgt-path-suffix.exp
(14 B)
📄
deptgt-path-suffix.mk
(181 B)
📄
deptgt-path.exp
(14 B)
📄
deptgt-path.mk
(167 B)
📄
deptgt-phony.exp
(14 B)
📄
deptgt-phony.mk
(169 B)
📄
deptgt-precious.exp
(14 B)
📄
deptgt-precious.mk
(175 B)
📄
deptgt-shell.exp
(14 B)
📄
deptgt-shell.mk
(169 B)
📄
deptgt-silent.exp
(149 B)
📄
deptgt-silent.mk
(499 B)
📄
deptgt-stale.exp
(14 B)
📄
deptgt-stale.mk
(169 B)
📄
deptgt-suffixes.exp
(773 B)
📄
deptgt-suffixes.mk
(939 B)
📄
deptgt.exp
(634 B)
📄
deptgt.mk
(1.63 KB)
📄
dir-expand-path.exp
(110 B)
📄
dir-expand-path.mk
(484 B)
📄
dir.exp
(1.48 KB)
📄
dir.mk
(2.12 KB)
📄
directive-dinclude.exp
(14 B)
📄
directive-dinclude.mk
(202 B)
📄
directive-elif.exp
(1.13 KB)
📄
directive-elif.mk
(3.63 KB)
📄
directive-elifdef.exp
(14 B)
📄
directive-elifdef.mk
(144 B)
📄
directive-elifmake.exp
(14 B)
📄
directive-elifmake.mk
(146 B)
📄
directive-elifndef.exp
(14 B)
📄
directive-elifndef.mk
(146 B)
📄
directive-elifnmake.exp
(14 B)
📄
directive-elifnmake.mk
(148 B)
📄
directive-else.exp
(549 B)
📄
directive-else.mk
(1016 B)
📄
directive-endfor.exp
(144 B)
📄
directive-endfor.mk
(232 B)
📄
directive-endif.exp
(483 B)
📄
directive-endif.mk
(1.17 KB)
📄
directive-error.exp
(14 B)
📄
directive-error.mk
(305 B)
📄
directive-export-env.exp
(14 B)
📄
directive-export-env.mk
(163 B)
📄
directive-export-gmake.exp
(14 B)
📄
directive-export-gmake.mk
(1.95 KB)
📄
directive-export-impl.exp
(2.74 KB)
📄
directive-export-impl.mk
(2.25 KB)
📄
directive-export-literal.exp
(50 B)
📄
directive-export-literal.mk
(316 B)
📄
directive-export.exp
(14 B)
📄
directive-export.mk
(852 B)
📄
directive-for-errors.exp
(1.34 KB)
📄
directive-for-errors.mk
(2.78 KB)
📄
directive-for-escape.exp
(2.57 KB)
📄
directive-for-escape.mk
(3.3 KB)
📄
directive-for-generating-endif.exp
(357 B)
📄
directive-for-generating-endif.mk
(718 B)
📄
directive-for-lines.exp
(368 B)
📄
directive-for-lines.mk
(634 B)
📄
directive-for-null.exp
(315 B)
📄
directive-for-null.mk
(719 B)
📄
directive-for.exp
(1.06 KB)
📄
directive-for.mk
(4.85 KB)
📄
directive-hyphen-include.exp
(14 B)
📄
directive-hyphen-include.mk
(228 B)
📄
directive-if-nested.exp
(86 B)
📄
directive-if-nested.mk
(607 B)
📄
directive-if.exp
(1.02 KB)
📄
directive-if.mk
(2.19 KB)
📄
directive-ifdef.exp
(89 B)
📄
directive-ifdef.mk
(396 B)
📄
directive-ifmake.exp
(466 B)
📄
directive-ifmake.mk
(2.3 KB)
📄
directive-ifndef.exp
(67 B)
📄
directive-ifndef.mk
(543 B)
📄
directive-ifnmake.exp
(66 B)
📄
directive-ifnmake.mk
(421 B)
📄
directive-include-fatal.exp
(169 B)
📄
directive-include-fatal.mk
(1001 B)
📄
directive-include.exp
(440 B)
📄
directive-include.mk
(996 B)
📄
directive-info.exp
(822 B)
📄
directive-info.mk
(1.24 KB)
📄
directive-misspellings.exp
(3.09 KB)
📄
directive-misspellings.mk
(2.27 KB)
📄
directive-sinclude.exp
(14 B)
📄
directive-sinclude.mk
(405 B)
📄
directive-undef.exp
(227 B)
📄
directive-undef.mk
(2.24 KB)
📄
directive-unexport-env.exp
(910 B)
📄
directive-unexport-env.mk
(578 B)
📄
directive-unexport.exp
(228 B)
📄
directive-unexport.mk
(761 B)
📄
directive-warning.exp
(607 B)
📄
directive-warning.mk
(607 B)
📄
directive.exp
(471 B)
📄
directive.mk
(1.01 KB)
📄
dollar.exp
(1.5 KB)
📄
dollar.mk
(2.59 KB)
📄
doterror.exp
(135 B)
📄
doterror.mk
(250 B)
📄
dotwait.exp
(468 B)
📄
dotwait.mk
(2.26 KB)
📄
envfirst.exp
(14 B)
📄
envfirst.mk
(1 KB)
📄
error.exp
(172 B)
📄
error.mk
(349 B)
📄
escape.exp
(4.26 KB)
📄
escape.mk
(7.03 KB)
📄
export-all.exp
(210 B)
📄
export-all.mk
(462 B)
📄
export-env.exp
(196 B)
📄
export-env.mk
(598 B)
📄
export-variants.exp
(14 B)
📄
export-variants.mk
(984 B)
📄
export.exp
(115 B)
📄
export.mk
(1.1 KB)
📄
forloop.exp
(876 B)
📄
forloop.mk
(1.02 KB)
📄
forsubst.exp
(34 B)
📄
forsubst.mk
(725 B)
📄
gnode-submake.exp
(659 B)
📄
gnode-submake.mk
(1.09 KB)
📄
hanoi-include.exp
(1.38 KB)
📄
hanoi-include.mk
(1.38 KB)
📄
impsrc.exp
(182 B)
📄
impsrc.mk
(1.75 KB)
📄
include-main.exp
(445 B)
📄
include-main.mk
(1.11 KB)
📄
include-sub.mk
(1.11 KB)
📄
include-subsub.mk
(190 B)
📄
job-flags.exp
(196 B)
📄
job-flags.mk
(754 B)
📄
job-output-long-lines.exp
(14 B)
📄
job-output-long-lines.mk
(1.06 KB)
📄
jobs-error-indirect.exp
(114 B)
📄
jobs-error-indirect.mk
(482 B)
📄
jobs-error-nested-make.exp
(182 B)
📄
jobs-error-nested-make.mk
(586 B)
📄
jobs-error-nested.exp
(237 B)
📄
jobs-error-nested.mk
(499 B)
📄
lint.exp
(126 B)
📄
lint.mk
(609 B)
📄
make-exported.exp
(22 B)
📄
make-exported.mk
(1004 B)
📄
meta-cmd-cmp.exp
(1.12 KB)
📄
meta-cmd-cmp.mk
(1.05 KB)
📄
moderrs.exp
(3.63 KB)
📄
moderrs.mk
(5.63 KB)
📄
modmatch.exp
(660 B)
📄
modmatch.mk
(630 B)
📄
modmisc.exp
(392 B)
📄
modmisc.mk
(1.96 KB)
📄
modts.exp
(362 B)
📄
modts.mk
(1.57 KB)
📄
modword.exp
(3.76 KB)
📄
modword.mk
(5.82 KB)
📄
objdir-writable.exp
(92 B)
📄
objdir-writable.mk
(680 B)
📄
opt-backwards.exp
(14 B)
📄
opt-backwards.mk
(144 B)
📄
opt-chdir.exp
(9.92 KB)
📄
opt-chdir.mk
(933 B)
📄
opt-debug-all.exp
(14 B)
📄
opt-debug-all.mk
(278 B)
📄
opt-debug-archive.exp
(14 B)
📄
opt-debug-archive.mk
(202 B)
📄
opt-debug-cond.exp
(14 B)
📄
opt-debug-cond.mk
(284 B)
📄
opt-debug-curdir.exp
(14 B)
📄
opt-debug-curdir.mk
(186 B)
📄
opt-debug-dir.exp
(14 B)
📄
opt-debug-dir.mk
(209 B)
📄
opt-debug-errors.exp
(844 B)
📄
opt-debug-errors.mk
(1.25 KB)
📄
opt-debug-file.exp
(14 B)
📄
opt-debug-file.mk
(1.31 KB)
📄
opt-debug-for.exp
(394 B)
📄
opt-debug-for.mk
(794 B)
📄
opt-debug-graph1.exp
(1.75 KB)
📄
opt-debug-graph1.mk
(414 B)
📄
opt-debug-graph2.exp
(14 B)
📄
opt-debug-graph2.mk
(233 B)
📄
opt-debug-graph3.exp
(14 B)
📄
opt-debug-graph3.mk
(205 B)
📄
opt-debug-hash.exp
(14 B)
📄
opt-debug-hash.mk
(277 B)
📄
opt-debug-jobs.exp
(701 B)
📄
opt-debug-jobs.mk
(1.16 KB)
📄
opt-debug-lint.exp
(426 B)
📄
opt-debug-lint.mk
(2.91 KB)
📄
opt-debug-loud.exp
(37 B)
📄
opt-debug-loud.mk
(754 B)
📄
opt-debug-making.exp
(14 B)
📄
opt-debug-making.mk
(227 B)
📄
opt-debug-meta.exp
(14 B)
📄
opt-debug-meta.mk
(216 B)
📄
opt-debug-no-rm.exp
(14 B)
📄
opt-debug-no-rm.mk
(373 B)
📄
opt-debug-parse.exp
(14 B)
📄
opt-debug-parse.mk
(198 B)
📄
opt-debug-suff.exp
(14 B)
📄
opt-debug-suff.mk
(251 B)
📄
opt-debug-targets.exp
(14 B)
📄
opt-debug-targets.mk
(255 B)
📄
opt-debug-var.exp
(14 B)
📄
opt-debug-var.mk
(214 B)
📄
opt-debug-varraw.exp
(14 B)
📄
opt-debug-varraw.mk
(306 B)
📄
opt-debug-x-trace.exp
(14 B)
📄
opt-debug-x-trace.mk
(258 B)
📄
opt-debug.exp
(105 B)
📄
opt-debug.mk
(315 B)
📄
opt-define.exp
(14 B)
📄
opt-define.mk
(141 B)
📄
opt-env.exp
(14 B)
📄
opt-env.mk
(138 B)
📄
opt-file.exp
(284 B)
📄
opt-file.mk
(3.27 KB)
📄
opt-ignore.exp
(191 B)
📄
opt-ignore.mk
(728 B)
📄
opt-include-dir.exp
(14 B)
📄
opt-include-dir.mk
(146 B)
📄
opt-jobs-internal.exp
(14 B)
📄
opt-jobs-internal.mk
(177 B)
📄
opt-jobs-no-action.exp
(905 B)
📄
opt-jobs-no-action.mk
(3.04 KB)
📄
opt-jobs.exp
(14 B)
📄
opt-jobs.mk
(139 B)
📄
opt-keep-going-multiple.exp
(146 B)
📄
opt-keep-going-multiple.mk
(588 B)
📄
opt-keep-going.exp
(166 B)
📄
opt-keep-going.mk
(751 B)
📄
opt-m-include-dir.exp
(17 B)
📄
opt-m-include-dir.mk
(1.81 KB)
📄
opt-no-action-at-all.exp
(14 B)
📄
opt-no-action-at-all.mk
(151 B)
📄
opt-no-action-runflags.exp
(521 B)
📄
opt-no-action-runflags.mk
(817 B)
📄
opt-no-action.exp
(300 B)
📄
opt-no-action.mk
(1.06 KB)
📄
opt-query.exp
(37 B)
📄
opt-query.mk
(760 B)
📄
opt-raw.exp
(14 B)
📄
opt-raw.mk
(138 B)
📄
opt-silent.exp
(14 B)
📄
opt-silent.mk
(141 B)
📄
opt-touch-jobs.exp
(102 B)
📄
opt-touch-jobs.mk
(830 B)
📄
opt-touch.exp
(102 B)
📄
opt-touch.mk
(480 B)
📄
opt-tracefile.exp
(14 B)
📄
opt-tracefile.mk
(144 B)
📄
opt-var-expanded.exp
(35 B)
📄
opt-var-expanded.mk
(180 B)
📄
opt-var-literal.exp
(40 B)
📄
opt-var-literal.mk
(179 B)
📄
opt-warnings-as-errors.exp
(279 B)
📄
opt-warnings-as-errors.mk
(253 B)
📄
opt-where-am-i.exp
(14 B)
📄
opt-where-am-i.mk
(145 B)
📄
opt-x-reduce-exported.exp
(14 B)
📄
opt-x-reduce-exported.mk
(152 B)
📄
opt.exp
(807 B)
📄
opt.mk
(916 B)
📄
order.exp
(70 B)
📄
order.mk
(415 B)
📄
parse-var.exp
(14 B)
📄
parse-var.mk
(309 B)
📄
phony-end.exp
(219 B)
📄
phony-end.mk
(195 B)
📄
posix.exp
(652 B)
📄
posix.mk
(539 B)
📄
posix1.exp
(4.25 KB)
📄
posix1.mk
(5.34 KB)
📄
recursive.exp
(220 B)
📄
recursive.mk
(1.33 KB)
📄
sh-dots.exp
(484 B)
📄
sh-dots.mk
(1.55 KB)
📄
sh-errctl.exp
(520 B)
📄
sh-errctl.mk
(842 B)
📄
sh-flags.exp
(72.36 KB)
📄
sh-flags.mk
(3.4 KB)
📄
sh-jobs-error.exp
(14 B)
📄
sh-jobs-error.mk
(218 B)
📄
sh-jobs.exp
(147 B)
📄
sh-jobs.mk
(1.09 KB)
📄
sh-leading-at.exp
(54 B)
📄
sh-leading-at.mk
(374 B)
📄
sh-leading-hyphen.exp
(14 B)
📄
sh-leading-hyphen.mk
(262 B)
📄
sh-leading-plus.exp
(92 B)
📄
sh-leading-plus.mk
(261 B)
📄
sh-meta-chars.exp
(14 B)
📄
sh-meta-chars.mk
(879 B)
📄
sh-multi-line.exp
(14 B)
📄
sh-multi-line.mk
(191 B)
📄
sh-single-line.exp
(14 B)
📄
sh-single-line.mk
(316 B)
📄
sh.exp
(14 B)
📄
sh.mk
(222 B)
📄
shell-csh.exp
(116 B)
📄
shell-csh.mk
(1.1 KB)
📄
shell-custom.exp
(103 B)
📄
shell-custom.mk
(305 B)
📄
shell-ksh.exp
(48 B)
📄
shell-ksh.mk
(209 B)
📄
shell-sh.exp
(48 B)
📄
shell-sh.mk
(268 B)
📄
suff-add-later.exp
(694 B)
📄
suff-add-later.mk
(1.15 KB)
📄
suff-clear-regular.exp
(224 B)
📄
suff-clear-regular.mk
(1.02 KB)
📄
suff-clear-single.exp
(134 B)
📄
suff-clear-single.mk
(459 B)
📄
suff-incomplete.exp
(1.52 KB)
📄
suff-incomplete.mk
(922 B)
📄
suff-lookup.exp
(2.26 KB)
📄
suff-lookup.mk
(938 B)
📄
suff-main-several.exp
(4.29 KB)
📄
suff-main-several.mk
(1.18 KB)
📄
suff-main.exp
(33 B)
📄
suff-main.mk
(780 B)
📄
suff-phony.exp
(350 B)
📄
suff-phony.mk
(407 B)
📄
suff-rebuild.exp
(2.5 KB)
📄
suff-rebuild.mk
(1.36 KB)
📄
suff-self.exp
(127 B)
📄
suff-self.mk
(244 B)
📄
suff-transform-debug.exp
(1.45 KB)
📄
suff-transform-debug.mk
(261 B)
📄
suff-transform-endless.exp
(1.32 KB)
📄
suff-transform-endless.mk
(1.32 KB)
📄
suff-transform-expand.exp
(213 B)
📄
suff-transform-expand.mk
(725 B)
📄
suff-transform-select.exp
(1.34 KB)
📄
suff-transform-select.mk
(863 B)
📄
sunshcmd.exp
(48 B)
📄
sunshcmd.mk
(254 B)
📄
ternary.exp
(187 B)
📄
ternary.mk
(267 B)
📄
unexport-env.exp
(35 B)
📄
unexport-env.mk
(372 B)
📄
unexport.exp
(68 B)
📄
unexport.mk
(541 B)
📄
use-inference.exp
(185 B)
📄
use-inference.mk
(1.17 KB)
📄
var-class-cmdline.exp
(14 B)
📄
var-class-cmdline.mk
(161 B)
📄
var-class-env.exp
(14 B)
📄
var-class-env.mk
(164 B)
📄
var-class-global.exp
(14 B)
📄
var-class-global.mk
(174 B)
📄
var-class-local-legacy.exp
(14 B)
📄
var-class-local-legacy.mk
(180 B)
📄
var-class-local.exp
(204 B)
📄
var-class-local.mk
(1.25 KB)
📄
var-class.exp
(14 B)
📄
var-class.mk
(241 B)
📄
var-op-append.exp
(305 B)
📄
var-op-append.mk
(1.16 KB)
📄
var-op-assign.exp
(242 B)
📄
var-op-assign.mk
(3.28 KB)
📄
var-op-default.exp
(14 B)
📄
var-op-default.mk
(2.76 KB)
📄
var-op-expand.exp
(14 B)
📄
var-op-expand.mk
(5.04 KB)
📄
var-op-shell.exp
(383 B)
📄
var-op-shell.mk
(2.42 KB)
📄
var-op-sunsh.exp
(14 B)
📄
var-op-sunsh.mk
(4.28 KB)
📄
var-op.exp
(14 B)
📄
var-op.mk
(144 B)
📄
var-recursive.exp
(272 B)
📄
var-recursive.mk
(1.27 KB)
📄
varcmd.exp
(367 B)
📄
varcmd.mk
(894 B)
📄
vardebug.exp
(4.33 KB)
📄
vardebug.mk
(1.52 KB)
📄
varfind.exp
(640 B)
📄
varfind.mk
(651 B)
📄
varmisc.exp
(1.63 KB)
📄
varmisc.mk
(5.19 KB)
📄
varmod-assign.exp
(558 B)
📄
varmod-assign.mk
(4.28 KB)
📄
varmod-defined.exp
(1.15 KB)
📄
varmod-defined.mk
(3.16 KB)
📄
varmod-edge.exp
(1.02 KB)
📄
varmod-edge.mk
(5.93 KB)
📄
varmod-exclam-shell.exp
(14 B)
📄
varmod-exclam-shell.mk
(1.07 KB)
📄
varmod-extension.exp
(294 B)
📄
varmod-extension.mk
(316 B)
📄
varmod-gmtime.exp
(946 B)
📄
varmod-gmtime.mk
(3.75 KB)
📄
varmod-hash.exp
(113 B)
📄
varmod-hash.mk
(1.78 KB)
📄
varmod-head.exp
(350 B)
📄
varmod-head.mk
(319 B)
📄
varmod-ifelse.exp
(1.14 KB)
📄
varmod-ifelse.mk
(4.28 KB)
📄
varmod-indirect.exp
(3.55 KB)
📄
varmod-indirect.mk
(5.01 KB)
📄
varmod-l-name-to-value.exp
(14 B)
📄
varmod-l-name-to-value.mk
(1.27 KB)
📄
varmod-localtime.exp
(991 B)
📄
varmod-localtime.mk
(3.81 KB)
📄
varmod-loop.exp
(930 B)
📄
varmod-loop.mk
(5.8 KB)
📄
varmod-match-escape.exp
(2.84 KB)
📄
varmod-match-escape.mk
(2.75 KB)
📄
varmod-match.exp
(621 B)
📄
varmod-match.mk
(1.6 KB)
📄
varmod-no-match.exp
(14 B)
📄
varmod-no-match.mk
(203 B)
📄
varmod-order-reverse.exp
(14 B)
📄
varmod-order-reverse.mk
(343 B)
📄
varmod-order-shuffle.exp
(14 B)
📄
varmod-order-shuffle.mk
(1.36 KB)
📄
varmod-order.exp
(302 B)
📄
varmod-order.mk
(421 B)
📄
varmod-path.exp
(106 B)
📄
varmod-path.mk
(1.04 KB)
📄
varmod-quote-dollar.exp
(14 B)
📄
varmod-quote-dollar.mk
(283 B)
📄
varmod-quote.exp
(14 B)
📄
varmod-quote.mk
(673 B)
📄
varmod-range.exp
(821 B)
📄
varmod-range.mk
(2.4 KB)
📄
varmod-remember.exp
(47 B)
📄
varmod-remember.mk
(549 B)
📄
varmod-root.exp
(254 B)
📄
varmod-root.mk
(294 B)
📄
varmod-select-words.exp
(14 B)
📄
varmod-select-words.mk
(219 B)
📄
varmod-shell.exp
(114 B)
📄
varmod-shell.mk
(1.04 KB)
📄
varmod-subst-regex.exp
(757 B)
📄
varmod-subst-regex.mk
(4.25 KB)
📄
varmod-subst.exp
(1.17 KB)
📄
varmod-subst.mk
(6.52 KB)
📄
varmod-sysv.exp
(227 B)
📄
varmod-sysv.mk
(7.78 KB)
📄
varmod-tail.exp
(367 B)
📄
varmod-tail.mk
(321 B)
📄
varmod-to-abs.exp
(221 B)
📄
varmod-to-abs.mk
(1000 B)
📄
varmod-to-lower.exp
(14 B)
📄
varmod-to-lower.mk
(406 B)
📄
varmod-to-many-words.exp
(14 B)
📄
varmod-to-many-words.mk
(494 B)
📄
varmod-to-one-word.exp
(14 B)
📄
varmod-to-one-word.mk
(506 B)
📄
varmod-to-separator.exp
(1.15 KB)
📄
varmod-to-separator.mk
(6.26 KB)
📄
varmod-to-upper.exp
(34 B)
📄
varmod-to-upper.mk
(525 B)
📄
varmod-undefined.exp
(14 B)
📄
varmod-undefined.mk
(2 KB)
📄
varmod-unique.exp
(14 B)
📄
varmod-unique.mk
(987 B)
📄
varmod.exp
(421 B)
📄
varmod.mk
(1.58 KB)
📄
varname-dollar.exp
(230 B)
📄
varname-dollar.mk
(1020 B)
📄
varname-dot-alltargets.exp
(64 B)
📄
varname-dot-alltargets.mk
(615 B)
📄
varname-dot-curdir.exp
(14 B)
📄
varname-dot-curdir.mk
(1.28 KB)
📄
varname-dot-includedfromdir.exp
(14 B)
📄
varname-dot-includedfromdir.mk
(169 B)
📄
varname-dot-includedfromfile.exp
(14 B)
📄
varname-dot-includedfromfile.mk
(171 B)
📄
varname-dot-includes.exp
(34 B)
📄
varname-dot-includes.mk
(402 B)
📄
varname-dot-libs.exp
(30 B)
📄
varname-dot-libs.mk
(374 B)
📄
varname-dot-make-dependfile.exp
(14 B)
📄
varname-dot-make-dependfile.mk
(169 B)
📄
varname-dot-make-expand_variables.exp
(14 B)
📄
varname-dot-make-expand_variables.mk
(181 B)
📄
varname-dot-make-exported.exp
(14 B)
📄
varname-dot-make-exported.mk
(165 B)
📄
varname-dot-make-jobs-prefix.exp
(14 B)
📄
varname-dot-make-jobs-prefix.mk
(171 B)
📄
varname-dot-make-jobs.exp
(14 B)
📄
varname-dot-make-jobs.mk
(157 B)
📄
varname-dot-make-level.exp
(14 B)
📄
varname-dot-make-level.mk
(159 B)
📄
varname-dot-make-makefile_preference.exp
(14 B)
📄
varname-dot-make-makefile_preference.mk
(187 B)
📄
varname-dot-make-makefiles.exp
(14 B)
📄
varname-dot-make-makefiles.mk
(167 B)
📄
varname-dot-make-meta-bailiwick.exp
(14 B)
📄
varname-dot-make-meta-bailiwick.mk
(177 B)
📄
varname-dot-make-meta-created.exp
(14 B)
📄
varname-dot-make-meta-created.mk
(173 B)
📄
varname-dot-make-meta-files.exp
(14 B)
📄
varname-dot-make-meta-files.mk
(169 B)
📄
varname-dot-make-meta-ignore_filter.exp
(14 B)
📄
varname-dot-make-meta-ignore_filter.mk
(185 B)
📄
varname-dot-make-meta-ignore_paths.exp
(14 B)
📄
varname-dot-make-meta-ignore_paths.mk
(183 B)
📄
varname-dot-make-meta-ignore_patterns.exp
(14 B)
📄
varname-dot-make-meta-ignore_patterns.mk
(189 B)
📄
varname-dot-make-meta-prefix.exp
(14 B)
📄
varname-dot-make-meta-prefix.mk
(171 B)
📄
varname-dot-make-mode.exp
(14 B)
📄
varname-dot-make-mode.mk
(157 B)
📄
varname-dot-make-path_filemon.exp
(14 B)
📄
varname-dot-make-path_filemon.mk
(173 B)
📄
varname-dot-make-pid.exp
(14 B)
📄
varname-dot-make-pid.mk
(155 B)
📄
varname-dot-make-ppid.exp
(14 B)
📄
varname-dot-make-ppid.mk
(157 B)
📄
varname-dot-make-save_dollars.exp
(14 B)
📄
varname-dot-make-save_dollars.mk
(173 B)
📄
varname-dot-makeflags.exp
(72 B)
📄
varname-dot-makeflags.mk
(596 B)
📄
varname-dot-makeoverrides.exp
(14 B)
📄
varname-dot-makeoverrides.mk
(170 B)
📄
varname-dot-newline.exp
(130 B)
📄
varname-dot-newline.mk
(622 B)
📄
varname-dot-objdir.exp
(14 B)
📄
varname-dot-objdir.mk
(151 B)
📄
varname-dot-parsedir.exp
(275 B)
📄
varname-dot-parsedir.mk
(1.33 KB)
📄
varname-dot-parsefile.exp
(279 B)
📄
varname-dot-parsefile.mk
(1.14 KB)
📄
varname-dot-path.exp
(14 B)
📄
varname-dot-path.mk
(1.49 KB)
📄
varname-dot-shell.exp
(1.43 KB)
📄
varname-dot-shell.mk
(730 B)
📄
varname-dot-targets.exp
(14 B)
📄
varname-dot-targets.mk
(153 B)
📄
varname-empty.exp
(738 B)
📄
varname-empty.mk
(2.46 KB)
📄
varname-make.exp
(14 B)
📄
varname-make.mk
(142 B)
📄
varname-make_print_var_on_error-jobs.exp
(329 B)
📄
varname-make_print_var_on_error-jobs.mk
(1.11 KB)
📄
varname-make_print_var_on_error.exp
(176 B)
📄
varname-make_print_var_on_error.mk
(906 B)
📄
varname-makefile.exp
(51 B)
📄
varname-makefile.mk
(1.39 KB)
📄
varname-makeflags.exp
(14 B)
📄
varname-makeflags.mk
(825 B)
📄
varname-pwd.exp
(14 B)
📄
varname-pwd.mk
(140 B)
📄
varname-vpath.exp
(501 B)
📄
varname-vpath.mk
(1.22 KB)
📄
varname.exp
(1.16 KB)
📄
varname.mk
(1.56 KB)
📄
varparse-dynamic.exp
(235 B)
📄
varparse-dynamic.mk
(1.2 KB)
📄
varparse-errors.exp
(206 B)
📄
varparse-errors.mk
(1.59 KB)
📄
varparse-mod.exp
(14 B)
📄
varparse-mod.mk
(1.78 KB)
📄
varparse-undef-partial.exp
(14 B)
📄
varparse-undef-partial.mk
(2.55 KB)
📄
varquote.exp
(196 B)
📄
varquote.mk
(412 B)
Editing: Makefile
# $Id: Makefile,v 1.138 2021/01/01 22:55:09 sjg Exp $ # # $NetBSD: Makefile,v 1.260 2020/12/31 03:05:12 rillig Exp $ # # Unit tests for make(1) # # The main targets are: # # all: # run all the tests # test: # run 'all', and compare to expected results # accept: # move generated output to expected results # # Settable variables # # TEST_MAKE # The make program to be tested. # # # Adding a test case # # Each feature should get its own set of tests in its own suitably # named makefile (*.mk), with its own set of expected results (*.exp), # and it should be added to the TESTS list. # # A few *.mk files are helper files for other tests (such as include-sub.mk) # and are thus not added to TESTS. Such files must be ignored in # src/tests/usr.bin/make/t_make.sh. # # we use these below but we might be an older make .MAKE.OS?= ${uname -s:L:sh} .MAKE.UID?= ${id -u:L:sh} # Each test is in a sub-makefile. # Keep the list sorted. # Any test that is commented out must be ignored in # src/tests/usr.bin/make/t_make.sh as well. #TESTS+= archive #TESTS+= archive-suffix TESTS+= cmd-errors TESTS+= cmd-errors-jobs TESTS+= cmd-errors-lint TESTS+= cmd-interrupt TESTS+= cmdline TESTS+= cmdline-undefined TESTS+= comment TESTS+= compat-error TESTS+= cond-cmp-numeric TESTS+= cond-cmp-numeric-eq TESTS+= cond-cmp-numeric-ge TESTS+= cond-cmp-numeric-gt TESTS+= cond-cmp-numeric-le TESTS+= cond-cmp-numeric-lt TESTS+= cond-cmp-numeric-ne TESTS+= cond-cmp-string TESTS+= cond-cmp-unary TESTS+= cond-eof TESTS+= cond-func TESTS+= cond-func-commands TESTS+= cond-func-defined TESTS+= cond-func-empty TESTS+= cond-func-exists TESTS+= cond-func-make TESTS+= cond-func-make-main TESTS+= cond-func-target TESTS+= cond-late TESTS+= cond-op TESTS+= cond-op-and TESTS+= cond-op-and-lint TESTS+= cond-op-not TESTS+= cond-op-or TESTS+= cond-op-or-lint TESTS+= cond-op-parentheses TESTS+= cond-short TESTS+= cond-token-number TESTS+= cond-token-plain TESTS+= cond-token-string TESTS+= cond-token-var TESTS+= cond-undef-lint TESTS+= cond1 TESTS+= counter TESTS+= counter-append TESTS+= dep TESTS+= dep-colon TESTS+= dep-colon-bug-cross-file TESTS+= dep-double-colon TESTS+= dep-double-colon-indep TESTS+= dep-exclam TESTS+= dep-none TESTS+= dep-percent TESTS+= dep-var TESTS+= dep-wildcards TESTS+= depsrc TESTS+= depsrc-end TESTS+= depsrc-exec TESTS+= depsrc-ignore TESTS+= depsrc-made TESTS+= depsrc-make TESTS+= depsrc-meta TESTS+= depsrc-nometa TESTS+= depsrc-nometa_cmp TESTS+= depsrc-nopath TESTS+= depsrc-notmain TESTS+= depsrc-optional TESTS+= depsrc-phony TESTS+= depsrc-precious TESTS+= depsrc-recursive TESTS+= depsrc-silent TESTS+= depsrc-use TESTS+= depsrc-usebefore TESTS+= depsrc-usebefore-double-colon TESTS+= depsrc-wait TESTS+= deptgt TESTS+= deptgt-begin TESTS+= deptgt-begin-fail TESTS+= deptgt-begin-fail-indirect TESTS+= deptgt-default TESTS+= deptgt-delete_on_error TESTS+= deptgt-end TESTS+= deptgt-end-fail TESTS+= deptgt-end-fail-all TESTS+= deptgt-end-fail-indirect TESTS+= deptgt-end-jobs TESTS+= deptgt-error TESTS+= deptgt-ignore TESTS+= deptgt-interrupt TESTS+= deptgt-main TESTS+= deptgt-makeflags TESTS+= deptgt-no_parallel TESTS+= deptgt-nopath TESTS+= deptgt-notparallel TESTS+= deptgt-objdir TESTS+= deptgt-order TESTS+= deptgt-path TESTS+= deptgt-path-suffix TESTS+= deptgt-phony TESTS+= deptgt-precious TESTS+= deptgt-shell TESTS+= deptgt-silent TESTS+= deptgt-stale TESTS+= deptgt-suffixes TESTS+= dir TESTS+= dir-expand-path TESTS+= directive TESTS+= directive-dinclude TESTS+= directive-elif TESTS+= directive-elifdef TESTS+= directive-elifmake TESTS+= directive-elifndef TESTS+= directive-elifnmake TESTS+= directive-else TESTS+= directive-endfor TESTS+= directive-endif TESTS+= directive-error TESTS+= directive-export TESTS+= directive-export-env TESTS+= directive-export-impl TESTS+= directive-export-gmake TESTS+= directive-export-literal TESTS+= directive-for TESTS+= directive-for-errors TESTS+= directive-for-escape TESTS+= directive-for-generating-endif TESTS+= directive-for-lines TESTS+= directive-for-null TESTS+= directive-hyphen-include TESTS+= directive-if TESTS+= directive-if-nested TESTS+= directive-ifdef TESTS+= directive-ifmake TESTS+= directive-ifndef TESTS+= directive-ifnmake TESTS+= directive-include TESTS+= directive-include-fatal TESTS+= directive-info TESTS+= directive-misspellings TESTS+= directive-sinclude TESTS+= directive-undef TESTS+= directive-unexport TESTS+= directive-unexport-env TESTS+= directive-warning TESTS+= dollar TESTS+= doterror TESTS+= dotwait TESTS+= envfirst TESTS+= error TESTS+= # escape # broken by reverting POSIX changes TESTS+= export TESTS+= export-all TESTS+= export-env TESTS+= export-variants TESTS+= forloop TESTS+= forsubst TESTS+= gnode-submake TESTS+= hanoi-include TESTS+= impsrc TESTS+= include-main TESTS+= job-flags #TESTS+= job-output-long-lines TESTS+= jobs-error-indirect TESTS+= jobs-error-nested TESTS+= jobs-error-nested-make TESTS+= lint TESTS+= make-exported TESTS+= meta-cmd-cmp TESTS+= moderrs TESTS+= modmatch TESTS+= modmisc TESTS+= modts TESTS+= modword .if ${.MAKE.UID} > 0 TESTS+= objdir-writable .endif TESTS+= opt TESTS+= opt-backwards TESTS+= opt-chdir TESTS+= opt-debug TESTS+= opt-debug-all TESTS+= opt-debug-archive TESTS+= opt-debug-curdir TESTS+= opt-debug-cond TESTS+= opt-debug-dir TESTS+= opt-debug-errors TESTS+= opt-debug-file TESTS+= opt-debug-for TESTS+= opt-debug-graph1 TESTS+= opt-debug-graph2 TESTS+= opt-debug-graph3 TESTS+= opt-debug-hash #TESTS+= opt-debug-jobs TESTS+= opt-debug-lint TESTS+= opt-debug-loud TESTS+= opt-debug-meta TESTS+= opt-debug-making TESTS+= opt-debug-no-rm TESTS+= opt-debug-parse TESTS+= opt-debug-suff TESTS+= opt-debug-targets TESTS+= opt-debug-varraw TESTS+= opt-debug-var TESTS+= opt-debug-x-trace TESTS+= opt-define TESTS+= opt-env TESTS+= opt-file TESTS+= opt-ignore TESTS+= opt-include-dir TESTS+= opt-jobs TESTS+= opt-jobs-internal TESTS+= opt-jobs-no-action TESTS+= opt-keep-going TESTS+= opt-keep-going-multiple TESTS+= opt-m-include-dir TESTS+= opt-no-action TESTS+= opt-no-action-at-all TESTS+= opt-no-action-runflags TESTS+= opt-query TESTS+= opt-raw TESTS+= opt-silent TESTS+= opt-touch TESTS+= opt-touch-jobs TESTS+= opt-tracefile TESTS+= opt-var-expanded TESTS+= opt-var-literal TESTS+= opt-warnings-as-errors TESTS+= opt-where-am-i TESTS+= opt-x-reduce-exported TESTS+= order TESTS+= parse-var TESTS+= phony-end TESTS+= posix TESTS+= # posix1 # broken by reverting POSIX changes TESTS+= recursive TESTS+= sh TESTS+= sh-dots TESTS+= sh-errctl TESTS+= sh-flags TESTS+= sh-jobs TESTS+= sh-jobs-error TESTS+= sh-leading-at TESTS+= sh-leading-hyphen TESTS+= sh-leading-plus TESTS+= sh-meta-chars TESTS+= sh-multi-line TESTS+= sh-single-line TESTS+= shell-csh TESTS+= shell-custom .if exists(/bin/ksh) TESTS+= shell-ksh .endif TESTS+= shell-sh TESTS+= suff-add-later TESTS+= suff-clear-regular TESTS+= suff-clear-single TESTS+= suff-incomplete TESTS+= suff-lookup TESTS+= suff-main TESTS+= suff-main-several TESTS+= suff-phony TESTS+= suff-rebuild TESTS+= suff-self TESTS+= suff-transform-debug TESTS+= suff-transform-endless TESTS+= suff-transform-expand TESTS+= suff-transform-select TESTS+= sunshcmd TESTS+= ternary TESTS+= unexport TESTS+= unexport-env TESTS+= use-inference TESTS+= var-class TESTS+= var-class-cmdline TESTS+= var-class-env TESTS+= var-class-global TESTS+= var-class-local TESTS+= var-class-local-legacy TESTS+= var-op TESTS+= var-op-append TESTS+= var-op-assign TESTS+= var-op-default TESTS+= var-op-expand TESTS+= var-op-shell TESTS+= var-op-sunsh TESTS+= var-recursive TESTS+= varcmd TESTS+= vardebug TESTS+= varfind TESTS+= varmisc TESTS+= varmod TESTS+= varmod-assign TESTS+= varmod-defined TESTS+= varmod-edge TESTS+= varmod-exclam-shell TESTS+= varmod-extension TESTS+= varmod-gmtime TESTS+= varmod-hash TESTS+= varmod-head TESTS+= varmod-ifelse TESTS+= varmod-indirect TESTS+= varmod-l-name-to-value TESTS+= varmod-localtime TESTS+= varmod-loop TESTS+= varmod-match TESTS+= varmod-match-escape TESTS+= varmod-no-match TESTS+= varmod-order TESTS+= varmod-order-reverse TESTS+= varmod-order-shuffle TESTS+= varmod-path TESTS+= varmod-quote TESTS+= varmod-quote-dollar TESTS+= varmod-range TESTS+= varmod-remember TESTS+= varmod-root TESTS+= varmod-select-words TESTS+= varmod-shell TESTS+= varmod-subst TESTS+= varmod-subst-regex TESTS+= varmod-sysv TESTS+= varmod-tail TESTS+= varmod-to-abs TESTS+= varmod-to-lower TESTS+= varmod-to-many-words TESTS+= varmod-to-one-word TESTS+= varmod-to-separator TESTS+= varmod-to-upper TESTS+= varmod-undefined TESTS+= varmod-unique TESTS+= varname TESTS+= varname-dollar TESTS+= varname-dot-alltargets TESTS+= varname-dot-curdir TESTS+= varname-dot-includes TESTS+= varname-dot-includedfromdir TESTS+= varname-dot-includedfromfile TESTS+= varname-dot-libs TESTS+= varname-dot-make-dependfile TESTS+= varname-dot-make-expand_variables TESTS+= varname-dot-make-exported TESTS+= varname-dot-make-jobs TESTS+= varname-dot-make-jobs-prefix TESTS+= varname-dot-make-level TESTS+= varname-dot-make-makefile_preference TESTS+= varname-dot-make-makefiles TESTS+= varname-dot-make-meta-bailiwick TESTS+= varname-dot-make-meta-created TESTS+= varname-dot-make-meta-files TESTS+= varname-dot-make-meta-ignore_filter TESTS+= varname-dot-make-meta-ignore_paths TESTS+= varname-dot-make-meta-ignore_patterns TESTS+= varname-dot-make-meta-prefix TESTS+= varname-dot-make-mode TESTS+= varname-dot-make-path_filemon TESTS+= varname-dot-make-pid TESTS+= varname-dot-make-ppid TESTS+= varname-dot-make-save_dollars TESTS+= varname-dot-makeflags TESTS+= varname-dot-makeoverrides TESTS+= varname-dot-newline TESTS+= varname-dot-objdir TESTS+= varname-dot-parsedir TESTS+= varname-dot-parsefile TESTS+= varname-dot-path TESTS+= varname-dot-shell TESTS+= varname-dot-targets TESTS+= varname-empty TESTS+= varname-make TESTS+= varname-make_print_var_on_error TESTS+= varname-make_print_var_on_error-jobs TESTS+= varname-makefile TESTS+= varname-makeflags TESTS+= varname-pwd TESTS+= varname-vpath TESTS+= varparse-dynamic TESTS+= varparse-errors TESTS+= varparse-mod TESTS+= varparse-undef-partial TESTS+= varquote # Ideas for more tests: # char-0020-space.mk # char-005C-backslash.mk # escape-cond-str.mk # escape-cond-func-arg.mk # escape-cond-func-arg.mk # escape-varmod.mk # escape-varmod-define.mk # escape-varmod-match.mk # escape-varname.mk # escape-varassign-varname.mk # escape-varassign-varname-cmdline.mk # escape-varassign-value.mk # escape-varassign-value-cmdline.mk # escape-dependency-source.mk # escape-dependency-target.mk # escape-for-varname.mk # escape-for-item.mk # posix-*.mk (see posix.mk and posix1.mk) .if ${.OBJDIR} != ${.CURDIR} RO_OBJDIR:= ${.OBJDIR}/roobj .else RO_OBJDIR:= ${TMPDIR:U/tmp}/roobj .endif # Additional environment variables for some of the tests. # The base environment is -i PATH="$PATH". ENV.depsrc-optional+= TZ=UTC ENV.envfirst= FROM_ENV=value-from-env ENV.objdir-writable+= RO_OBJDIR=${RO_OBJDIR} ENV.varmisc= FROM_ENV=env ENV.varmisc+= FROM_ENV_BEFORE=env ENV.varmisc+= FROM_ENV_AFTER=env ENV.varmod-localtime+= TZ=Europe/Berlin ENV.varname-vpath+= VPATH=varname-vpath.dir:varname-vpath.dir2 # Override make flags for some of the tests; default is -k. # If possible, write ".MAKEFLAGS: -dv" in the test .mk file instead of # settings FLAGS.test=-dv here, since that is closer to the test code. FLAGS.cond-func-make= via-cmdline FLAGS.directive-ifmake= first second FLAGS.doterror= # none, especially not -k FLAGS.jobs-error-indirect= # none, especially not -k FLAGS.jobs-error-nested= # none, especially not -k FLAGS.jobs-error-nested-make= # none, especially not -k FLAGS.varname-empty= -dv '$${:U}=cmdline-u' '=cmdline-plain' # Some tests need extra postprocessing. SED_CMDS.dir= ${:D remove output from -DCLEANUP mode } SED_CMDS.dir+= -e '/^OpenDirs_Done:/d' SED_CMDS.dir+= -e '/^CachedDir /d' SED_CMDS.export= -e '/^[^=_A-Za-z0-9]*=/d' SED_CMDS.export-all= ${SED_CMDS.export} SED_CMDS.export-env= ${SED_CMDS.export} SED_CMDS.cmdline= -e 's,uid${.MAKE.UID}/,,' SED_CMDS.job-output-long-lines= \ ${:D Job separators on their own line are ok. } \ -e '/^--- job-[ab] ---$$/d' \ ${:D Plain output lines are ok as well. } \ ${:D They may come in multiples of 1024 or as 10000. } \ -e '/^aa*$$/d' \ -e '/^bb*$$/d' \ ${:D The following lines should rather not occur since the job } \ ${:D marker should always be at the beginning of the line. } \ -e '/^aa*--- job-b ---$$/d' \ -e '/^bb*--- job-a ---$$/d' SED_CMDS.objdir-writable= -e 's,${RO_OBJDIR},OBJDIR/roobj,g' SED_CMDS.opt-debug-graph1= ${STD_SED_CMDS.dg1} SED_CMDS.opt-debug-jobs= -e 's,([0-9][0-9]*),(<pid>),' SED_CMDS.opt-debug-jobs+= -e 's,pid [0-9][0-9]*,pid <pid>,' SED_CMDS.opt-debug-jobs+= -e 's,Process [0-9][0-9]*,Process <pid>,' SED_CMDS.opt-debug-jobs+= -e 's,JobFinish: [0-9][0-9]*,JobFinish: <pid>,' SED_CMDS.opt-debug-jobs+= -e 's,Command: ${.SHELL:T},Command: <shell>,' # The "-q" may be there or not, see jobs.c, variable shells. SED_CMDS.opt-debug-jobs+= -e 's,^\(.Command: <shell>\) -q,\1,' SED_CMDS.opt-jobs-no-action= ${STD_SED_CMDS.hide-from-output} SED_CMDS.opt-no-action-runflags= ${STD_SED_CMDS.hide-from-output} # For Compat_RunCommand, useShell == FALSE. SED_CMDS.sh-dots= -e 's,^.*\.\.\.:.*,<not found: ...>,' # For Compat_RunCommand, useShell == TRUE. SED_CMDS.sh-dots+= -e 's,^make: exec(\(.*\)) failed (.*)$$,<not found: \1>,' SED_CMDS.sh-dots+= -e 's,^\(\*\*\* Error code \)[1-9][0-9]*,\1<nonzero>,' SED_CMDS.sh-errctl= ${STD_SED_CMDS.dj} SED_CMDS.sh-flags= ${STD_SED_CMDS.hide-from-output} SED_CMDS.suff-main+= ${STD_SED_CMDS.dg1} SED_CMDS.suff-main-several+= ${STD_SED_CMDS.dg1} SED_CMDS.suff-transform-debug+= ${STD_SED_CMDS.dg1} SED_CMDS.var-op-shell+= \ -e 's,^${.SHELL:T}: [ 0-9:]*,,' \ -e 's,^${.SHELL:T}: ,,' \ -e '/command/s,No such.*,not found,' SED_CMDS.vardebug+= -e 's,${.SHELL},</path/to/shell>,' SED_CMDS.varmod-subst-regex+= \ -e 's,\(Regex compilation error:\).*,\1 (details omitted),' SED_CMDS.varname-dot-parsedir= -e '/in some cases/ s,^make: "[^"]*,make: "<normalized>,' SED_CMDS.varname-dot-parsefile= -e '/in some cases/ s,^make: "[^"]*,make: "<normalized>,' SED_CMDS.varname-dot-shell= -e 's, = /[^ ]*, = (details omitted),g' SED_CMDS.varname-dot-shell+= -e 's,"/[^" ]*","(details omitted)",g' SED_CMDS.varname-dot-shell+= -e 's,\[/[^] ]*\],[(details omitted)],g' # Some tests need an additional round of postprocessing. POSTPROC.deptgt-suffixes= awk '/^\#\*\*\* Suffixes/,/^never-stop/' POSTPROC.gnode-submake= awk '/Input graph/, /^$$/' POSTPROC.varname-empty= ${TOOL_SED} -n -e '/^Var_Set/p' -e '/^out:/p' # Some tests reuse other tests, which makes them unnecessarily fragile. export-all.rawout: export.mk unexport.rawout: export.mk unexport-env.rawout: export.mk # End of the configuration section. # Some standard sed commands, to be used in the SED_CMDS above. # Omit details such as process IDs from the output of the -dg1 option. STD_SED_CMDS.dg1= -e 's,${.CURDIR}$$,<curdir>,' STD_SED_CMDS.dg1+= -e '/\.MAKE.PATH_FILEMON/d' STD_SED_CMDS.dg1+= -e '/^MAKE_VERSION/d;/^\#.*\/mk/d' STD_SED_CMDS.dg1+= -e 's, ${DEFSYSPATH:U/usr/share/mk}$$, <defsyspath>,' STD_SED_CMDS.dg1+= -e 's,^\(\.MAKE *=\) .*,\1 <details omitted>,' STD_SED_CMDS.dg1+= -e 's,^\(\.MAKE\.[A-Z_]* *=\) .*,\1 <details omitted>,' STD_SED_CMDS.dg1+= -e 's,^\(MACHINE[_ARCH]* *=\) .*,\1 <details omitted>,' STD_SED_CMDS.dg1+= -e 's,^\(MAKE *=\) .*,\1 <details omitted>,' # Omit details such as process IDs from the output of the -dj option. STD_SED_CMDS.dj= \ -e '/Process/d;/JobFinish:/d' \ -e 's,^\(Job_TokenWithdraw\)([0-9]*),\1(<pid>),' \ -e 's,^([0-9][0-9]*) \(withdrew token\),(<pid>) \1,' \ -e 's, \(pid\) [0-9][0-9]*, \1 <pid>,' \ -e 's,^\( Command:\) .*,\1 <shell>,' # Reduce the noise for tests running with the -n option, since there is no # other way to suppress the echoing of the commands. STD_SED_CMDS.hide-from-output= \ -e '/^echo hide-from-output/d' \ -e 's,hide-from-output ,,' \ -e 's,hide-from-output,,' # End of the configuration helpers section. .MAIN: all .-include "Makefile.inc" .-include "Makefile.config" UNIT_TESTS:= ${.PARSEDIR} .PATH: ${UNIT_TESTS} .if ${USE_ABSOLUTE_TESTNAMES:Uno} == yes OUTFILES= ${TESTS:@test@${.CURDIR:tA}/${test}.out@} .else OUTFILES= ${TESTS:=.out} .endif all: ${OUTFILES} CLEANFILES= *.rawout *.out *.status *.tmp *.core *.tmp CLEANFILES+= obj*.[och] lib*.a # posix1.mk CLEANFILES+= issue* .[ab]* # suffixes.mk CLEANDIRS= dir dummy # posix1.mk clean: rm -f ${CLEANFILES} rm -rf ${CLEANDIRS} TEST_MAKE?= ${.MAKE} TOOL_SED?= sed TOOL_TR?= tr TOOL_DIFF?= diff DIFF_FLAGS?= -u .if defined(.PARSEDIR) # ensure consistent results from sort(1) LC_ALL= C LANG= C .export LANG LC_ALL .endif .if ${.MAKE.MODE:Unormal:Mmeta} != "" # we don't need the noise _MKMSG_TEST= : .endif MAKE_TEST_ENV?= MALLOC_OPTIONS="JA" # for jemalloc .if ${.MAKE.OS} == "NetBSD" LIMIT_RESOURCES?= ulimit -v 200000 .endif LIMIT_RESOURCES?= : # Each test is run in a sub-make, to keep the tests for interfering with # each other, and because they use different environment variables and # command line options. .SUFFIXES: .mk .rawout .out .mk.rawout: @${_MKMSG_TEST:Uecho '# test '} ${.PREFIX} @set -eu; \ ${LIMIT_RESOURCES}; \ cd ${.OBJDIR}; \ env -i PATH="$$PATH" ${MAKE_TEST_ENV} ${ENV.${.PREFIX:T}} \ ${TEST_MAKE} \ -r -C ${.CURDIR} -f ${.IMPSRC} \ ${FLAGS.${.PREFIX:T}:U-k} \ > ${.TARGET}.tmp 2>&1 \ && status=$$? || status=$$?; \ echo $$status > ${.TARGET:R}.status @mv ${.TARGET}.tmp ${.TARGET} # Postprocess the test output so that the results can be compared. # # always pretend .MAKE was called 'make' _SED_CMDS+= -e 's,^${TEST_MAKE:T:S,.,\\.,g}[][0-9]*:,make:,' _SED_CMDS+= -e 's,${TEST_MAKE:S,.,\\.,g},make,' _SED_CMDS+= -e 's,${TEST_MAKE:T:S,.,\\.,g}[][0-9]* warning,make warning,' _SED_CMDS+= -e 's,^usage: ${TEST_MAKE:T:S,.,\\.,g} ,usage: make ,' # replace anything after 'stopped in' with unit-tests _SED_CMDS+= -e '/stopped/s, /.*, unit-tests,' # strip ${.CURDIR}/ from the output _SED_CMDS+= -e 's,${.CURDIR:S,.,\\.,g}/,,g' _SED_CMDS+= -e 's,${UNIT_TESTS:S,.,\\.,g}/,,g' # on AT&T derrived systems; false exits 255 not 1 .if ${.MAKE.OS:N*BSD} != "" _SED_CMDS+= -e 's,\(Error code\) 255,\1 1,' .endif .rawout.out: @${TOOL_SED} ${_SED_CMDS} ${SED_CMDS.${.PREFIX:T}} \ < ${.IMPSRC} > ${.TARGET}.tmp1 @${POSTPROC.${.PREFIX:T}:Ucat} < ${.TARGET}.tmp1 > ${.TARGET}.tmp2 @rm ${.TARGET}.tmp1 @echo "exit status `cat ${.TARGET:R}.status`" >> ${.TARGET}.tmp2 @mv ${.TARGET}.tmp2 ${.TARGET} .if empty(DIFF_FLAGS) DIFF_ECHO= echo .else DIFF_ECHO= : .endif # Compare all output files test: ${OUTFILES} .PHONY @failed= ; \ for test in ${TESTS}; do \ cmp -s ${UNIT_TESTS}/$${test}.exp $${test}.out && continue || \ ${DIFF_ECHO} diff ${UNIT_TESTS}/$${test}.exp $${test}.out; \ ${TOOL_DIFF} ${DIFF_FLAGS} ${UNIT_TESTS}/$${test}.exp $${test}.out \ || failed="$${failed}$${failed:+ }$${test}" ; \ done ; \ if [ -n "$${failed}" ]; then \ echo "Failed tests: $${failed}" ; false ; \ else \ echo "All tests passed" ; \ fi accept: @for test in ${TESTS}; do \ cmp -s ${UNIT_TESTS}/$${test}.exp $${test}.out \ || { echo "Replacing $${test}.exp" ; \ cp $${test}.out ${UNIT_TESTS}/$${test}.exp ; } \ done .if exists(${TEST_MAKE}) ${TESTS:=.rawout}: ${TEST_MAKE} # in meta mode, we *know* if a target script is impacted # by a makefile change. .if ${.MAKE.MODE:Unormal:Mmeta} == "" ${TESTS:=.rawout}: ${.PARSEDIR}/Makefile .endif .endif .-include <obj.mk>
Upload File
Create Folder