mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
Merge pull request #4235 from ceph/wip-rbd-unit-tests
tests: exercise all RBD features during unit testing Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
commit
01b5085235
@ -291,7 +291,8 @@ unittest_librbd_LDADD = \
|
||||
librados_test_stub.la librados_internal.la \
|
||||
$(LIBOSDC) $(UNITTEST_LDADD) \
|
||||
$(CEPH_GLOBAL) $(RADOS_TEST_LDADD)
|
||||
check_PROGRAMS += unittest_librbd
|
||||
noinst_PROGRAMS += unittest_librbd
|
||||
check_SCRIPTS += test/run-rbd-unit-tests.sh
|
||||
|
||||
ceph_test_librbd_SOURCES =
|
||||
nodist_EXTRA_ceph_test_librbd_SOURCES = dummy.cc
|
||||
|
15
src/test/run-rbd-unit-tests.sh
Executable file
15
src/test/run-rbd-unit-tests.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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"
|
||||
|
||||
unittest_librbd
|
||||
for i in 0 1 5 13
|
||||
do
|
||||
RBD_FEATURES=$i unittest_librbd
|
||||
done
|
||||
|
||||
echo OK
|
Loading…
Reference in New Issue
Block a user