summaryrefslogtreecommitdiffstats
path: root/tests/ts/utmp/utmpdump-totxt
diff options
context:
space:
mode:
authorRuediger Meier2014-06-11 15:36:42 +0200
committerRuediger Meier2014-06-12 01:09:04 +0200
commit45b1ca8eb045c87307deed1dfe1497314d64cbd6 (patch)
treea958d07c87587a8068338f7b55c9f57c48401eca /tests/ts/utmp/utmpdump-totxt
parenttests: merge last/ and utmpdump/ into new utmp/ dir (diff)
downloadkernel-qcow2-util-linux-45b1ca8eb045c87307deed1dfe1497314d64cbd6.tar.gz
kernel-qcow2-util-linux-45b1ca8eb045c87307deed1dfe1497314d64cbd6.tar.xz
kernel-qcow2-util-linux-45b1ca8eb045c87307deed1dfe1497314d64cbd6.zip
tests: skip utmpdump tests for exotic archs
We introduce utmp_functions.sh and skip tests if size of utmp struct does not match our wtmp test data. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/utmp/utmpdump-totxt')
-rwxr-xr-xtests/ts/utmp/utmpdump-totxt5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ts/utmp/utmpdump-totxt b/tests/ts/utmp/utmpdump-totxt
index 50259110c..37d376a8b 100755
--- a/tests/ts/utmp/utmpdump-totxt
+++ b/tests/ts/utmp/utmpdump-totxt
@@ -18,9 +18,8 @@ TS_DESC="to text"
. $TS_TOPDIR/functions.sh
ts_init "$*"
-ts_check_test_command "$TS_CMD_UTMPDUMP"
-
-BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order)
+. "$TS_SELF/utmp_functions.sh"
+[ $SIZEOF_UTMP -eq 384 ] || ts_skip "utmp struct size $SIZEOF_UTMP"
export LANG=C
export TZ=GMT