[Rpm-maint] [rpm-software-management/rpm] Add `TestRequires` (Discussion #3504)

Colin Walters notifications at github.com
Fri Jan 3 14:01:50 UTC 2025


It's really common for software to have separate requirements to build versus actually run - and that distinction today exists in `BuildRequires` vs `Requires`.

Except...at build time in RPM today, the `%check` typically invokes at least unit tests of the software, and it's not uncommon at all for unit test suites to pull in some or all of the runtime requirements.

There's no way to express the difference; these have to be `BuildRequires` today - and for bootc for example I added `BuildRequires: skopeo`.

But there are valid use cases for building RPMs without running the test suite such as architecture bootstrapping. 

I think it'd be cleaner if we had `CheckRequires` for example (or `TestRequires`) that are defined to be present when running `%check` (and for clean root builds, *not* when running `%build`).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3504
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3504 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250103/37390af3/attachment.htm>


More information about the Rpm-maint mailing list