2011-10-24 20:55:49 +00:00
|
|
|
#!/bin/sh -ex
|
|
|
|
|
2012-07-13 16:42:20 +00:00
|
|
|
CEPH_REF=${CEPH_REF:-master}
|
2013-02-15 17:20:14 +00:00
|
|
|
#wget -q https://raw.github.com/ceph/ceph/$CEPH_REF/src/test/pybind/test_rbd.py
|
2013-02-18 18:58:10 +00:00
|
|
|
wget -O test_rbd.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=$CEPH_REF;f=src/test/pybind/test_rbd.py" || \
|
|
|
|
wget -O test_rbd.py "https://ceph.com/git/?p=ceph.git;a=blob_plain;hb=ref/heads/$CEPH_REF;f=src/test/pybind/test_rbd.py"
|
2015-04-27 09:00:39 +00:00
|
|
|
|
|
|
|
if [ -n "${VALGRIND}" ]; then
|
|
|
|
valgrind --tool=${VALGRIND} --suppressions=${TESTDIR}/valgrind.supp \
|
|
|
|
nosetests -v test_rbd
|
|
|
|
else
|
|
|
|
nosetests -v test_rbd
|
|
|
|
fi
|
2011-10-24 20:55:49 +00:00
|
|
|
exit 0
|