Thu Jan 27 21:50:50 2022 UTC ()
numEntries can vary


(sjg)
diff -r1.301 -r1.302 src/usr.bin/make/unit-tests/Makefile
diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt-debug-hash.exp

cvs diff -r1.301 -r1.302 src/usr.bin/make/unit-tests/Makefile (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/Makefile 2022/01/27 02:24:46 1.301
+++ src/usr.bin/make/unit-tests/Makefile 2022/01/27 21:50:50 1.302
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.301 2022/01/27 02:24:46 sjg Exp $ 1# $NetBSD: Makefile,v 1.302 2022/01/27 21:50:50 sjg 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
@@ -493,26 +493,27 @@ SED_CMDS.job-output-long-lines= \ @@ -493,26 +493,27 @@ SED_CMDS.job-output-long-lines= \
493 -e '/^--- job-[ab] ---$$/d' \ 493 -e '/^--- job-[ab] ---$$/d' \
494 ${:D Plain output lines are ok as well. } \ 494 ${:D Plain output lines are ok as well. } \
495 ${:D They may come in multiples of 1024 or as 10000. } \ 495 ${:D They may come in multiples of 1024 or as 10000. } \
496 -e '/^aa*$$/d' \ 496 -e '/^aa*$$/d' \
497 -e '/^bb*$$/d' \ 497 -e '/^bb*$$/d' \
498 ${:D The following lines should rather not occur since the job } \ 498 ${:D The following lines should rather not occur since the job } \
499 ${:D marker should always be at the beginning of the line. } \ 499 ${:D marker should always be at the beginning of the line. } \
500 -e '/^aa*--- job-b ---$$/d' \ 500 -e '/^aa*--- job-b ---$$/d' \
501 -e '/^bb*--- job-a ---$$/d' 501 -e '/^bb*--- job-a ---$$/d'
502SED_CMDS.opt-chdir= -e 's,\(nonexistent\).[1-9][0-9]*,\1,' 502SED_CMDS.opt-chdir= -e 's,\(nonexistent\).[1-9][0-9]*,\1,'
503SED_CMDS.opt-debug-graph1= ${STD_SED_CMDS.dg1} 503SED_CMDS.opt-debug-graph1= ${STD_SED_CMDS.dg1}
504SED_CMDS.opt-debug-graph2= ${STD_SED_CMDS.dg2} 504SED_CMDS.opt-debug-graph2= ${STD_SED_CMDS.dg2}
505SED_CMDS.opt-debug-graph3= ${STD_SED_CMDS.dg3} 505SED_CMDS.opt-debug-graph3= ${STD_SED_CMDS.dg3}
 506SED_CMDS.opt-debug-hash= -e 's,\(numEntries\)=[1-9][0-9],\1=<entries>,'
506SED_CMDS.opt-debug-jobs= -e 's,([0-9][0-9]*),(<pid>),' 507SED_CMDS.opt-debug-jobs= -e 's,([0-9][0-9]*),(<pid>),'
507SED_CMDS.opt-debug-jobs+= -e 's,pid [0-9][0-9]*,pid <pid>,' 508SED_CMDS.opt-debug-jobs+= -e 's,pid [0-9][0-9]*,pid <pid>,'
508SED_CMDS.opt-debug-jobs+= -e 's,Process [0-9][0-9]*,Process <pid>,' 509SED_CMDS.opt-debug-jobs+= -e 's,Process [0-9][0-9]*,Process <pid>,'
509SED_CMDS.opt-debug-jobs+= -e 's,JobFinish: [0-9][0-9]*,JobFinish: <pid>,' 510SED_CMDS.opt-debug-jobs+= -e 's,JobFinish: [0-9][0-9]*,JobFinish: <pid>,'
510SED_CMDS.opt-debug-jobs+= -e 's,Command: ${.SHELL:T},Command: <shell>,' 511SED_CMDS.opt-debug-jobs+= -e 's,Command: ${.SHELL:T},Command: <shell>,'
511# The "-q" may be there or not, see jobs.c, variable shells. 512# The "-q" may be there or not, see jobs.c, variable shells.
512SED_CMDS.opt-debug-jobs+= -e 's,^\(.Command: <shell>\) -q,\1,' 513SED_CMDS.opt-debug-jobs+= -e 's,^\(.Command: <shell>\) -q,\1,'
513SED_CMDS.opt-debug-lint+= ${STD_SED_CMDS.regex} 514SED_CMDS.opt-debug-lint+= ${STD_SED_CMDS.regex}
514SED_CMDS.opt-jobs-no-action= ${STD_SED_CMDS.hide-from-output} 515SED_CMDS.opt-jobs-no-action= ${STD_SED_CMDS.hide-from-output}
515SED_CMDS.opt-no-action-runflags= ${STD_SED_CMDS.hide-from-output} 516SED_CMDS.opt-no-action-runflags= ${STD_SED_CMDS.hide-from-output}
516SED_CMDS.opt-where-am-i= -e '/usr.obj/d' 517SED_CMDS.opt-where-am-i= -e '/usr.obj/d'
517# For Compat_RunCommand, useShell == false. 518# For Compat_RunCommand, useShell == false.
518SED_CMDS.sh-dots= -e 's,^.*\.\.\.:.*,<not found: ...>,' 519SED_CMDS.sh-dots= -e 's,^.*\.\.\.:.*,<not found: ...>,'

cvs diff -r1.3 -r1.4 src/usr.bin/make/unit-tests/opt-debug-hash.exp (expand / switch to unified diff)

--- src/usr.bin/make/unit-tests/opt-debug-hash.exp 2022/01/22 18:59:24 1.3
+++ src/usr.bin/make/unit-tests/opt-debug-hash.exp 2022/01/27 21:50:50 1.4
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1make: "opt-debug-hash.mk" line 11: Missing argument for ".error" 1make: "opt-debug-hash.mk" line 11: Missing argument for ".error"
2make: Fatal errors encountered -- cannot continue 2make: Fatal errors encountered -- cannot continue
3HashTable targets: size=16 numEntries=0 maxchain=0 3HashTable targets: size=16 numEntries=0 maxchain=0
4HashTable Global variables: size=16 numEntries=23 maxchain=3 4HashTable Global variables: size=16 numEntries=<entries> maxchain=3
5make: stopped in unit-tests 5make: stopped in unit-tests
6exit status 1 6exit status 1