Add a few more parametric macro argument tests

This commit is contained in:
Panu Matilainen 2017-08-31 12:14:36 +03:00
parent 6adef6a3c7
commit 08ed0b20c6
1 changed files with 23 additions and 0 deletions

View File

@ -158,6 +158,29 @@ runroot rpm \
])
AT_CLEANUP
AT_SETUP([parametrized macro 5])
AT_KEYWORDS([macros])
AT_CHECK([
runroot rpm \
--define '%foo() %#:%{?1:"%1"}%{?2: "%2"}' \
--define 'bar zzz' \
--eval '%foo 1' \
--eval '%foo 2 ' \
--eval '%foo 1 2' \
--eval '%foo %{nil}' \
--eval '%foo %{nil} xx' \
--eval '%foo %{bar} xx'
],
[0],
[1:"1"
1:"2"
2:"1" "2"
0:
1:"xx"
2:"zzz" "xx"
])
AT_CLEANUP
AT_SETUP([uncompress macro])
AT_KEYWORDS([macros])
AT_CHECK([