Review Request 128533: Create a test that validates projects' appstream information

Aleix Pol Gonzalez aleixpol at kde.org
Wed Jul 27 22:07:30 UTC 2016



> On July 27, 2016, 2:34 a.m., Matthias Klumpp wrote:
> > kde-modules/test_appstream.cmake, line 1
> > <https://git.reviewboard.kde.org/r/128533/diff/1/?file=472470#file472470line1>
> >
> >     I am not 100% sure on how this works, but would it be possible to validate the .desktop file and AppStream XML together?
> >     For that, we would need an installed copy of the metadata and .desktop files in some directory `$DESTDIR` and then could fire `appstreamcli validate-tree $DESTDIR` at it.
> >     That command will validate all metainfo files together with the .desktop files and complain on error.
> 
> Aleix Pol Gonzalez wrote:
>     What should the `appstreamcli validate` call look like?
> 
> Matthias Klumpp wrote:
>     The `validate` call (not the `validate-tree` call!) takes a list of AppStream metadata files as parameters.
>     E.g. `appstreamcli validate org.example.Test1.metainfo.xml org.example.Test2.appdata.xml`

I don't think we want to call validate-tree then. Maybe it would make sense to be able to pass the desktop files there as well?


- Aleix


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128533/#review97859
-----------------------------------------------------------


On July 27, 2016, 2:25 a.m., Aleix Pol Gonzalez wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128533/
> -----------------------------------------------------------
> 
> (Updated July 27, 2016, 2:25 a.m.)
> 
> 
> Review request for Extra Cmake Modules, Matthias Klumpp and Scarlett Clark.
> 
> 
> Repository: extra-cmake-modules
> 
> 
> Description
> -------
> 
> At the moment, we're validating it in build.kde.org, but I feel it will be easier for developers to test if we do so locally.
> This patch does it by seeing which `*.appdata.xml` files are being installed and validating them. This way we can keep it generic for all KDE projects.
> 
> 
> Diffs
> -----
> 
>   kde-modules/KDECMakeSettings.cmake dd37e7f 
>   kde-modules/test_appstream.cmake PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/128533/diff/
> 
> 
> Testing
> -------
> 
> Tested on some projects, locally.
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20160727/a6a9cc20/attachment-0001.html>


More information about the Kde-buildsystem mailing list