summaryrefslogtreecommitdiffstats
path: root/tests/ts/last/ipv6
diff options
context:
space:
mode:
authorSami Kerola2013-08-29 11:56:47 +0200
committerSami Kerola2013-08-29 19:14:10 +0200
commit1342426248124fa26cfc1fdc174a677edb43272e (patch)
tree98cc1f470eb60b941e2e5e95409cd0ad6041e08c /tests/ts/last/ipv6
parentutmpdump: make IPv6 addresses work (diff)
downloadkernel-qcow2-util-linux-1342426248124fa26cfc1fdc174a677edb43272e.tar.gz
kernel-qcow2-util-linux-1342426248124fa26cfc1fdc174a677edb43272e.tar.xz
kernel-qcow2-util-linux-1342426248124fa26cfc1fdc174a677edb43272e.zip
tests: check last(1) and utmpdump(1) IPv6 functionality
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/last/ipv6')
-rwxr-xr-xtests/ts/last/ipv641
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/ts/last/ipv6 b/tests/ts/last/ipv6
new file mode 100755
index 000000000..8e2b01e5c
--- /dev/null
+++ b/tests/ts/last/ipv6
@@ -0,0 +1,41 @@
+#!/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="last ipv6"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+
+export LANG=C
+export TZ=GMT
+
+>| $TS_OUTPUT
+
+ts_log "~~~ dns short ~~~"
+$TS_CMD_LAST -f $TS_SELF/ipv6-input -d >> $TS_OUTPUT 2>/dev/null
+
+ts_log "~~~ dns long ~~~"
+$TS_CMD_LAST -f $TS_SELF/ipv6-input -d -w >> $TS_OUTPUT 2>/dev/null
+
+ts_log "~~~ dns host last ~~~"
+$TS_CMD_LAST -f $TS_SELF/ipv6-input -d -a >> $TS_OUTPUT 2>/dev/null
+
+ts_log "~~~ show ip ~~~"
+$TS_CMD_LAST -f $TS_SELF/ipv6-input -i >> $TS_OUTPUT 2>/dev/null
+
+ts_log "~~~ show ip last ~~~"
+$TS_CMD_LAST -f $TS_SELF/ipv6-input -i -a >> $TS_OUTPUT 2>/dev/null
+
+ts_finalize