diff options
author | Sami Kerola | 2015-03-23 00:05:30 +0100 |
---|---|---|
committer | Karel Zak | 2015-03-23 10:34:49 +0100 |
commit | 711ebe0e6b6bf069e0badd2907207f6f6deab30f (patch) | |
tree | 0c992a523cff7ea8a9027ca1cc9ff47c91858877 /tests/ts/dmesg | |
parent | tests: check timestamp formats (diff) | |
download | kernel-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-x | tests/ts/dmesg/colors | 25 |
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 |