]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fix run-rbd-valgrind-unit-tests when built with cmake
authorMykola Golub <mgolub@mirantis.com>
Mon, 4 Jul 2016 07:02:18 +0000 (10:02 +0300)
committerMykola Golub <mgolub@mirantis.com>
Mon, 4 Jul 2016 19:32:20 +0000 (22:32 +0300)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/test/run-rbd-valgrind-unit-tests.sh

index da18333be9d209b8691dd233035a6b70dfc3b96d..fb5da0d876ade598fd738241a9ae83ba2ec89b0b 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash -ex
 
-# this should be run from the src directory in the ceph.git
+# this should be run from the src directory in the ceph.git (when built with
+# automake) or cmake build directory
 
-CEPH_SRC=$(pwd)
-export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CEPH_SRC/.libs"
-PATH="$CEPH_SRC:$PATH"
+source $(dirname $0)/detect-build-env-vars.sh
 
-RBD_FEATURES=13 valgrind --tool=memcheck --leak-check=full --suppressions=valgrind.supp unittest_librbd
+RBD_FEATURES=13 valgrind --tool=memcheck --leak-check=full \
+           --suppressions=${CEPH_ROOT}/src/valgrind.supp unittest_librbd
 
 echo OK