summaryrefslogtreecommitdiffstats
path: root/tests/ts/utmp
diff options
context:
space:
mode:
authorKarel Zak2017-07-11 13:41:22 +0200
committerKarel Zak2017-07-11 13:41:22 +0200
commitc25a3ecaba34242143cbddeabf9fe9f211bdc255 (patch)
treef698a9c70f579e076629f45bae84e92d4b296139 /tests/ts/utmp
parenttests: use sample-fdisk-mkpart (diff)
downloadkernel-qcow2-util-linux-c25a3ecaba34242143cbddeabf9fe9f211bdc255.tar.gz
kernel-qcow2-util-linux-c25a3ecaba34242143cbddeabf9fe9f211bdc255.tar.xz
kernel-qcow2-util-linux-c25a3ecaba34242143cbddeabf9fe9f211bdc255.zip
tests: check for missing programs in last(1) test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/utmp')
-rwxr-xr-xtests/ts/utmp/last3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ts/utmp/last b/tests/ts/utmp/last
index 64b9b8c20..968310313 100755
--- a/tests/ts/utmp/last
+++ b/tests/ts/utmp/last
@@ -19,6 +19,9 @@ TS_DESC="last"
ts_init "$*"
ts_check_test_command "$TS_CMD_LAST"
+ts_check_test_command "$TS_CMD_UTMPDUMP"
+ts_check_prog "ln"
+
$TS_CMD_LAST --version 2>&1 | grep -q "invalid option" \
&& ts_skip "deprecated last"