Home | History | Annotate | Line # | Download | only in unit-tests
opt-debug-parse.mk revision 1.2
      1  1.2  rillig # $NetBSD: opt-debug-parse.mk,v 1.2 2022/01/02 03:23:55 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Tests for the -dp command line option, which adds debug logging about
      4  1.1  rillig # makefile parsing.
      5  1.1  rillig 
      6  1.2  rillig .MAKEFLAGS: -dp
      7  1.2  rillig 
      8  1.1  rillig # TODO: Implementation
      9  1.1  rillig 
     10  1.2  rillig # In PrintStackTrace, the line number of the .for loop is wrong.  The actual
     11  1.2  rillig # line number printed is the last line before the loop body, while it should
     12  1.2  rillig # rather be the line number where the .for loop starts.
     13  1.2  rillig .for \
     14  1.2  rillig     var \
     15  1.2  rillig     in \
     16  1.2  rillig     value
     17  1.2  rillig .info trace with multi-line .for loop head
     18  1.2  rillig .endfor
     19  1.2  rillig # FIXME: The .exp file says 'in .include from opt-debug-parse.mk:18', which is
     20  1.2  rillig # completely wrong.  It should rather say 'in .for loop from :13'.
     21  1.2  rillig 
     22  1.2  rillig .MAKEFLAGS: -d0
     23  1.2  rillig 
     24  1.2  rillig all: .PHONY
     25