Test %dnl such that its contents influences its expansion

This commit is contained in:
Pavlina Moravcova Varekova 2019-07-15 14:10:05 +02:00 committed by Florian Festi
parent f339e115b0
commit ff42a556e6
2 changed files with 21 additions and 0 deletions

View File

@ -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}

View File

@ -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([