Bug 11131 - Add more tests to Yocto Project Compatible Layers script
Summary: Add more tests to Yocto Project Compatible Layers script
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium+ enhancement
Target Milestone: 6.2
Assignee: Paul Barker
QA Contact:
URL:
Whiteboard:
Depends on: 10596
Blocks:
  Show dependency tree
 
Reported: 2017-03-06 21:09 UTC by Aníbal Limón
Modified: 2026-08-20 15:20 UTC (History)
11 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aníbal Limón 2017-03-06 21:09:06 UTC
Now the main script for test the compliance of certain layer to Yocto Project was integrated,


http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=93633edcf84dbf5d97a43cb8d1ebff790a6ab334

This bug is to add more tests.
Comment 1 Richard Purdie 2017-03-09 15:48:09 UTC
Can you be more specific about which tests we need to add? Bugs need to have specific objectives and should not be vague. Moving to NEEDINFO.
Comment 2 Aníbal Limón 2017-03-28 16:37:31 UTC
There are some tests that needs to be made based on YP Compatible registration form [1]:

- Test case to review if the README file specifies the maintainer.
- Test case to review if the README file specifies where to send patches.
- Test case to review if the README file contains the dependencies listed, this needs some format definition to be auditable?.

- Test case to build what the layer provides, at this time only parsing is made.

[1] https://www.yoctoproject.org/webform/yocto-project-compatible-registration
Comment 3 Juan Manuel Cruz Alcaraz 2017-08-24 16:13:05 UTC
This ticket was openned with the intention to start a conversation on additional tests for YP Compatibility script.

I will move it to Target Milestone Future and use it as an umbrella bug as tests are requested or agreed.

Should it be more appropriate to open an email conversation on the topic?
Comment 4 Leonardo Sandoval Gonzalez 2017-08-24 16:32:15 UTC
(In reply to comment #3)
> This ticket was openned with the intention to start a conversation on
> additional tests for YP Compatibility script.
> 
> I will move it to Target Milestone Future and use it as an umbrella bug as
> tests are requested or agreed.
> 
> Should it be more appropriate to open an email conversation on the topic?

Test expectations for this ticket (README and provides) have been clearly defined and I believe this can be done on 2.5 (not future).
Comment 5 Juan Manuel Cruz Alcaraz 2017-08-24 16:48:28 UTC
From my last conversation with Anibal, he told me that he proposed this tests as starting point:

- Test case to review if the README file specifies the maintainer.
- Test case to review if the README file specifies where to send patches.
- Test case to review if the README file contains the dependencies listed, this needs some format definition to be auditable?.
- Test case to build what the layer provides, at this time only parsing is made.

but that the README specifications still need to be discussed and approved. 

Besides, once more tests are added to the script, we would be forcing these caracteristics unto the community in order to obtain the compatibility certification.

Richard, do you think theses tests are good to go? Are there more people in the community we should get approval from?
Comment 6 Richard Purdie 2021-06-26 13:02:38 UTC
We should add the three mentioned tests for the README, even just searching the file to ensure the words "maintainer" and "patch" are present and that there is an email address in the file would be a good start.

I don't think we want to add build tests at this time.
Comment 7 Dhruva gole 2021-11-28 00:54:57 UTC
From what I understand so far, I will be adding code (that checks if strings "maintainer" and "patch" appear in README) under ``test_README()`` present here: https://git.yoctoproject.org/poky/tree/scripts/lib/compatlayer/cases/common.py?id=93633edcf84dbf5d97a43cb8d1ebff790a6ab334#n11 
And then submit a patch for the same.
Comment 8 Randy MacLeod 2023-10-24 14:24:40 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 9 Mike Jongen 2026-02-10 23:14:21 UTC
The tests for the README have been added.
Are there any tasks that can be done for this bug at the moment?

I did run the README test for a new layer created with `bitbake-layers create-layer`. The generated README starts with "This README file contains ". Since the maintainer/patch tests are skipped when the README file contains the word "README", the generated readme is not checked for maintainer/patch. 
(The check for "README" is for README files that reference other README files.)
Maybe change the check to look for "README.md"?
Comment 10 Randy MacLeod 2026-08-20 15:20:29 UTC
Paul to review for 6.2 work.