diff options
author | Ruediger Meier | 2014-06-11 17:47:34 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-06-11 23:08:49 +0200 |
commit | 02229b5519ac77dec26d829c6be14e826d4611bc (patch) | |
tree | f5b100eb43d400e30026484adabd0232edcc635b /tests/ts/utmp/utmpdump-totxt-ipv6 | |
parent | utmpdump: fix localtime() error handling (diff) | |
download | kernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.tar.gz kernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.tar.xz kernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.zip |
tests: merge last/ and utmpdump/ into new utmp/ dir
We want to prepare and simplify utmp sepcific fixes. Beside all this
renaming we also update/add some text data to have it more consistent.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/utmp/utmpdump-totxt-ipv6')
-rwxr-xr-x | tests/ts/utmp/utmpdump-totxt-ipv6 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/ts/utmp/utmpdump-totxt-ipv6 b/tests/ts/utmp/utmpdump-totxt-ipv6 new file mode 100755 index 000000000..7ef61803f --- /dev/null +++ b/tests/ts/utmp/utmpdump-totxt-ipv6 @@ -0,0 +1,29 @@ +#!/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="${0%/*}/../.." +TS_DESC="IPv6 to text" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +ts_check_test_command "$TS_CMD_UTMPDUMP" + +BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order) + +export LANG=C +export TZ=GMT +$TS_CMD_UTMPDUMP $TS_SELF/wtmp-ipv6.$BYTE_ORDER >| $TS_OUTPUT 2>/dev/null + +ts_finalize |