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?
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.