Skip to content

running tests as fakeroot

Jonathan Nieder git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3test-lib: tests can have multiple prerequisitest/test-lib.sh+10 -74 replies
2/3t1004 (read-tree): the unremovable symlink test requires POSIXPERMt/t1004-read-tree-m-u-wf.sh+1 -10 replies
3/3Permit tests to be run as a (fake) root usert/test-lib.sh+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] running tests as fakeroot

Hi,

The Debian build system makes it very tempting to build as
fakeroot: basically, one has a choice of

debian/rules build
fakeroot debian/rules binary

or just

fakeroot debian/rules binary

to build a .deb from the current sources. I hadn’t succumbed to temptation until today; but now that I have, I want to fix it. I’ll discuss whether this is a good idea more in patch 3.

Patches 1 and 2 are a bit simpler. Patch 1 allows tests to have multiple prerequisites, which seems like a good idea generally; patch 2 adds a missing POSIXPERM prerequisite to an existing test.

I hope you like the patches. Sorry for the huge cc list; I did a quick search to find people interested one way or another, and aparently there are many. I am sending patches 1 and 2 only to the git list to avoid making the problem worse.

Thoughts?
Jonathan Nieder (3):
test-lib: tests can have multiple prerequisites
t1004 (read-tree): the unremovable symlink test requires POSIXPERM Permit tests to be run as a (fake) root user

 t/t1004-read-tree-m-u-wf.sh |    2 +-
 t/test-lib.sh               |   22 ++++++++++++++--------
 2 files changed, 15 insertions(+), 9 deletions(-)