Commit ecb44872 authored by Jim Harris's avatar Jim Harris
Browse files

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: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I68bb45df6d00e31dc96ed8bc902b61a5ef699ba2

Reviewed-on: https://review.gerrithub.io/420678


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
parent c60ae3c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  PT Malloc3 TestPT

[Malloc]
  NumberOfLuns 4
  NumberOfLuns 6
  LunSizeInMB 64

[Split]
+5 −0
Original line number Diff line number Diff line
@@ -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

test/bdev/raid.conf

0 → 100644
+6 −0
Original line number Diff line number Diff line
[RAID0]
  Name raid0
  StripSize 64
  NumDevices 2
  RaidLevel 0
  Devices Malloc4 Malloc5
+5 −0
Original line number Diff line number Diff line
@@ -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