summaryrefslogtreecommitdiffstats
path: root/src/test/run-rbd-valgrind-unit-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-rbd-valgrind-unit-tests.sh')
-rwxr-xr-xsrc/test/run-rbd-valgrind-unit-tests.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-rbd-valgrind-unit-tests.sh b/src/test/run-rbd-valgrind-unit-tests.sh
new file mode 100755
index 000000000..463403923
--- /dev/null
+++ b/src/test/run-rbd-valgrind-unit-tests.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -ex
+
+# this should be run from the src directory in the ceph.git (when built with
+# automake) or cmake build directory
+
+source $(dirname $0)/detect-build-env-vars.sh
+
+RBD_FEATURES=13 valgrind --tool=memcheck --leak-check=full --error-exitcode=1 \
+ --suppressions=${CEPH_ROOT}/qa/valgrind.supp unittest_librbd
+
+echo OK