]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: add run-rbd-valgrind-unit-tests.sh
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Apr 2015 18:29:59 +0000 (14:29 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 17 Jul 2015 18:17:04 +0000 (14:17 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5534faaa469b8a6a4c9687aad1a6723f3e859353)

src/test/run-rbd-valgrind-unit-tests.sh [new file with mode: 0755]

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