]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: run librbd valgrind test during 'make check'
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Apr 2015 18:29:59 +0000 (14:29 -0400)
committerjdillaman <jdillaman@ubuntu.(none)>
Thu, 30 Apr 2015 14:56:54 +0000 (10:56 -0400)
Fixes: #11372
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/Makefile-client.am
src/test/run-rbd-valgrind-unit-tests.sh [new file with mode: 0755]

index 254d11fd69f68cbaf8c8d02f4c0d780d83f42843..f3b70ac11428ae4b0acffcc412a774c8aa151cfb 100644 (file)
@@ -317,6 +317,7 @@ unittest_librbd_LDADD = \
        $(CEPH_GLOBAL) $(RADOS_TEST_LDADD)
 check_PROGRAMS += unittest_librbd
 check_SCRIPTS += test/run-rbd-unit-tests.sh
+check_SCRIPTS += test/run-rbd-valgrind-unit-tests.sh
 
 ceph_test_librbd_SOURCES =
 nodist_EXTRA_ceph_test_librbd_SOURCES = dummy.cc
diff --git a/src/test/run-rbd-valgrind-unit-tests.sh b/src/test/run-rbd-valgrind-unit-tests.sh
new file mode 100755 (executable)
index 0000000..da18333
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash -ex
+
+# this should be run from the src directory in the ceph.git
+
+CEPH_SRC=$(pwd)
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CEPH_SRC/.libs"
+PATH="$CEPH_SRC:$PATH"
+
+RBD_FEATURES=13 valgrind --tool=memcheck --leak-check=full --suppressions=valgrind.supp unittest_librbd
+
+echo OK