Skip to content

Commit

Permalink
builddep: Tests for --spec and --srpm options
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha committed Nov 26, 2024
1 parent d759729 commit e1860cd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions dnf-behave-tests/dnf/plugins-core/builddep.feature
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,36 @@ Scenario: Builddep respects both --with and --without option
| Action | Package |
| install | dwm-0:6.1-1.x86_64 |
| install | wget-0:1.19.5-5.fc29.x86_64 |


Scenario: User can specify parameter type using --spec option
Given I use repository "dnf-ci-fedora"
And I create file "/pkg.spec.in" with
"""
Name: pkg
Version: 1
Release: 1
Summary: summary
License: license
BuildRequires: filesystem
%description
desc
"""
When I execute dnf with args "builddep --spec {context.dnf.installroot}/pkg.spec.in"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | filesystem-0:3.9-2.fc29.x86_64 |
| install-dep | setup-0:2.12.1-1.fc29.noarch |


Scenario: User can specify parameter type using --srpm option
Given I use repository "dnf-ci-fedora"
And I copy file "{context.dnf.fixturesdir}/repos/dnf-ci-thirdparty/src/SuperRipper-1.0-1.src.rpm" to "/SuperRipper-1.0-1.src.rpm.unknown.extension"
When I execute dnf with args "builddep --srpm {context.dnf.installroot}/SuperRipper-1.0-1.src.rpm.unknown.extension"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | lame-libs-0:3.100-4.fc29.x86_64 |

0 comments on commit e1860cd

Please sign in to comment.