summaryrefslogtreecommitdiffstats
path: root/tests/ts/dmesg
diff options
context:
space:
mode:
authorSami Kerola2015-03-23 00:05:30 +0100
committerKarel Zak2015-03-23 10:34:49 +0100
commit711ebe0e6b6bf069e0badd2907207f6f6deab30f (patch)
tree0c992a523cff7ea8a9027ca1cc9ff47c91858877 /tests/ts/dmesg
parenttests: check timestamp formats (diff)
downloadkernel-qcow2-util-linux-711ebe0e6b6bf069e0badd2907207f6f6deab30f.tar.gz
kernel-qcow2-util-linux-711ebe0e6b6bf069e0badd2907207f6f6deab30f.tar.xz
kernel-qcow2-util-linux-711ebe0e6b6bf069e0badd2907207f6f6deab30f.zip
tests: check dmesg message coloring
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/dmesg')
-rwxr-xr-xtests/ts/dmesg/colors25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ts/dmesg/colors b/tests/ts/dmesg/colors
new file mode 100755
index 000000000..2dfc93737
--- /dev/null
+++ b/tests/ts/dmesg/colors
@@ -0,0 +1,25 @@
+#!/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="colors"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+
+ts_check_test_command "$TS_HELPER_DMESG"
+
+$TS_HELPER_DMESG --color=always -F $TS_SELF/input -x >> $TS_OUTPUT 2>/dev/null
+
+ts_finalize