diff options
author | Karel Zak | 2012-07-30 18:19:20 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-30 18:19:20 +0200 |
commit | fc22bff04b90709b7c68b3d3206e79c09efb664d (patch) | |
tree | 0175ace44ed20b7382bd17410f1913956d4198f6 /tests | |
parent | tests: check for 'make check' (diff) | |
download | kernel-qcow2-util-linux-fc22bff04b90709b7c68b3d3206e79c09efb664d.tar.gz kernel-qcow2-util-linux-fc22bff04b90709b7c68b3d3206e79c09efb664d.tar.xz kernel-qcow2-util-linux-fc22bff04b90709b7c68b3d3206e79c09efb664d.zip |
build-sys: add run.sh to make check for non-root users
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makemodule.am | 1 | ||||
-rwxr-xr-x | tests/run-nonroot.sh | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makemodule.am b/tests/Makemodule.am index e25f71391..e7c31af23 100644 --- a/tests/Makemodule.am +++ b/tests/Makemodule.am @@ -10,4 +10,5 @@ EXTRA_DIST += \ clean-local-tests: rm -rf output diff +TESTS += tests/run-nonroot.sh CLEAN_LOCALS += clean-local-tests diff --git a/tests/run-nonroot.sh b/tests/run-nonroot.sh new file mode 100755 index 000000000..150a99f3a --- /dev/null +++ b/tests/run-nonroot.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +MYUID=$(id -ru) +if [ $MYUID -eq 0 ]; then + echo "The automatically executed tests suite is allowed for non-root users only." + exit 0 +fi + +exec $(cd $(dirname $0) && pwd)/run.sh |