-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On Fri, 2020-06-05 at 16:10 +0200, Tomas Orsava wrote:
Hi, I think it would be useful to have a standard way of disabling the running of tests during RPM build (in the %check section of a spec file).
I see a lot of packages already having %bcond's or other macro definitions to archieve this, but each package has their own way, there's no real standard. Thus you have to first look into the spec, locate the appropriate %bcond or macro name and only then you can disable the tests.
I would like to propose two approaches:
(a) Add a *SHOULD* rule to the guidelines that specifies what is the preferred way to conditionalize the tests.
(b) Or, if that's too strong, mention in the guidelines the common methods that are being used (e.g. %bcond tests and %bcond check) so that new packagers have something to use.
What do you think?
I'd like to have this finally be implemented in https://github.com/rpm-software-management/rpm/issues/316. That way it would be simply rpmbuild --nocheck or define %_without_check 1 which would skip %check section entirely.
For now, all Rust crates just have `%bcond_without check` so using `-- without check` works just fine there.
Since this would be more generic thing to the RPM ecosystem, adding rpm-ecosystem@ to the copy.
Tomas _______________________________________________ packaging mailing list -- packaging@lists.fedoraproject.org To unsubscribe send an email to packaging-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject....
- -- Igor Raits ignatenkobrain@fedoraproject.org