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