diff options
author | Ruediger Meier | 2014-05-15 11:24:59 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-05-15 12:48:35 +0200 |
commit | 12826d4c20358a2e096b0df8e34dfb0fa88c5b21 (patch) | |
tree | a58ebc33e776045a827e205c5b2b5e7edfab3fa8 /tests/ts/build-sys | |
parent | tests: add function ts_check_prog (diff) | |
download | kernel-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-x | tests/ts/build-sys/config | 4 |
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 |