Bug 9770

Summary: oe-selftest: test import of tests from other layers
Product: [QA/Testing] Build Testing Reporter: Benjamin Esquivel <benjamin.esquivel>
Component: generalAssignee: Jose Perez C <jose.perez.carranza>
Status: RESOLVED FIXED QA Contact: Juan Ramos <juan.fernandox.ramos.frayle>
Severity: enhancement    
Priority: Medium CC: joshuagloe, leonardo.sandoval.gonzalez
Version: unspecified   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Yes (doc changes required)

Description Benjamin Esquivel 2016-06-13 21:33:45 UTC
The purpose of this bug is to create tests for the import of tests from other layers. This feature seems to be undocumented in the mega-manual.

The test that has to be created to verify this functionality should do the following things:

  bitbake add-layer <new-layer-with-self-tests>`
  list the newly added test via oe-selftest -l
  execute the newly added test via oe-selftest -r <testname>
Comment 1 Mariano Lopez 2016-07-12 21:12:53 UTC
A test within meta-selftest can be used for such purpose and it will remove the need to add a new layer, because meta-selftest is needed in order to run oe-selftest.
Comment 2 Mariano Lopez 2016-07-12 21:18:13 UTC
Sent patch to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123801.html
Comment 3 Mariano Lopez 2016-07-14 15:15:06 UTC
Sent v2 with revised test names:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123887.html
Comment 4 Mariano Lopez 2016-07-20 21:47:09 UTC
Sent v3:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124128.html

Needed to refactor the test because calling oe-selftest within selftest broke selftest
Comment 5 Benjamin Esquivel 2016-07-20 22:47:37 UTC
Mariano did you test this change at the autobuilder?
Comment 6 Mariano Lopez 2016-07-21 19:08:12 UTC
I haven't tested it yet. Let me do the test.
Comment 7 Leonardo Sandoval Gonzalez 2017-06-14 19:48:07 UTC
Patch is out there it just needs to be migrated.
Comment 8 Jose Perez C 2017-06-22 16:20:09 UTC
A new version of the patch was sent according to the new oeqa framework 

https://patchwork.openembedded.org/patch/141182/
Comment 9 Jose Perez C 2017-06-22 16:20:30 UTC
A new version of the patch was sent according to the new oeqa framework 

https://patchwork.openembedded.org/patch/141182/