Skip to content

Commit

Permalink
Add test case for macro '%-x'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhabacker committed Mar 30, 2023
1 parent 7ea7048 commit f262752
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/rpmmacro.at
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,24 @@ runroot rpm \
])
AT_CLEANUP

AT_SETUP([parametrized macro 9])
AT_KEYWORDS([macros])
AT_CHECK([
runroot rpm \
--define '%foo(b:) %{-b}' \
--eval '%foo -bb' \
--eval '%foo -bb=1' \
--eval '%foo -b b' \
--eval '%foo -b b=1' \
],
[0],
[-bb
-bb=1
-b b
-b b=1
])
AT_CLEANUP

AT_SETUP([uncompress macro 1])
AT_KEYWORDS([macros])
AT_CHECK([
Expand Down

0 comments on commit f262752

Please sign in to comment.