Bug 57036 - Add %test section
Summary: Add %test section
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2001-12-03 17:11 UTC by Trond Eivind Glomsrxd
Modified: 2008-05-01 15:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-29 21:49:12 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Trond Eivind Glomsrxd 2001-12-03 17:11:02 UTC
I'd love to have a standardized, conditional test section of the specfile -
it would be useful for teststuites.

Current suggestion is to "add a %test section in the specfile, corresponding
--runtest commandline option. Nonzero exit == failure?"/

Comment 1 Jeff Johnson 2001-12-03 19:58:22 UTC
Comments from jakub:

The question is what this %test script can expect in which variables from
rpm and what directory will it be changed into before starting.
My main question is whether its builddir will be unpacked and in what
variable will get it, and whether its instdir will be populated or not
(and again, where to query that). For the packages I care about, I only need
builddir to be unpacked and after at least -bc phase.

Comment 2 Jeff Johnson 2001-12-05 16:21:47 UTC
There are several ideas here that need to be unsnarled
so that I can attempt an implementation.

BTW, there's an equivalent need for an install, not
a build, scriptlet to verify that the bits are, indeed, installed
correctly. That might simplify many QA and support issues
if attempted.

The name %test is woefully underdescriptive <shrug>.

Where in the build state machine do you want %test executed?

Under what conditions?

What sort of CLI gunk do you want to execute the script?

Jakub: the cwd/environment for all scriptlets is deterministic, can even
be reconfigured using %__spec_test_stage and/or %___build_pre
if/when desired. Yes this is more mechanism than policy, and makes
everyones head hurt a lot, but is sufficiently general to handle a
new %test section quite easily and cheaply.

Comment 3 Jeff Johnson 2001-12-09 17:46:28 UTC
Guys, I need a definition owf what is being requested.

Comment 4 Bill Nottingham 2005-09-29 21:49:12 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of

For RPM issues, please try a current release such as Fedora Core 4; if bugs
persist, please open a new issue.

Note You need to log in before you can comment on or make changes to this bug.