From: Kefu Chai Date: Tue, 11 Jun 2019 05:16:48 +0000 (+0800) Subject: qa/workunits/rados/test_librados_build.sh: install build deps X-Git-Tag: v14.2.3~88^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e76baa23367057a21e281267ea292e29abf72a6;p=ceph.git qa/workunits/rados/test_librados_build.sh: install build deps to build helloworld of librados, we need to install the build dependencies. Fixes: https://tracker.ceph.com/issues/40155 Signed-off-by: Kefu Chai (cherry picked from commit be89e66f7498a43573d1efcc81ae8cc15bb67cbe) --- diff --git a/qa/workunits/rados/test_librados_build.sh b/qa/workunits/rados/test_librados_build.sh index 704bda6a99e4..41500151cb54 100755 --- a/qa/workunits/rados/test_librados_build.sh +++ b/qa/workunits/rados/test_librados_build.sh @@ -8,6 +8,8 @@ # libradosstriper headers, boost headers, etc. - are already installed. # +source $(dirname $0)/../ceph-helpers-root.sh + trap cleanup EXIT SOURCES="hello_radosstriper.cc @@ -56,6 +58,14 @@ function run_binaries () { } pushd $DESTDIR +case $(distro_id) in + centos|fedora|rhel|opensuse*|suse|sles) + install gcc-c++ make libradospp-devel librados-devel;; + ubuntu|debian|devuan) + install g++ make libradospp-dev librados-dev;; + *) + echo "$(distro_id) is unknown, $@ will have to be installed manually." +esac get_sources check_sources make all-system