@navi@sertonix I think for docker I always end up using it in anger. Much less frustration with lxc but haven't used it since lxc-templates got thrown away. Meanwhile bwrap is quite comfy, although I should also test unshare(1).
@lanodan@sertonix it could, and initially i proposed testing with podman/docker
but it ends up really messy, and i suck at containers -- besides i think it's better practice to make the code more flexible wrt install locations anyway
for chrooting, i couldn't find a decent way to build a chroot automatically and reliably, but i probably didn't look far enough
i'll revisit containers and/or chroots when i get into integration tests tho, i still want unit tests to be able to simply run inside $build_dir
@navi@sertonix bind mount of the original system + openrc install prefix with an overlay mount instead of pulling another rootfs?
That said I think I'd also be fine with like creating an Alpine rootfs (as apk init is great for this and doesn't requires a lot of space unlike say gentoo stage3), better than no tests.
oh... i didn't think of doing a ro bind mount of / -- that's kinda really smart, i'll try it
only issue i can think of is a bit convoluted, but, it's if openrc is installed on /, and we remove a file from the version we want to test, but that file would be still there in the base image