Skip to content

Commit

Permalink
Tests for repoquery -f, -l
Browse files Browse the repository at this point in the history
Backported from the dnf5 branch.
  • Loading branch information
jan-kolarik committed May 15, 2024
1 parent 919cb44 commit 1a1fe39
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions dnf-behave-tests/dnf/repoquery/files.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@dnf5
Feature: Repoquery tests working with files


Scenario: list files in an rpm including files in filelists.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery a.x86_64 -l"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
/root-file
/usr/bin/a-binary
"""


Scenario: filter by file in primary.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery --file /usr/bin/a-binary"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
a-0:1.0-1.fc29.x86_64
"""


@bz2276012
Scenario: filter by file in filelists.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery --file /root-file"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
a-0:1.0-1.fc29.x86_64
"""

0 comments on commit 1a1fe39

Please sign in to comment.