summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRuediger Meier2014-05-11 23:58:53 +0200
committerRuediger Meier2014-05-13 17:38:45 +0200
commit0eb90ba26480b8f64e1ce7f0643de2906bc19204 (patch)
treefa264f75172a5e98ecfcceff1842bd0c57296c3a /tests
parenttests, don't write TS_DEVICE to stdout anymore (diff)
downloadkernel-qcow2-util-linux-0eb90ba26480b8f64e1ce7f0643de2906bc19204.tar.gz
kernel-qcow2-util-linux-0eb90ba26480b8f64e1ce7f0643de2906bc19204.tar.xz
kernel-qcow2-util-linux-0eb90ba26480b8f64e1ce7f0643de2906bc19204.zip
tests: introduce TS_CMD_UUIDGEN (never use installed one)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/commands.sh1
-rwxr-xr-xtests/ts/libmount/context4
-rwxr-xr-xtests/ts/libmount/context-py3
-rwxr-xr-xtests/ts/libmount/context-utab3
-rwxr-xr-xtests/ts/libmount/context-utab-py3
5 files changed, 10 insertions, 4 deletions
diff --git a/tests/commands.sh b/tests/commands.sh
index 4b5a7d96d..ffc541b3c 100644
--- a/tests/commands.sh
+++ b/tests/commands.sh
@@ -73,5 +73,6 @@ TS_CMD_TAILF=${TS_CMD_TAILF-"$top_builddir/tailf"}
TS_CMD_UL=${TS_CMD_UL-"$top_builddir/ul"}
TS_CMD_UMOUNT=${TS_CMD_UMOUNT:-"$top_builddir/umount"}
TS_CMD_UTMPDUMP=${TS_CMD_UTMPDUMP-"$top_builddir/utmpdump"}
+TS_CMD_UUIDGEN=${TS_CMD_UUIDGEN-"$top_builddir/uuidgen"}
TS_CMD_WHEREIS=${TS_CMD_WHEREIS-"$top_builddir/whereis"}
TS_CMD_WIPEFS=${TS_CMD_WIPEFS-"$top_builddir/wipefs"}
diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context
index 8267b135d..0cc21ec77 100755
--- a/tests/ts/libmount/context
+++ b/tests/ts/libmount/context
@@ -12,11 +12,13 @@ ts_check_test_command "$TS_CMD_FDISK"
ts_check_test_command "$TS_CMD_FINDMNT"
ts_check_test_command "$TS_CMD_MOUNT"
ts_check_test_command "$TS_CMD_UMOUNT"
+ts_check_test_command "$TS_CMD_UUIDGEN"
ts_skip_nonroot
TESTPROG="$TS_HELPER_LIBMOUNT_CONTEXT"
LABEL=libmount-test
-UUID=$(uuidgen)
+UUID=$($TS_CMD_UUIDGEN)
+
MOUNTPOINT="$TS_MOUNTPOINT"
TS_NOEXIST="$TS_OUTDIR/${TS_TESTNAME}-${TS_SUBNAME}-noex"
[ -d $TS_NOEXIST ] && rmdir $TS_NOEXIST
diff --git a/tests/ts/libmount/context-py b/tests/ts/libmount/context-py
index 78994008a..14bde41f7 100755
--- a/tests/ts/libmount/context-py
+++ b/tests/ts/libmount/context-py
@@ -12,6 +12,7 @@ ts_check_test_command "$TS_CMD_FDISK"
ts_check_test_command "$TS_CMD_FINDMNT"
ts_check_test_command "$TS_CMD_MOUNT"
ts_check_test_command "$TS_CMD_UMOUNT"
+ts_check_test_command "$TS_CMD_UUIDGEN"
ts_init_py libmount
ts_skip_nonroot
@@ -20,7 +21,7 @@ TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT"
PYDBG="$PYTHON -m pdb"
LABEL=libmount-test
-UUID=$(uuidgen)
+UUID=$($TS_CMD_UUIDGEN)
MOUNTPOINT="$TS_MOUNTPOINT"
TS_NOEXIST="$TS_OUTDIR/${TS_TESTNAME}-${TS_SUBNAME}-noex"
[ -d $TS_NOEXIST ] && rmdir $TS_NOEXIST
diff --git a/tests/ts/libmount/context-utab b/tests/ts/libmount/context-utab
index 2c4e30ccf..c7b94a5bb 100755
--- a/tests/ts/libmount/context-utab
+++ b/tests/ts/libmount/context-utab
@@ -11,11 +11,12 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_FDISK"
ts_check_test_command "$TS_CMD_FINDMNT"
ts_check_test_command "$TS_CMD_WIPEFS"
+ts_check_test_command "$TS_CMD_UUIDGEN"
ts_skip_nonroot
TESTPROG="$TS_HELPER_LIBMOUNT_CONTEXT"
LABEL=libmount-test
-UUID=$(uuidgen)
+UUID=$($TS_CMD_UUIDGEN)
MOUNTPOINT="$TS_MOUNTPOINT"
[ -x $TESTPROG ] || ts_skip "test not compiled"
diff --git a/tests/ts/libmount/context-utab-py b/tests/ts/libmount/context-utab-py
index d2168a75c..e03332b37 100755
--- a/tests/ts/libmount/context-utab-py
+++ b/tests/ts/libmount/context-utab-py
@@ -10,6 +10,7 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_FDISK"
ts_check_test_command "$TS_CMD_FINDMNT"
ts_check_test_command "$TS_CMD_WIPEFS"
+ts_check_test_command "$TS_CMD_UUIDGEN"
ts_init_py libmount
ts_skip_nonroot
@@ -17,7 +18,7 @@ ts_skip_nonroot
TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT"
LABEL=libmount-test
-UUID=$(uuidgen)
+UUID=$($TS_CMD_UUIDGEN)
MOUNTPOINT="$TS_MOUNTPOINT"
# set global variable TS_DEVICE