Add a testcase for RhBug:1045723

- All the %bar macro invocations here should "obviously" behave the
  same, but they dont... in two cases a newline gets eaten out so
  this FAILS atm.
This commit is contained in:
Panu Matilainen 2014-02-19 14:14:12 +02:00
parent b60a26585f
commit f082b5baa4
1 changed files with 36 additions and 0 deletions

View File

@ -45,6 +45,42 @@ runroot rpm --define "this that" --define "that_that foo" --eval '%{expand:%{%{t
])
AT_CLEANUP
AT_SETUP([parametrized macro 1])
AT_KEYWORDS([macros])
AT_CHECK([
cat << EOF > ${abs_builddir}/testing/mtest
%bar() bar
%foo()\\
%bar\\
foo 1\\
%{bar}\\
foo 2\\
%bar x\\
foo 3\\
%{bar x}\\
foo 4\\
%bar \\
foo 5
EOF
runroot rpm --eval '%{load:mtest}%{foo}'
],
[0],
[
bar
foo 1
bar
foo 2
bar
foo 3
bar
foo 4
bar
foo 5
],
[])
AT_CLEANUP
AT_SETUP([uncompress macro])
AT_KEYWORDS([macros])
AT_CHECK([