Summary: | PMS is missing EAPI 0 code snippet for src_test | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | PMS/EAPI | Assignee: | Package Manager Specification <pms> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=518768 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Petteri Räty (RETIRED)
![]() There probably should be a code snippet like for other functions. PMS doesn't have a code snippet for src_test, but a description that seems unambiguous: # The default implementation used when the ebuild lacks the src_test function # must, if tests are enabled, run make check if and only if such a target is # available, or if not run make test, if and only such a target is available. # In both cases, if make returns non-zero the build must be aborted. Taken literally, this would translate into code as follows: src_test() { if make -n check >&/dev/null; then make check || die "make check failed" elif make -n test >&/dev/null; then make test || die "make test failed" fi } Closing per comment #2. |