Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests make(1): enable debug logging for te...



details:   https://anonhg.NetBSD.org/src/rev/88dd2c3197df
branches:  trunk
changeset: 946207:88dd2c3197df
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 21 11:55:57 2020 +0000

description:
make(1): enable debug logging for test suff-rebuild

As long as it is not clear why this test fails, it's better to have the
debug log available, both for reading it and for getting notified if
any behavior in this area changes.

diffstat:

 usr.bin/make/unit-tests/suff-rebuild.exp |  64 ++++++++++++++++++++++++++++++++
 usr.bin/make/unit-tests/suff-rebuild.mk  |   4 +-
 2 files changed, 67 insertions(+), 1 deletions(-)

diffs (90 lines):

diff -r c948a053e2df -r 88dd2c3197df usr.bin/make/unit-tests/suff-rebuild.exp
--- a/usr.bin/make/unit-tests/suff-rebuild.exp  Sat Nov 21 11:43:59 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-rebuild.exp  Sat Nov 21 11:55:57 2020 +0000
@@ -1,5 +1,69 @@
+ParseReadLine (10): '.SUFFIXES:'
+ParseDoDependency(.SUFFIXES:)
+Clearing all suffixes
+ParseReadLine (12): '.SUFFIXES: .a .b .c'
+ParseDoDependency(.SUFFIXES: .a .b .c)
+Adding suffix ".a"
+Adding suffix ".b"
+Adding suffix ".c"
+ParseReadLine (14): 'suff-rebuild-example.a:'
+ParseDoDependency(suff-rebuild-example.a:)
+ParseReadLine (15): '  : Making ${.TARGET} out of nothing.'
+ParseReadLine (17): '.a.b:'
+ParseDoDependency(.a.b:)
+defining transformation from `.a' to `.b'
+inserting ".a" (1) at end of list
+inserting ".b" (2) at end of list
+ParseReadLine (18): '  : Making ${.TARGET} from ${.IMPSRC}.'
+ParseReadLine (19): '.b.c:'
+transformation .a.b complete
+ParseDoDependency(.b.c:)
+defining transformation from `.b' to `.c'
+inserting ".b" (2) at end of list
+inserting ".c" (3) at end of list
+ParseReadLine (20): '  : Making ${.TARGET} from ${.IMPSRC}.'
+ParseReadLine (21): '.c:'
+transformation .b.c complete
+ParseDoDependency(.c:)
+defining transformation from `.c' to `'
+inserting ".c" (3) at end of list
+inserting "" (0) at end of list
+ParseReadLine (22): '  : Making ${.TARGET} from ${.IMPSRC}.'
+ParseReadLine (35): '.SUFFIXES: .c .b .a'
+transformation .c complete
+ParseDoDependency(.SUFFIXES: .c .b .a)
+Wildcard expanding "all"...
+SuffFindDeps (all)
+       No known suffix on all. Using .NULL suffix
+adding suffix rules
+       trying all.c...not there
+       trying all.b...not there
+       trying all.a...not there
+Wildcard expanding "suff-rebuild-example"...
+SuffFindDeps (suff-rebuild-example)
+       No known suffix on suff-rebuild-example. Using .NULL suffix
+adding suffix rules
+       trying suff-rebuild-example.c...not there
+       trying suff-rebuild-example.b...not there
+       trying suff-rebuild-example.a...got it
+       applying .a -> .b to "suff-rebuild-example.b"
+       applying .b -> .c to "suff-rebuild-example.c"
+       applying .c ->  to "suff-rebuild-example"
+suffix is ".c"...
+suffix is ".b"...
+suffix is ".a"...
+SuffFindDeps (suff-rebuild-example.a)
+suffix is ".a"...
 : Making suff-rebuild-example.a out of nothing.
 : Making suff-rebuild-example.b from suff-rebuild-example.a.
 : Making suff-rebuild-example.c from suff-rebuild-example.b.
 : Making suff-rebuild-example from suff-rebuild-example.c.
+Wildcard expanding "all"...
+SuffFindDeps (.END)
+       No known suffix on .END. Using .NULL suffix
+adding suffix rules
+       trying .END.c...not there
+       trying .END.b...not there
+       trying .END.a...not there
+Wildcard expanding ".END"...
 exit status 0
diff -r c948a053e2df -r 88dd2c3197df usr.bin/make/unit-tests/suff-rebuild.mk
--- a/usr.bin/make/unit-tests/suff-rebuild.mk   Sat Nov 21 11:43:59 2020 +0000
+++ b/usr.bin/make/unit-tests/suff-rebuild.mk   Sat Nov 21 11:55:57 2020 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: suff-rebuild.mk,v 1.4 2020/11/21 08:51:57 rillig Exp $
+# $NetBSD: suff-rebuild.mk,v 1.5 2020/11/21 11:55:57 rillig Exp $
 #
 # Demonstrates what happens to transformation rules (called inference rules
 # by POSIX) when all suffixes are deleted.
 
 all: suff-rebuild-example
 
+.MAKEFLAGS: -dpst
+
 .SUFFIXES:
 
 .SUFFIXES: .a .b .c



Home | Main Index | Thread Index | Old Index