Follow

Question for the system programming folks: I have a program that needs to subprocess some tasks to OS built-ins, and would like to have tests validating they work. So far I’ve only managed to take the function in question out and run it stand-alone in a ephemeral VM. Not the most easily automated task unfortunately. I’ve considered perhaps a test harness leveraging a tempdir and chroot, but I’m not sure how sane (or insane) that approach might be. Any suggestions on how to proceed?

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml