-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
[PACKAGES] Add support for FreeBSD & OpenBSD #77
Conversation
Oh! Tests! Oops... It's about time I go to bed now, let me convert this to draft and I'll fix that tomorrow 😄 |
No worries ! I took the liberty to simplify writing tests for this entry, hoping it will (DRY and) help you add the missing ones tonight 😅 |
4ca650f
to
322147e
Compare
Ah... I just rewrote the package tests for this before pulling your changes... We made very, very similar changes 😆 I've pushed them to bsd_support/packages_alt, perhaps we could merge them together? Edit: To be honest, I think I prefer your approach with seperate cases, so if you want we can merge this in and just delete the other branch. Meanwhile, I'll add the required tests here too 👍 Edit 2: Also, you too! Catch you later 😄 |
Oh sorry... There was some concurrency in our flow 🙄 Although, I might have noticed an inconsistency. Thanks, see you 👋 |
Uses more-correct mocks for `pkg` and `pkg_info`.
Yeah, sorry about that, I was a bit cheeky and since my BSD installations have ~150 packages each I didn't fancy adding in an extra 300 lines to the test just for those...! Each of those lists was simply the first 6/7 packages listed in each output. I went about installing two fresh copies and I've now put their far more minimal outputs into the tests so they're more correct 👍. You can see the |
No problem ! All the other tests are actually only partial outputs too, to avoid really-really-really-long irrelevant lists...
I'm not sure about ignoring |
Ohhh!, I've misinterpeted the comment in # If any, deduct output skew present due to the packages tool. I thought this meant the package manager itself was deducted from the count - but this actually means any skew due to the formatting of the output, right? So, I assume all the other package managers already include themselves if they are listed? That does make sense, like you say they are indeed packages with versions that can be updated and such. We should probably still treat them as a package in our count, then. Sorry for the mix-up! 😄 Assuming we're following this pattern, that removes the skew from |
Description
Simply adds the OpenBSD and FreeBSD package managers to the entry so it works.
Reason and / or context
See #69.
How has this been tested ?
On fresh virtual machines.
Types of changes :
Checklist :