Test %dnl such that its contents influences its expansion
This commit is contained in:
parent
f339e115b0
commit
ff42a556e6
|
@ -14,3 +14,9 @@ me
|
|||
%comment2 see\
|
||||
%dnl comment\
|
||||
this
|
||||
|
||||
%comment3 %{expand:
|
||||
read
|
||||
%dnl expansion depends on the braces inside %dnl line
|
||||
%dnl e.g. '}' change this meaning
|
||||
me}
|
||||
|
|
|
@ -534,6 +534,21 @@ this
|
|||
[])
|
||||
AT_CLEANUP
|
||||
|
||||
AT_SETUP([macro comments 2])
|
||||
AT_KEYWORDS([macros])
|
||||
AT_CHECK([
|
||||
runroot rpm \
|
||||
--macros /data/macros.testfile \
|
||||
--eval "%{comment3}"
|
||||
],
|
||||
[0],
|
||||
[
|
||||
read
|
||||
' change this meaning
|
||||
],
|
||||
[])
|
||||
AT_CLEANUP
|
||||
|
||||
AT_SETUP([%if, %else, %elif test basic])
|
||||
AT_KEYWORDS([if, else, elif])
|
||||
AT_CHECK([
|
||||
|
|
Loading…
Reference in New Issue