diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-06-16 18:17:17 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-06-21 16:20:39 +0000 |
commit | 0916f33ae552bdb68b907328919febdef1ff66a7 (patch) | |
tree | 81251effd6c618dc43c39cc4c81668455aa987e8 /automated/linux/dsdbench | |
parent | 01a53c6175663afc0ee8d73b63dd4284aaf6f8e3 (diff) |
linux: jessie: install golang, nginx and openjdk8+ from backports
Fix https://bugs.linaro.org/show_bug.cgi?id=3044
Change-Id: I126ac676681440bfe55d7805d4206244f0200b7b
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/linux/dsdbench')
-rwxr-xr-x | automated/linux/dsdbench/dsdbench.sh | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/automated/linux/dsdbench/dsdbench.sh b/automated/linux/dsdbench/dsdbench.sh index 155bc1d..f002db6 100755 --- a/automated/linux/dsdbench/dsdbench.sh +++ b/automated/linux/dsdbench/dsdbench.sh @@ -18,7 +18,7 @@ usage() { while getopts "t:s:h" o; do case "$o" in t) TEST_SUITE="${OPTARG}" ;; - s) SKIP_INSTALL="${OPTARG}" ;; + s) SKIP_INSTALL="${OPTARG}" && export SKIP_INSTALL ;; h|*) usage ;; esac done @@ -26,10 +26,20 @@ done dist_name # shellcheck disable=SC2154 case "${dist}" in - debian|ubuntu) pkgs="git golang libdevmapper-dev" ;; - fedora|centos) pkgs="git golang device-mapper-devel" ;; + debian|ubuntu) + dist_info + # shellcheck disable=SC2154 + if [ "${Codename}" = "jessie" ]; then + install_deps "git libdevmapper-dev" + install_deps "-t jessie-backports golang" + else + install_deps "git golang libdevmapper-dev" + fi + ;; + fedora|centos) + install_deps "git golang device-mapper-devel" + ;; esac -install_deps "${pkgs}" "${SKIP_INSTALL}" ! check_root && error_msg "You need to be root to run this script." create_out_dir "${OUTPUT}" |