test/bdev: add Ceph RBD bdev to bdev tests
Change-Id: I7a65a5818f2b851962c2be391efedfb9bfc8398c Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/373841 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d5dd730ce8
commit
8190e121a3
11
scripts/gen_rbd.sh
Executable file
11
scripts/gen_rbd.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
if ! hash ceph &> /dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "[Ceph]"
|
||||
echo " Ceph $RBD_POOL $RBD_NAME 512"
|
@ -56,6 +56,10 @@ dd if=/dev/zero of=/tmp/aiofile bs=2048 count=5000
|
||||
cp $testdir/bdev.conf.in $testdir/bdev.conf
|
||||
$rootdir/scripts/gen_nvme.sh >> $testdir/bdev.conf
|
||||
|
||||
if [ $SPDK_TEST_RBD -eq 1 ]; then
|
||||
$rootdir/scripts/gen_rbd.sh >> $testdir/bdev.conf
|
||||
fi
|
||||
|
||||
timing_enter bounds
|
||||
$testdir/bdevio/bdevio $testdir/bdev.conf
|
||||
timing_exit bounds
|
||||
|
Loading…
x
Reference in New Issue
Block a user