summaryrefslogtreecommitdiffstats
path: root/tests/ts/utmpdump/to-binary
diff options
context:
space:
mode:
authorSami Kerola2013-01-19 01:08:52 +0100
committerKarel Zak2013-01-24 16:49:27 +0100
commit6d0b6f70e0b736295aa700ae668b69f720f610e2 (patch)
tree429711a447ea2aacc8217c83825565f09576a070 /tests/ts/utmpdump/to-binary
parenttests: add rev(1) check (diff)
downloadkernel-qcow2-util-linux-6d0b6f70e0b736295aa700ae668b69f720f610e2.tar.gz
kernel-qcow2-util-linux-6d0b6f70e0b736295aa700ae668b69f720f610e2.tar.xz
kernel-qcow2-util-linux-6d0b6f70e0b736295aa700ae668b69f720f610e2.zip
tests: add utmpdump(1) check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/utmpdump/to-binary')
-rwxr-xr-xtests/ts/utmpdump/to-binary23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ts/utmpdump/to-binary b/tests/ts/utmpdump/to-binary
new file mode 100755
index 000000000..25acbf662
--- /dev/null
+++ b/tests/ts/utmpdump/to-binary
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="to-binary"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+
+$TS_CMD_UTMPDUMP -r $TS_SELF/text >| $TS_OUTPUT 2>/dev/null
+
+ts_finalize