]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test_librados_build.sh: install build deps
authorKefu Chai <kchai@redhat.com>
Tue, 11 Jun 2019 05:16:48 +0000 (13:16 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 12 Jun 2019 09:46:46 +0000 (17:46 +0800)
to build helloworld of librados, we need to install the build
dependencies.

Fixes: https://tracker.ceph.com/issues/40155
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/rados/test_librados_build.sh

index 704bda6a99e46975b9756b0593a927da9d698cc9..41500151cb54bf0055dc36d2b162b13184c0e980 100755 (executable)
@@ -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