diff options
author | Sami Kerola | 2014-02-16 16:22:56 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-07 11:52:57 +0100 |
commit | 2f791546395cb43f3f93de6c095c812c7cd5237f (patch) | |
tree | 0fe025270e9c5acbb15ef7d433c553a72fdfdf1e /tests/ts/dmesg | |
parent | tools: make config-gen to require build target argument (diff) | |
download | kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.gz kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.xz kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.zip |
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/dmesg')
-rwxr-xr-x | tests/ts/dmesg/console-levels | 2 | ||||
-rwxr-xr-x | tests/ts/dmesg/decode | 2 | ||||
-rwxr-xr-x | tests/ts/dmesg/delta | 2 | ||||
-rwxr-xr-x | tests/ts/dmesg/facilities | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/ts/dmesg/console-levels b/tests/ts/dmesg/console-levels index 7f21d9ab4..14c69c980 100755 --- a/tests/ts/dmesg/console-levels +++ b/tests/ts/dmesg/console-levels @@ -18,6 +18,8 @@ TS_DESC="levels" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + for I in {-1..8}; do $TS_CMD_DMESG -F $TS_SELF/input -l $I >> $TS_OUTPUT 2>/dev/null done diff --git a/tests/ts/dmesg/decode b/tests/ts/dmesg/decode index 0519a0200..63f3c5c47 100755 --- a/tests/ts/dmesg/decode +++ b/tests/ts/dmesg/decode @@ -18,6 +18,8 @@ TS_DESC="decode" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + $TS_CMD_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 2ad247746..da480421d 100755 --- a/tests/ts/dmesg/delta +++ b/tests/ts/dmesg/delta @@ -18,6 +18,8 @@ TS_DESC="delta" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + $TS_CMD_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 e503c1a13..7066ae58e 100755 --- a/tests/ts/dmesg/facilities +++ b/tests/ts/dmesg/facilities @@ -18,6 +18,8 @@ TS_DESC="facilities" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + for I in {-1..12}; do $TS_CMD_DMESG -F $TS_SELF/input -f $I >> $TS_OUTPUT 2>/dev/null done |