Lines Matching full:debug
1 # $NetBSD: opt-debug-file.mk,v 1.11 2024/06/30 15:21:24 rillig Exp $
3 # Tests for the -dF command line option, which redirects the debug log
6 # Enable debug logging for variable assignments and evaluation (-dv)
7 # and redirect the debug logging to the given file.
8 .MAKEFLAGS: -dvFopt-debug-file.debuglog
10 # This output goes to the debug log file.
14 # Before main.c 1.362 from 2020-10-03, it was not possible to disable debug
18 # Make sure that the debug logging file contains some logging.
19 DEBUG_OUTPUT:= ${:!cat opt-debug-file.debuglog!}
29 # To get the unexpanded text that was actually written to the debug log
34 .if !${:!cat opt-debug-file.debuglog!:tW:M*VAR = value $${:Uexpanded}*}
48 .MAKEFLAGS: -dFopt-debug-file.debuglog
49 # expect+1: This goes to stderr, and in addition to the debug log.
50 . info This goes to stderr, and in addition to the debug log.
52 .if ${:!cat opt-debug-file.debuglog!:Maddition:[#]} != 1
64 .MAKEFLAGS: -dFopt-debug-file.debuglog
65 # expect: make: Unterminated quoted string [make 'This goes to stderr, and in addition to the debug…
66 .MAKEFLAGS: 'This goes to stderr, and in addition to the debug log.
68 .if ${:!cat opt-debug-file.debuglog!:MUnterminated:[#]} != 1
73 # If the debug log file cannot be opened, make prints an error message and
74 # exits immediately since the debug log file is usually selected from the
76 _:= ${:!rm opt-debug-file.debuglog!}
77 .MAKEFLAGS: -dF/nonexistent-6f21c672-a22d-4ef7/opt-debug-file.debuglog