summaryrefslogtreecommitdiffstats
path: root/tests/ts/build-sys
diff options
context:
space:
mode:
authorRuediger Meier2014-05-15 11:24:59 +0200
committerRuediger Meier2014-05-15 12:48:35 +0200
commit12826d4c20358a2e096b0df8e34dfb0fa88c5b21 (patch)
treea58ebc33e776045a827e205c5b2b5e7edfab3fa8 /tests/ts/build-sys
parenttests: add function ts_check_prog (diff)
downloadkernel-qcow2-util-linux-12826d4c20358a2e096b0df8e34dfb0fa88c5b21.tar.gz
kernel-qcow2-util-linux-12826d4c20358a2e096b0df8e34dfb0fa88c5b21.tar.xz
kernel-qcow2-util-linux-12826d4c20358a2e096b0df8e34dfb0fa88c5b21.zip
tests: consolidate some checks for commands
Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/build-sys')
-rwxr-xr-xtests/ts/build-sys/config4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/build-sys/config b/tests/ts/build-sys/config
index 308c34b2d..5ae83a3bb 100755
--- a/tests/ts/build-sys/config
+++ b/tests/ts/build-sys/config
@@ -11,8 +11,8 @@ TS_OPTIONAL="yes"
. $TS_TOPDIR/functions.sh
ts_init "$*"
-[ -x /usr/bin/readelf ] || ts_skip "readelf(1) not found"
-[ -x /usr/bin/file ] || ts_skip "file(1) not found"
+ts_check_prog "readelf"
+ts_check_prog "file"
config_gen_dir="$top_srcdir/tools"
. $config_gen_dir/config-gen-functions.sh