1 # $NetBSD: opt-debug-errors.mk,v 1.2 2020/09/06 04:35:03 rillig Exp $
3 # Tests for the -de command line option, which adds debug logging for
4 # failed commands and targets.
9 all: fail-escaped-space
12 all: fail-multiline-intention
14 # XXX: The debug output folds the spaces, showing '3 spaces' instead of
15 # the correct '3 spaces'.
17 echo '3 spaces'; false
19 # XXX: The debug output folds the spaces, showing 'echo \ indented' instead
20 # of the correct 'echo \ indented'.
22 echo \ indented; false
24 # XXX: A newline is turned into an ordinary space in the debug log.
26 echo 'line1${.newline}line2'; false
28 # The line continuations in multiline commands are turned into an ordinary
29 # space before the command is actually run.
34 # It is a common style to align the continuation backslashes at the right
35 # of the lines, usually at column 73. All spaces before the continuation
36 # backslash are preserved and are usually outside a shell word and thus
37 # irrelevant. Having these spaces collapsed makes sense to show the command
38 # in its condensed form.
40 fail-multiline-intention: