diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-06-19 17:02:50 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2017-06-20 12:18:54 +0800 |
commit | fee992c75d08cd935f78120787d574fc70d707a0 (patch) | |
tree | 41e18c74cbade77e042ee9674711357231888dca | |
parent | 890c1200dbc71953bce7fb050c4f2953eb9bd2ca (diff) |
linux: ltp: install genisoimage for isofs test
Change-Id: I10749307b18e92a7414837c220393e2acf21a8b2
Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-x | automated/linux/ltp/ltp.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 619bf9b..0631864 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -95,16 +95,29 @@ else # shellcheck disable=SC2154 case "${dist}" in debian|ubuntu) - pkgs="xz-utils flex bison build-essential wget curl net-tools quota" + pkgs="xz-utils flex bison build-essential wget curl net-tools quota genisoimage" install_deps "${pkgs}" "${SKIP_INSTALL}" ;; centos|fedora) - pkgs="xz flex bison make automake gcc gcc-c++ kernel-devel wget curl net-tools quota" + pkgs="xz flex bison make automake gcc gcc-c++ kernel-devel wget curl net-tools quota genisoimage" install_deps "${pkgs}" "${SKIP_INSTALL}" ;; *) warn_msg "Unsupported distribution: package install skipped" esac + + # Check if mkisofs or genisoimage installed for isofs test. + if echo "${TST_CMDFILES}" | grep 'fs'; then + # link mkisofs to genisoimage on distributions that have replaced mkisofs with genisoimage. + if ! which mkisofs; then + if which genisoimage; then + ln -s "$(which genisoimage)" /usr/bin/mkisofs + else + warn_msg "Neither mkisofs nor genisoimage found! Either of them is required by isofs test." + fi + fi + fi + info_msg "Run install_ltp" install_ltp fi |