From 93ec48a64bc34b783cd87715e4b70b24637aa8bb Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Tue, 12 Dec 2023 18:53:09 +0000 Subject: [PATCH] builddep: test BuildRequires: python3dist(build[foo]) For https://github.com/rpm-software-management/dnf5/issues/1084 --- .../dnf/plugins-core/builddep.feature | 9 +++++++++ .../specs/builddep/provides-glob-1-1.spec | 18 ++++++++++++++++++ .../specs/builddep/requires-glob-1-1.spec | 18 ++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 dnf-behave-tests/fixtures/specs/builddep/provides-glob-1-1.spec create mode 100644 dnf-behave-tests/fixtures/specs/builddep/requires-glob-1-1.spec diff --git a/dnf-behave-tests/dnf/plugins-core/builddep.feature b/dnf-behave-tests/dnf/plugins-core/builddep.feature index c3113b085..9fc61cccf 100644 --- a/dnf-behave-tests/dnf/plugins-core/builddep.feature +++ b/dnf-behave-tests/dnf/plugins-core/builddep.feature @@ -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 | diff --git a/dnf-behave-tests/fixtures/specs/builddep/provides-glob-1-1.spec b/dnf-behave-tests/fixtures/specs/builddep/provides-glob-1-1.spec new file mode 100644 index 000000000..add7a362a --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/builddep/provides-glob-1-1.spec @@ -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 diff --git a/dnf-behave-tests/fixtures/specs/builddep/requires-glob-1-1.spec b/dnf-behave-tests/fixtures/specs/builddep/requires-glob-1-1.spec new file mode 100644 index 000000000..2754ebfe3 --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/builddep/requires-glob-1-1.spec @@ -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