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/ipcs | |
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/ipcs')
-rwxr-xr-x | tests/ts/ipcs/headers | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/limits | 3 | ||||
-rwxr-xr-x | tests/ts/ipcs/limits2 | 3 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-msg | 4 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-sem | 4 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-shm | 4 |
6 files changed, 20 insertions, 0 deletions
diff --git a/tests/ts/ipcs/headers b/tests/ts/ipcs/headers index 52e108c23..5089ea512 100755 --- a/tests/ts/ipcs/headers +++ b/tests/ts/ipcs/headers @@ -21,6 +21,8 @@ TS_DESC="headers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" + ts_log "test: shm headers" $TS_CMD_IPCS -m -t | grep --after-context=1 "^---" >> $TS_OUTPUT $TS_CMD_IPCS -m -p | grep --after-context=1 "^---" >> $TS_OUTPUT diff --git a/tests/ts/ipcs/limits b/tests/ts/ipcs/limits index 9e164e526..71980b533 100755 --- a/tests/ts/ipcs/limits +++ b/tests/ts/ipcs/limits @@ -22,6 +22,9 @@ TS_DESC="limits overflow" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_IPCS" + ts_skip_nonroot type bc >/dev/null 2>&1 || ts_skip "cannot find bc command" diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2 index 39f26d708..7a7549aa3 100755 --- a/tests/ts/ipcs/limits2 +++ b/tests/ts/ipcs/limits2 @@ -21,6 +21,9 @@ TS_DESC="basic limits" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_IPCS" + type bc >/dev/null 2>&1 || ts_skip "cannot find bc command" . $TS_SELF/functions.sh diff --git a/tests/ts/ipcs/mk-rm-msg b/tests/ts/ipcs/mk-rm-msg index 5bea09bed..72f89b8a1 100755 --- a/tests/ts/ipcs/mk-rm-msg +++ b/tests/ts/ipcs/mk-rm-msg @@ -18,6 +18,10 @@ TS_DESC="mk-rm-msg" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-msg diff --git a/tests/ts/ipcs/mk-rm-sem b/tests/ts/ipcs/mk-rm-sem index 816d306d4..315261874 100755 --- a/tests/ts/ipcs/mk-rm-sem +++ b/tests/ts/ipcs/mk-rm-sem @@ -18,6 +18,10 @@ TS_DESC="mk-rm-sem" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-sem diff --git a/tests/ts/ipcs/mk-rm-shm b/tests/ts/ipcs/mk-rm-shm index 8aa604df9..9695ed17c 100755 --- a/tests/ts/ipcs/mk-rm-shm +++ b/tests/ts/ipcs/mk-rm-shm @@ -18,6 +18,10 @@ TS_DESC="mk-rm-shm" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-shm |