diff options
author | Sami Kerola | 2015-03-23 00:05:28 +0100 |
---|---|---|
committer | Karel Zak | 2015-03-23 10:34:49 +0100 |
commit | 5fac518cefdba5c06829be187cefa3e904a7e1b3 (patch) | |
tree | 62686b68308c2ecd352d13303a19252db56629cf /tests/ts/dmesg | |
parent | tests: add dmesg multiline message check (diff) | |
download | kernel-qcow2-util-linux-5fac518cefdba5c06829be187cefa3e904a7e1b3.tar.gz kernel-qcow2-util-linux-5fac518cefdba5c06829be187cefa3e904a7e1b3.tar.xz kernel-qcow2-util-linux-5fac518cefdba5c06829be187cefa3e904a7e1b3.zip |
tests: add test_dmesg that has fixed boot time
This allows testing time stamp formats.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/dmesg')
-rwxr-xr-x | tests/ts/dmesg/console-levels | 4 | ||||
-rwxr-xr-x | tests/ts/dmesg/decode | 4 | ||||
-rwxr-xr-x | tests/ts/dmesg/delta | 4 | ||||
-rwxr-xr-x | tests/ts/dmesg/facilities | 4 | ||||
-rwxr-xr-x | tests/ts/dmesg/indentation | 10 |
5 files changed, 13 insertions, 13 deletions
diff --git a/tests/ts/dmesg/console-levels b/tests/ts/dmesg/console-levels index 14c69c980..9abd5b285 100755 --- a/tests/ts/dmesg/console-levels +++ b/tests/ts/dmesg/console-levels @@ -18,10 +18,10 @@ TS_DESC="levels" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_check_test_command "$TS_CMD_DMESG" +ts_check_test_command "$TS_HELPER_DMESG" for I in {-1..8}; do - $TS_CMD_DMESG -F $TS_SELF/input -l $I >> $TS_OUTPUT 2>/dev/null + $TS_HELPER_DMESG -F $TS_SELF/input -l $I >> $TS_OUTPUT 2>/dev/null done ts_finalize diff --git a/tests/ts/dmesg/decode b/tests/ts/dmesg/decode index 63f3c5c47..4725208d5 100755 --- a/tests/ts/dmesg/decode +++ b/tests/ts/dmesg/decode @@ -18,8 +18,8 @@ TS_DESC="decode" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_check_test_command "$TS_CMD_DMESG" +ts_check_test_command "$TS_HELPER_DMESG" -$TS_CMD_DMESG -x -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null +$TS_HELPER_DMESG -x -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null ts_finalize diff --git a/tests/ts/dmesg/delta b/tests/ts/dmesg/delta index da480421d..4b55bf636 100755 --- a/tests/ts/dmesg/delta +++ b/tests/ts/dmesg/delta @@ -18,8 +18,8 @@ TS_DESC="delta" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_check_test_command "$TS_CMD_DMESG" +ts_check_test_command "$TS_HELPER_DMESG" -$TS_CMD_DMESG -d -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null +$TS_HELPER_DMESG -d -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null ts_finalize diff --git a/tests/ts/dmesg/facilities b/tests/ts/dmesg/facilities index 7066ae58e..bc44c2546 100755 --- a/tests/ts/dmesg/facilities +++ b/tests/ts/dmesg/facilities @@ -18,10 +18,10 @@ TS_DESC="facilities" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_check_test_command "$TS_CMD_DMESG" +ts_check_test_command "$TS_HELPER_DMESG" for I in {-1..12}; do - $TS_CMD_DMESG -F $TS_SELF/input -f $I >> $TS_OUTPUT 2>/dev/null + $TS_HELPER_DMESG -F $TS_SELF/input -f $I >> $TS_OUTPUT 2>/dev/null done ts_finalize diff --git a/tests/ts/dmesg/indentation b/tests/ts/dmesg/indentation index 74198889b..624dd9b49 100755 --- a/tests/ts/dmesg/indentation +++ b/tests/ts/dmesg/indentation @@ -18,14 +18,14 @@ TS_DESC="indentation" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_check_test_command "$TS_CMD_DMESG" +ts_check_test_command "$TS_HELPER_DMESG" -$TS_CMD_DMESG -F $TS_SELF/newlines > $TS_OUTPUT 2>&1 +$TS_HELPER_DMESG -F $TS_SELF/newlines > $TS_OUTPUT 2>&1 -$TS_CMD_DMESG -F $TS_SELF/newlines -x >> $TS_OUTPUT 2>&1 +$TS_HELPER_DMESG -F $TS_SELF/newlines -x >> $TS_OUTPUT 2>&1 -$TS_CMD_DMESG --time-format=delta --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1 +$TS_HELPER_DMESG --time-format=delta --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1 -$TS_CMD_DMESG --time-format=notime --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1 +$TS_HELPER_DMESG --time-format=notime --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1 ts_finalize |