Commit 835e5bc2 authored by Hailiang Wang's avatar Hailiang Wang Committed by Jim Harris
Browse files

autotest: blobstore_test (porting from nightly to autotest)



This patch is used to test blobstore automatically
which based on examples/blob/cli/blobcli.

Change-Id: I0309cf01d1561f309574a37aeaff8bfbc395f65c
Signed-off-by: default avatarHailiang Wang <hailiangx.e.wang@intel.com>
Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Reviewed-on: https://review.gerrithub.io/386186


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 24c7f62f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ fi

if [ $SPDK_TEST_BLOBFS -eq 1 ]; then
	run_test ./test/blobfs/rocksdb/rocksdb.sh
	run_test ./test/blobstore/blobstore.sh
fi

if [ $SPDK_TEST_NVMF -eq 1 ]; then
+27 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash

SYSTEM=`uname -s`
if [ $SYSTEM = "FreeBSD" ] ; then
    echo "blobstore.sh cannot run on FreeBSD currently."
    exit 0
fi

set -xe

testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../..)
source $rootdir/scripts/autotest_common.sh

timing_enter blobstore

set -e

# Nvme0 target configuration
$rootdir/scripts/gen_nvme.sh > $testdir/blobcli.conf

$rootdir/examples/blob/cli/blobcli -c $testdir/blobcli.conf -b Nvme0n1 -T $testdir/test.bs

rm -rf $testdir/blobcli.conf
rm -rf ./*.blob

timing_exit blobstore

test/blobstore/test.bs

0 → 100644
+8 −0
Original line number Diff line number Diff line
-i
-l bdevs
-n 1
-s bs
-p $B0
-d $B0 M.blob
-x $B0 b0key boval
-r $B0 b0key