-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial meson move #1226
base: master
Are you sure you want to change the base?
initial meson move #1226
Conversation
I had underestimated how big this project is, which is why i initially thought this would be quite easy, as i had figured dunst is this simple notification daemon program. |
What is difficult about the test binary? It just needs to be compiled and run with valgrind. Meson probably has some way to run binaries |
Thankfully, Meson comes with coverage reports, so i hope we can drop the coverage reporting all together and only have valgrind tests and run the test program. https://mesonbuild.com/howtox.html#producing-a-coverage-report sound good to you? (this is still somewhat very difficult due to the complexity of Dunst, its website, documentation, testing suite and such... i still really expected dunst to be a simple project) |
Yeah, seems good to me. Maybe @bebehei has a stronger opinion about this, since he set up most of our testing infrastructure. |
Nice! Meson was on my "fancy things I might implement" list. Need to try it with some spare time at the evening. |
If you are a bit more experienced with Meson, I'd suggest you give it a shot rather than me :D |
Sorry for giving false hints, but I do not have any experience with meson. |
I'll be dropping coverage tests for the time being. |
@fwsmit tests program is failing here as well. |
Notable changes:
|
Can |
Probably yes. |
I am rather concerned over the fact that 'main.c' isnt simply just the |
I was also wondering why that is.(some leftover?) Probably main.c could be removed altogether by putting main in dunst.c? |
Other code in the test suites depend on code from dunst.c. I've tried to move dunst_main to main.c myself but unsure what to do about the |
Well, since the main function is heavily tied to everything in dunst.c probably moving main there would be better. |
Moving main.c to dunst.c, while dunst.c is required by the test suite causes problems, as the test suite depends on dunst's code too. |
Some simple meta programming can fix that honestly. #ifndef TESTING
int main(int argc, char **argv) {
return dunst_main(argc, argv);
}
#endif |
|
anything missing from the makefile so far? |
I was wondering, why remove outright the makefile when they can coexist afaik? Shouldn't the option to use meson be added alongside of makefiles? Then, after some time (to get feedback from the users), removing the latter can be thought of in another pr. |
It doesn't make sense to keep both build systems, it will be messy. |
Yes, but it is still an additional dependency that is really not that required. I mean, it doesn't seem to add any value to what the makefiles can already do. So people would have to install and learn meson instead of just using make (installed by default everywhere) just for the sake of using meson. Well, that is my idea. @fwsmit or @bebehei should decide a reasonable compromise. Note: I am not saying that meson is useless, just that removing the makefiles point blank is probably not the best way |
Congrats you found #1228 on your own, which I can replicate without Meson. |
I'm just going to point to #1226 (review), because it's most certainly a meson port issue. |
It actually is not the same thing, because I tried commenting the notification test suite (which is what causes the problem there) and it still is being problematic. Also a lot (and I mean it) of tests fail, so there is something else going on. Obviously I tried make and it works for the tests.
Thanks for pointing that out. I thought that a way to fix this problem was added already. Also I noticed that the test runner is built/run with the debug verbosity which is not ideal since it clutters all the output |
...What is that status on this? |
if i remember correctly the only problem was with the test runner? |
Why is there an installation section in the wiki? shouldn't it be in the README? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1226 +/- ##
=======================================
Coverage 65.07% 65.07%
=======================================
Files 50 50
Lines 8669 8669
Branches 1026 1026
=======================================
Hits 5641 5641
Misses 3028 3028
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I guess it should be in both. the wiki is still documentation |
That is how any project get started. If we knew up front how much work it would be, nobody would ever start anything. ;-) Looking forward to the final result, I have packaged up 150+ source packages and the stinkers are those who does not follow a strict autoconf / meson or cmake build. The best most pleasant packages to work with are those build on Meson. |
can we finish this? it was mostly done if I remember correctly |
becomes consistent with Makefile.
6232e71
to
9ed0847
Compare
Currently, this has no support for the following features that already existed within Makefile:
Valgrindhttps://mesonbuild.com/Unit-tests.html#other-test-optionsTest programmeson setup -Dtest=true
Documentation (Move to scdoc #1225)Fixes #1224