summaryrefslogtreecommitdiffstats
path: root/tests/ts/libmount/context
diff options
context:
space:
mode:
authorKarel Zak2011-01-25 16:36:28 +0100
committerKarel Zak2011-01-25 16:36:28 +0100
commit6c2bbad199458562488fc249c10a6fa371d476f6 (patch)
tree799441c4dc4e41078f06dd7385ce272a73974e5f /tests/ts/libmount/context
parentlibmount: don't compile tests by default (diff)
downloadkernel-qcow2-util-linux-6c2bbad199458562488fc249c10a6fa371d476f6.tar.gz
kernel-qcow2-util-linux-6c2bbad199458562488fc249c10a6fa371d476f6.tar.xz
kernel-qcow2-util-linux-6c2bbad199458562488fc249c10a6fa371d476f6.zip
tests: skip non-compiled libmount tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/libmount/context')
-rwxr-xr-xtests/ts/libmount/context2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context
index 536ab1b50..4248f3132 100755
--- a/tests/ts/libmount/context
+++ b/tests/ts/libmount/context
@@ -14,6 +14,8 @@ LABEL=libmount-test
UUID=$(uuidgen)
MOUNTPOINT="$TS_MOUNTPOINT"
+[ -x $TESTPROG ] || ts_skip "test not compiled"
+
modprobe --dry-run --quiet scsi_debug
[ "$?" == 0 ] || ts_skip "missing scsi_debug module"