Skip to content

Commit

Permalink
builddep: test BuildRequires: python3dist(build[foo])
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Dec 12, 2023
1 parent 1499f79 commit 93ec48a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dnf-behave-tests/dnf/plugins-core/builddep.feature
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,12 @@ Scenario: Builddep using macros with source rpm
When I execute dnf with args "builddep -D 'dummy_param 1' {context.dnf.fixturesdir}/repos/dnf-ci-thirdparty/src/SuperRipper-1.0-1.src.rpm"
Then the exit code is 0
And stderr contains "Warning: -D or --define arguments have no meaning for source rpm packages."

@dnf5
Scenario: Builddep where package BuildRequires a pkg spec that contains glob characters
Given I use repository "builddep"
When I execute dnf with args "builddep requires-glob"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | provides-glob-0:1-1.x86_64 |
18 changes: 18 additions & 0 deletions dnf-behave-tests/fixtures/specs/builddep/provides-glob-1-1.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Name: provides-glob
Epoch: 0
Version: 1
Release: 1

License: Public Domain
URL: None

Summary: Provides a pkg spec that contains glob characters

Provides: python3dist(build[foo])

%description
This package is part of testing builddep

%files

%changelog
18 changes: 18 additions & 0 deletions dnf-behave-tests/fixtures/specs/builddep/requires-glob-1-1.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Name: requires-glob
Epoch: 0
Version: 1
Release: 1

License: Public Domain
URL: None

Summary: BuildRequires a pkg spec that contains glob characters

BuildRequires: python3dist(build[foo])

%description
This package is part of testing builddep

%files

%changelog

0 comments on commit 93ec48a

Please sign in to comment.