]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/run-rbd-tests
3 # this should be run from the src directory in the ceph.git
5 source $
(dirname $0)/detect-build-env-vars.sh
6 CEPH_SRC
=$CEPH_ROOT/src
7 if [ -e CMakeCache.txt
]; then
8 CYTHON_MODULES_DIR
=$CEPH_LIB/cython_modules
10 CYTHON_MODULES_DIR
=$CEPH_SRC/build
13 export PYTHONPATH
="$CEPH_SRC/pybind:$CEPH_SRC/test/pybind"
14 for x
in $CYTHON_MODULES_DIR/lib
* ; do
15 PYTHONPATH
="${PYTHONPATH}:${x}"
21 ceph osd pool delete
$POOL_NAME $POOL_NAME --yes-i-really-really-mean-it
22 ceph osd pool create
$POOL_NAME $PG_NUM
27 $CEPH_SRC/..
/qa
/workunits
/rbd
/import_export.sh
29 $CEPH_SRC/..
/qa
/workunits
/rbd
/cli_generic.sh
31 $CEPH_SRC/..
/qa
/workunits
/rbd
/journal.sh
34 # tests that do not depend on image format / features
36 $CEPH_SRC/..
/qa
/workunits
/rbd
/verify_pool.sh
39 $CEPH_SRC/..
/qa
/workunits
/rbd
/journal.sh
41 $CEPH_SRC/..
/qa
/workunits
/rbd
/test_admin_socket.sh
45 # skip many_snaps since it takes several minutes
46 nosetests
-v test_rbd
-e '.*many_snaps'
47 # ceph_test_librbd creates its own pools
56 export RBD_CREATE_ARGS
="--image-format 2"
61 export RBD_FEATURES
=$i