Skip to content

Commit

Permalink
tests: run librbd valgrind test during 'make check'
Browse files Browse the repository at this point in the history
Fixes: #11372
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman authored and jdillaman committed Apr 30, 2015
1 parent 8d87bdf commit 5534faa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/Makefile-client.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions src/test/run-rbd-valgrind-unit-tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5534faa

Please sign in to comment.