Let's standardize the way to disable tests during RPM build?
by Tomas Orsava
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?
Tomas
3 years, 9 months
Re: Let's standardize the way to disable tests during RPM build?
by Richard W.M. Jones
On Fri, Jun 05, 2020 at 10:28:39AM -0400, Paul Wouters wrote:
> Or just a new option to rpmbuild that skips %check ?
It exists already: rpmbuild --nocheck.
It's not wired into the rest of the stack - eg. you cannot start a
Koji build with checks disabled. IMHO that's a good thing, although
when we first started doing the RISC-V bootstrap we initially and
briefly used this option to disable the tests, for convenience of
getting packages built.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
3 years, 9 months
[Fedora-packing] Problem with __scm_setup_git if global excludesfile is defined
by xiaofeng
Hi,
When using %autosetup -S git, it expands to auto add all files to the git
index, but if the user like me set a global excludesfile, some files may be
excluded, and it will fail to build if those excluded files need to be
patched.
May be we can change the macro bellow:
%{__git} add .
to
%{__git} add -f .
or
%{__git} -c core.excludesfile= add .
to force add all files?
Regards,
Xiaofeng
--
xiaofeng
--
gpg key fingerprint:
2048R/5E63005B
C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B
--
trans-zh_cn mailing list
trans-zh_cn(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
3 years, 10 months