Wiki How_to_create_an_RPM_package#.25check_section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In reply to:
https://bugzilla.redhat.com/982351

> > Referring to rpmlint, your package is OK. But shouldn't be the %check
> > section after %install? Maybe it is important to run the tests after
> > installation. All Python packages I've reviewed do so.
> 
> It is actually documented[1] that %check follows %build, also tests run in the
> builddir directory, code installed in buildrootdir is not used.
> I guess other packages follow rpmbuild execution order which runs %check after
> %install no matter what order is it in spec.
> There are also other Fedora py rpms which have %build %check %install order
> e.g.
>
> [1] http://fedoraproject.org/wiki/How_to_create_an_RPM_package#.25check_section

That HowTo says:

| [...] the %check section (which immediately follows the %build section)

Why is that?

IMO, %check should be placed after the %install section, because rpmbuild
executes it after %install. And because in some cases one performs tests
on the files in %buildroot rather than uninstalled files in the builddir.

Is there any good reason why to put it after %build?
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux