]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/rados/test_librados_build.sh
3 # Compile and run a librados application outside of the ceph build system, so
4 # that we can be sure librados.h[pp] is still usable and hasn't accidentally
5 # started depending on internal headers.
7 # The script assumes all dependencies - e.g. curl, make, gcc, librados headers,
8 # libradosstriper headers, boost headers, etc. - are already installed.
13 SOURCES
="hello_radosstriper.cc
18 BINARIES_TO_RUN
="hello_world_c
21 BINARIES
="${BINARIES_TO_RUN}hello_radosstriper_cpp
23 DL_PREFIX
="http://git.ceph.com/?p=ceph.git;a=blob_plain;f=examples/librados/"
24 #DL_PREFIX="https://raw.githubusercontent.com/ceph/ceph/master/examples/librados/"
28 for f
in $BINARIES$SOURCES ; do
33 function get_sources
() {
34 for s
in $SOURCES ; do
35 curl
--progress-bar --output $s ${DL_PREFIX}$s
39 function check_sources
() {
40 for s
in $SOURCES ; do
45 function check_binaries
() {
46 for b
in $BINARIES ; do
52 function run_binaries
() {
53 for b
in $BINARIES_TO_RUN ; do
54 .
/$b -c /etc
/ceph
/ceph.conf