Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.3  rillig # $NetBSD: opt-debug-cond.mk,v 1.3 2022/04/15 09:33:20 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Tests for the -dc command line option, which adds debug logging for the
      4  1.1  rillig # evaluation of conditional expressions, such as in .if directives and
      5  1.1  rillig # ${cond:?then:else} expressions.
      6  1.1  rillig 
      7  1.2  rillig .MAKEFLAGS: -dc
      8  1.1  rillig 
      9  1.2  rillig # expect: CondParser_Eval: ${:U12345} > ${:U55555}
     10  1.3  rillig # expect: Comparing 12345.000000 > 55555.000000
     11  1.2  rillig .if ${:U12345} > ${:U55555}
     12  1.2  rillig 
     13  1.2  rillig # expect: CondParser_Eval: "string" != "string"
     14  1.3  rillig # expect: Comparing "string" != "string"
     15  1.2  rillig .elif "string" != "string"
     16  1.2  rillig 
     17  1.2  rillig # expect: CondParser_Eval: "nonempty"
     18  1.2  rillig .elif "nonempty"
     19  1.2  rillig 
     20  1.2  rillig .endif
     21  1.2  rillig 
     22  1.2  rillig .MAKEFLAGS: -d0
     23  1.2  rillig 
     24  1.2  rillig all: .PHONY
     25