Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927946 - auxdbkeys DEFINED_PHASES only shows test if there is a explicit src_test
Summary: auxdbkeys DEFINED_PHASES only shows test if there is a explicit src_test
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-27 09:54 UTC by APN-Pucky
Modified: 2024-03-28 14:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description APN-Pucky 2024-03-27 09:54:40 UTC
Background is pkg-testing-tools uses 

>>> portage.portdb.aux_get("sci-physics/rivet-3.1.10", ["DEFINED_PHASES"])
['configure install prepare setup']

to identify if a package has a test stage. Here rivet does not provide a explicit src_test function. However running 

$ ebuild rivet-3.1.10.ebuild test

will execute some default/inherited test routine.

Is there another recommended way to check if a packages supports the test feature?
Comment 1 APN-Pucky 2024-03-28 14:37:27 UTC
This behaviour is quite contradicting since if I add

  src_test() {
      default
  }

to the ebuild it shows up with a defined test phase. Contrary ebuilds that inherit e.g. distutils-r1 are reported with a defined test phase too regardless of disturils_enable_tests being set or not.