Bug 4878

Summary: Add ability for testimage to find tests in other layers
Product: [QA/Testing] Runtime Testing Reporter: Paul Eggleton <bluelightning>
Component: generalAssignee: Stefan Stanacar <sstncr>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: alexandrux.palalau, sgw
Version: 1.5   
Target Milestone: 1.5   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2013-07-19 13:03:01 UTC
Layers that add additional recipes should ideally be able to add associated tests. The testimage class currently looks in a fixed path for test modules; it would be very useful if it could look in all configured layers for additional ones. This will be immediately useful for tests relating to the new meta-security layer.

This should be pretty easy to implement - the BBLAYERS variable value contains the paths to all enabled layers; if we just search in tests/runtime/ under each of those paths and then this can be the standard location within a layer for introducing test modules.
Comment 2 Alexandru Palalau 2013-09-30 12:27:07 UTC
Verified on master branch.
Commit ID: b049d532f6e0ab9e458e486f81b00be47ee69acf