unit test / run test in xfce code (here clipman)?
Alex
acs82 at gmx.de
Wed Dec 29 15:56:33 CET 2021
Hi Sylvain,
> Could the path of migrating from autotools to meson a valid one?
I am not a buildsystem-expert, though meson is said to be much more
simple than autohell and is widely used nowadays.
If there is a direct benefit regarding testing from my POV it should be
fine to port xfce4-clipman-plugin to meson ... though others devs might
have a different POV here. (I suppose our CI would need to be touched in
order to support meson builds)
For a start, check this inofficial plugin which as well uses meson:
https://gitlab.xfce.org/itsManjeet/sample-python-plugin
In any case, if you are goint to port it, please use a separate MR.
> So I did a merge request for the work in progress:
>
https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/merge_requests/17
<https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/merge_requests/17>
Thank you! Phew, a +2000 line change :F .. dont have time to review it,
though I will try to give some general hints.
Cheers,
Alex
Am 29.12.21 um 08:02 schrieb Sylvain Viart:
> Hi Alex,
>
> Thanks for your CC. :-)
>
>
> On 27/12/2021 15:33, Alex wrote:
>> in order that others can see what you did / to bring back you changes
>> to the origin, it would help alot to have a merge request. Label it
>> as WIP, if it is working in process.
>>
>> (Though currently xfce4-clipman-plugin is unmaintained, so dont
>> expect a review / reply )
>
> As my work was a PoC at first, it was not necessary to have a MR. Nor
> even it have any meaning to me.
> Also I didn't know the use-case of holding a change into a merge
> request, that is still not to be merged.
> Thanks for the information.
>
> So I did a merge request for the work in progress:
>
> https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/merge_requests/17
> <https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/merge_requests/17>
>
>
> reader useful link
> https://docs.gitlab.com/ee/user/project/merge_requests/drafts.html
> <https://docs.gitlab.com/ee/user/project/merge_requests/drafts.html>
> current gitlab xfce version is: GitLab Community Edition 14.5.2
> The new text label for WIP MR seems to be' Draft:'
>
> Back on automated unit testing:
>> > I mean if I've to run it [test binaries] manually, it's not the
>> idea I've about an automated test suite.
>>
>> No idea what was the intend behind these tests ... a pity that ther
>> was no README in the test-folder. Would be great if you could figure
>> out and open an according MR.
>>
>> > So I suppose I can start anywhere...
>>
>> Yea, I think so. https://docs.gtk.org/glib/testing.html
>> <https://docs.gtk.org/glib/testing.html> and automake probably are
>> the right points to start looking.
>
> Unfortunately the glib's forum/discourse answer was:
>
> https://discourse.gnome.org/t/add-unit-testing-to-a-gtk-c-application/8450
> <https://discourse.gnome.org/t/add-unit-testing-to-a-gtk-c-application/8450>
> TL;DR: use meson not autotools 🙁
>
> So setuping those automated test (glib one with automake) seems a bit
> deprecated. They even removed the files mentioned is the doc from the
> repos. 🙁
> So I may start somewhere else. I will explore. 😕
> This mean that setuping automated test will be a real quest (a huge
> one), I'm gonna write a novel. 😉
>
> It seems I found a thread with huge bobbin. 😁
> Hopefully I'm very tenacious (some may say pugnacious, or even
> stubborn) so I will go through.
>
> Could the path of migrating from autotools to meson a valid one?
> I mean I looked to some project in xfce, I even did a find search on
> the docker container xfce-test /git and the only project using meson
> is (over 65 repos)
>
> ./Greybird/meson.build
>
> Note I don't know meson yet, nor autotools.
>
>> > I also found: xfce-test and behave, but I don't know yet how to use it.
>>
>> Here some info: https://wiki.xfce.org/testing/xfce-test
>>
>
> Ho, thanks, it seems I missed this one.
>
> To be continued.
>
> Regards,
> Sylvain.
> --
> Sylvain Viart - GNU/Linux Sysadmin/Developer/DevOps - France
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20211229/68c1e4da/attachment.html>
More information about the Xfce4-dev
mailing list