Annotation of src/usr.bin/make/unit-tests/opt-debug-cond.mk, Revision 1.3
1.3 ! rillig 1: # $NetBSD: opt-debug-cond.mk,v 1.2 2022/01/23 16:09:38 rillig Exp $
1.1 rillig 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:
1.2 rillig 7: .MAKEFLAGS: -dc
1.1 rillig 8:
1.2 rillig 9: # expect: CondParser_Eval: ${:U12345} > ${:U55555}
1.3 ! rillig 10: # expect: Comparing 12345.000000 > 55555.000000
1.2 rillig 11: .if ${:U12345} > ${:U55555}
12:
13: # expect: CondParser_Eval: "string" != "string"
1.3 ! rillig 14: # expect: Comparing "string" != "string"
1.2 rillig 15: .elif "string" != "string"
16:
17: # expect: CondParser_Eval: "nonempty"
18: .elif "nonempty"
19:
20: .endif
21:
22: .MAKEFLAGS: -d0
23:
24: all: .PHONY
CVSweb <webmaster@jp.NetBSD.org>