Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927946

Summary: auxdbkeys DEFINED_PHASES only shows test if there is a explicit src_test
Product: Portage Development Reporter: APN-Pucky <alexander>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.