test: add some basic raid tests
RAID is experimental for 18.07, pending iov support which is needed for vhost. But we need to at least build RAID in our tests, and run some basic bdev tests to ensure it doesn't quickly become stale. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I68bb45df6d00e31dc96ed8bc902b61a5ef699ba2 Reviewed-on: https://review.gerrithub.io/420678 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
c60ae3c356
commit
ecb44872b6
@ -3,7 +3,7 @@
|
||||
PT Malloc3 TestPT
|
||||
|
||||
[Malloc]
|
||||
NumberOfLuns 4
|
||||
NumberOfLuns 6
|
||||
LunSizeInMB 64
|
||||
|
||||
[Split]
|
||||
|
@ -84,6 +84,11 @@ timing_enter bounds
|
||||
$testdir/bdevio/bdevio $testdir/bdev.conf
|
||||
timing_exit bounds
|
||||
|
||||
# RAID module doesn't support multi-iov yet, so bdevio test
|
||||
# would fail. So wait to append the RAID configuration until
|
||||
# after bdevio has run.
|
||||
cat $testdir/raid.conf >> $testdir/bdev.conf
|
||||
|
||||
timing_enter nbd_gpt
|
||||
if grep -q Nvme0 $testdir/bdev.conf; then
|
||||
part_dev_by_gpt $testdir/bdev.conf Nvme0n1 $rootdir
|
||||
|
6
test/bdev/raid.conf
Normal file
6
test/bdev/raid.conf
Normal file
@ -0,0 +1,6 @@
|
||||
[RAID0]
|
||||
Name raid0
|
||||
StripSize 64
|
||||
NumDevices 2
|
||||
RaidLevel 0
|
||||
Devices Malloc4 Malloc5
|
@ -79,6 +79,11 @@ if echo -e "#include <libunwind.h>\nint main(int argc, char *argv[]) {return 0;}
|
||||
config_params+=' --enable-log-bt=ERROR'
|
||||
fi
|
||||
|
||||
# RAID is marked experimental and not built by default currently, since it does not
|
||||
# support iov (meaning vhost will not work). But enable it in the build here, to make
|
||||
# sure it gets built and run against a limited set of use cases for now.
|
||||
config_params+=' --with-raid'
|
||||
|
||||
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1'
|
||||
|
||||
# On Linux systems, override the default HUGEMEM in scripts/setup.sh to
|
||||
|
Loading…
x
Reference in New Issue
Block a user