
Loading…
Do not run test requiring root when fakeroot is used #1
Merged
+14
−0
eugmes
commented
|
|
eugmes |
Do not run test requiring root when fakeroot is used
…
When build process is run under fakeroot reported UID is 0, but it is not enough to run tests requiring root access. Using fakeroot is needed for example for building Debian package. |
3421c35
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Commits on Jul 21, 2011
-
Do not run test requiring root when fakeroot is used …
eugmes authoredWhen build process is run under fakeroot reported UID is 0, but it is not enough to run tests requiring root access. Using fakeroot is needed for example for building Debian package.
This page is out of date. Refresh to see the latest.
Showing
with
14 additions
and 0 deletions.
- +5 −0 tests/kern/runtest
- +1 −0 tests/misc/t00
- +1 −0 tests/misc/t01
- +1 −0 tests/misc/t02
- +1 −0 tests/misc/t03
- +1 −0 tests/misc/t11
- +4 −0 tests/user/runtest
5
tests/kern/runtest
1
tests/misc/t00
| @@ -1,6 +1,7 @@ | ||
| #!/bin/bash -e | ||
| TEST=$(basename $0 | cut -d- -f1) | ||
| +test -n "$FAKEROOTKEY" && exit 77 #skip if under fakeroot | ||
| test $(id -u) == 0 || exit 77 #skip if not root | ||
| ./tsetfsuid >$TEST.out 2>&1 | ||
| diff $TEST.exp $TEST.out >$TEST.diff |
1
tests/misc/t01
| @@ -1,6 +1,7 @@ | ||
| #!/bin/bash -e | ||
| TEST=$(basename $0 | cut -d- -f1) | ||
| +test -n "$FAKEROOTKEY" && exit 77 #skip if under fakeroot | ||
| test $(id -u) == 0 || exit 77 #skip if not root | ||
| ./tsetfsuidsupp >$TEST.out 2>&1 | ||
| diff $TEST.exp $TEST.out >$TEST.diff |
1
tests/misc/t02
| @@ -1,6 +1,7 @@ | ||
| #!/bin/bash -e | ||
| TEST=$(basename $0 | cut -d- -f1) | ||
| +test -n "$FAKEROOTKEY" && exit 77 #skip if under fakeroot | ||
| test $(id -u) == 0 || exit 77 #skip if not root | ||
| ./tsuppgrp >$TEST.out 2>&1 | ||
| diff $TEST.exp $TEST.out >$TEST.diff |
1
tests/misc/t03
| @@ -1,6 +1,7 @@ | ||
| #!/bin/bash -e | ||
| TEST=$(basename $0 | cut -d- -f1) | ||
| +test -n "$FAKEROOTKEY" && exit 77 #skip if under fakeroot | ||
| test $(id -u) == 0 || exit 77 #skip if not root | ||
| ./tsetuid >$TEST.out 2>&1 | ||
| diff $TEST.exp $TEST.out >$TEST.diff |
1
tests/misc/t11
| @@ -1,6 +1,7 @@ | ||
| #!/bin/bash -e | ||
| TEST=$(basename $0 | cut -d- -f1) | ||
| +test -n "$FAKEROOTKEY" && exit 77 #skip if under fakeroot | ||
| test $(id -u) == 0 || exit 77 #skip if not root | ||
| ./tcap >$TEST.out 2>&1 | ||
| diff $TEST.exp $TEST.out >$TEST.diff |
4
tests/user/runtest
When build process is run under fakeroot reported UID is 0, but
it is not enough to run tests requiring root access. Using
fakeroot is needed for example for building Debian package.
I'm using a similar patch in Debian package. It would be good to drop it.