{"push_id":548767916,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"7a8b4788d0d18d71caa372431d13069207b4ec3f","before":"e60fe722ce5ac6304354553ce582ab3301281c8c","commits":[{"sha":"7a8b4788d0d18d71caa372431d13069207b4ec3f","author":{"email":"e388d34fd3c0456122779e95f262c0d70198a168@tenstral.net","name":"Matthias Klumpp"},"message":"Get rid of all unit-test hacks by creating a fake root environment\n\nThis solution unfortunately makes it necessary to run the testsuite with\nroot permission.\nOn the pro side, it removes lots of hacks which were in the Limba code\njust to make testing possible.\nThe new testing framework should make it much easier to write tests and\nthe tests should be much more realistic now, than with the previous\npath-hacks.\nTechnically, we create a new root tree, mount the host filesystem into\nit using OverlayFS and keep a \"shadow\" copy with volatile data created\nby the testsuite, where all write operations of the testsuite are\ncollected.\nState data and /opt is not taken from the host, so Limba tests should\nrun unaffected by eventual other Limba packages which have been\ninstalled on the host.\n\nCareful! This patch has only been tested briefly so far, and maybe has\nbugs which I do not see yet. The (un)mounting could also be made smarter\nin future by having a separate process supervise the tests and create\nthe fake environment.","distinct":true,"url":"https://api.github.com/repos/ximion/limba/commits/7a8b4788d0d18d71caa372431d13069207b4ec3f"}]}